summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm10
1 files changed, 7 insertions, 3 deletions
diff --git a/main.asm b/main.asm
index a425abd..e307d8d 100644
--- a/main.asm
+++ b/main.asm
@@ -61,26 +61,30 @@ __main:
include "flags.asm"
emu_setup:
- movea emu_plain_op,a5
- lea emu_run(pc),a2
-
;; Allocate memory pages; for now I assume this succeeds
move.l #$4000,-(a7)
ROM_CALL malloc
+ addq #4,a7
move.l a0,ref_0
move.l #$4000,-(a7)
ROM_CALL malloc
+ addq #4,a7
move.l a0,ref_1
move.l #$4000,-(a7)
ROM_CALL malloc
+ addq #4,a7
move.l a0,ref_2
move.l #$4000,-(a7)
ROM_CALL malloc
+ addq #4,a7
move.l a0,ref_3
+ movea emu_plain_op,a5
+ lea emu_run(pc),a2
+
rts