Memory Full

Forum / Development

Orgams - The Users Speak!

first previous Page: 1 2

Hicks * 22 Mar 2019 09:18:05 * Modified at 09:19:00

It would be quite convenient to add an operand allowing us to reverse the LSB & MSB of a WORD, for example:

    WORD   &0BEB   ; write &EB,&0B
    RWORD  &0BEB   ; write &0B,&EB


But there is maybe already a way to do that without a new operand?

m_dr_m * 22 Mar 2019 15:00:44

Be creative!

   MACRO RWORD m
     BYTE m/&100,m and &ff
   ENDM

   RWORD(&0bed - 2)  ; Writes &0b,&eb

Hicks * 24 Mar 2019 18:25:07

Good idea, it fits very well!

first previous Page: 1 2