Use const_skip and const_next macros for brevity
This commit is contained in:
@@ -12,12 +12,16 @@ endc
|
||||
db x
|
||||
ENDM
|
||||
|
||||
const_def $fc
|
||||
const_def -1, -1
|
||||
|
||||
const delanim_command ; $fc
|
||||
delanim: MACRO
|
||||
; Removes the object from the screen, as opposed to `endanim` which just stops all motion
|
||||
db delanim_command
|
||||
const endanim_command ; $ff
|
||||
endanim: MACRO
|
||||
db endanim_command
|
||||
ENDM
|
||||
|
||||
const dorestart_command ; $fe
|
||||
dorestart: MACRO
|
||||
db dorestart_command
|
||||
ENDM
|
||||
|
||||
const dowait_command ; $fd
|
||||
@@ -26,28 +30,24 @@ dowait: MACRO
|
||||
db \1 ; frames
|
||||
ENDM
|
||||
|
||||
const dorestart_command ; $fe
|
||||
dorestart: MACRO
|
||||
db dorestart_command
|
||||
ENDM
|
||||
|
||||
const endanim_command ; $ff
|
||||
endanim: MACRO
|
||||
db endanim_command
|
||||
const delanim_command ; $fc
|
||||
delanim: MACRO
|
||||
; Removes the object from the screen, as opposed to `endanim` which just stops all motion
|
||||
db delanim_command
|
||||
ENDM
|
||||
|
||||
|
||||
; Used for pic animations
|
||||
const_value = $fd
|
||||
|
||||
const dorepeat_command ; $fd
|
||||
dorepeat: MACRO
|
||||
db dorepeat_command
|
||||
db \1 ; command offset to jump to
|
||||
ENDM
|
||||
const_def -2, -1
|
||||
|
||||
const setrepeat_command ; $fe
|
||||
setrepeat: MACRO
|
||||
db setrepeat_command
|
||||
db \1 ; amount of times to repeat
|
||||
ENDM
|
||||
|
||||
const dorepeat_command ; $fd
|
||||
dorepeat: MACRO
|
||||
db dorepeat_command
|
||||
db \1 ; command offset to jump to
|
||||
ENDM
|
||||
|
Reference in New Issue
Block a user