SASM questions
![Valio](https://images.v-cdn.net/banned_large.png)
Hello!
After compiling SX/B, I found in listing such instructions:
...
144 002D 0C00 CJE FSR,#0,@__POWERUP
002E 0084 0643 0010 0A37
...
145 0032 0CFF CJNE FSR,#$FF,@__RESTORETRIS
0033 0084 0743 0010 0A4A
...
154 003F 03E4 IJNZ FSR,@$-3
0040 0010 0A3C
...
Look it through SASM manual but cant it find. Plz advice translation
for this asm jump mnemonics.
Regards.
After compiling SX/B, I found in listing such instructions:
...
144 002D 0C00 CJE FSR,#0,@__POWERUP
002E 0084 0643 0010 0A37
...
145 0032 0CFF CJNE FSR,#$FF,@__RESTORETRIS
0033 0084 0743 0010 0A4A
...
154 003F 03E4 IJNZ FSR,@$-3
0040 0010 0A3C
...
Look it through SASM manual but cant it find. Plz advice translation
for this asm jump mnemonics.
Regards.
Comments
CJE - Compare and Jump if Equal
CJNE - Compare and Jump if Not Equal
IJNZ - Increment and Jump if Not Zero
I don't have a SASM manual but these are certainly in the Parallax SX-Key manual. See the Appendix called "SX Instruction Set."
I searched im my "SASM Cross Assembler User’s Manual Rev. 1.3" -
It seems that it have missed some obvious instruction, for ex:
it have DJNZ, but don't have IJNZ, stupid, ain't ?
Stupid document content and their organization structure,
most of them doesnt have mention of IJNZ command for ex:
Ubicom™ SX Family User’s Manual - doesnt have
Programming the SX Microcontroller - doesnt have - cuz just intro+title page (book's promo)
Ubicom™ SX Cross Assembler User's Manual - doesnt have
maybe support shall improve quality of documentation ?
or user must guess missing details.
Thanks anyway.
Post Edited (Valio) : 5/31/2009 10:14:59 PM GMT
I suggest you stop thinking of this sort of thing as "stupid" and read the documentation. If you don't understand why something is the way it appears to be, it's much more useful to ask for confirmation and an explanation. There may be a good reason or, as sometime happens, there are only a certain number of bits in the instruction and you can have only so many distinct instructions, and the designer has to make choices.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php