; MYMACRO.H ; Version 1.0, 10/AUGUEST/2013 VERSION_MYMACRO = 100 ; ; Note: These macros use illegal opcodes. To disable illegal opcode usage, ; define the symbol NO_ILLEGAL_OPCODES (-DNO_ILLEGAL_OPCODES=1 on command-line). ; If you do not allow illegal opcode usage, you must include this file ; *after* including VCS.H (as the non-illegal opcodes access hardware ; registers and require them to be defined first). ;------------------------------------------------------------------------------- ; DOP ; Illegal opcode support ; No operation command that takes 3 cycles and uses two bytes. ; DOP Opcode:$04 [no operation] (Z-Page) 2/3 MAC DOP .word $04 ENDM ; ; MAC Divide15 .POS SET 0 REPEAT 256 .byte (.POS / 15) + 1 .POS SET .POS + 1 REPEND ENDM ; EOF