summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstrid Smith2010-06-20 23:45:44 -0700
committerAstrid Smith2010-06-20 23:45:44 -0700
commit04658aaf0590e3a60a84bb0fb906772cd83f1955 (patch)
tree58b913708370000d24d71d7a8ec5452ad46f1dc0
parent5b599b1d3f2bff06b61c4e033a928eca27275abb (diff)
Forgot to pop the ROM_CALL arguments ...
-rw-r--r--main.asm10
-rw-r--r--video.c2
2 files changed, 8 insertions, 4 deletions
diff --git a/main.asm b/main.asm
index 531f6c5..ffdeb21 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
diff --git a/video.c b/video.c
index b94c52f..ad2345f 100644
--- a/video.c
+++ b/video.c
@@ -5,7 +5,7 @@
*/
#include <graph.h>
-#include <nostub.h>
+
#define VIDEO_ROWMODE 0x01
#define VIDEO_COLMODE 0x00