Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Repeat/68000-Assembly/repeat.68000
Normal file
19
Task/Repeat/68000-Assembly/repeat.68000
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
lea foo,a5 ;function to execute
|
||||
move.w #4-1,d7 ;times to repeat
|
||||
jsr Repeater
|
||||
|
||||
jmp * ;halt the CPU, we're done
|
||||
|
||||
repeater:
|
||||
jsr repeaterhelper ;this also need to be a call, so that the RTS of the desired procedure
|
||||
;returns us to the loop rather than the line after "jsr Repeater".
|
||||
DBRA D7,repeater
|
||||
rts
|
||||
|
||||
repeaterhelper:
|
||||
jmp (a5) ;keep in mind, this is NOT a dereference, it simply sets the program counter equal to A5.
|
||||
;A bit misleading if you ask me.
|
||||
foo:
|
||||
MOVE.B #'!',D0
|
||||
JSR PrintChar
|
||||
rts
|
||||
Loading…
Add table
Add a link
Reference in a new issue