I forgot the following:

----- Ursprüngliche Nachricht -----
Von: Peter Bigot
Gesendet am: 19 Feb 2012 20:37:45

>> At this time, I expect this change to be permanent.

> Jumps, though---jumps are just broken, because the documented behavior
> of "jmp 4" and "jmp label" is fundamentally inconsistent with the
> expectation that a symbol can substitute for a constant. 

This substitution is true for absolute addressing, but not for relative 
addressing.
JMP is relative. Always. There is no absolute mode for JMP.
You may use MOV #symbol,PC if you want an absolute jmp.

The whole MSP nomenclature does not fit for the JMP instruction, since

JMP x
is rather 
JMP #(x-2)
since the parameter for the JMP is not fetched from the passed address.

There is no way to make it 'consistent'. The same way as POP is
an emulated instruction while PUSH isn't.

But I prefer having both (JMP and PUSH) rather than having a consistent
model :)

JMGross


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to