Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; make org safer (impossible to overwrite previously assembled bytes) and count padding
- org macro address
- if notZ80(MOMCPU)
- if address < *
- if assembleZ80SoundDriver
- error "too much stuff before org $\{address} ($\{(*-address)} bytes)"
- else
- error "too much stuff before org $\{address} ($\{(*-address)} bytes) ... try setting assembleZ80SoundDriver=1 in the asm file"
- endif
- elseif address > *
- paddingSoFar set paddingSoFar + address - *
- !org address
- endif
- endm
- ; define the cnop pseudo-instruction
- cnop macro offset,alignment
- org (*-1+(alignment)-((*-1+(-(offset)))#(alignment)))
- endm
Advertisement