Code: Select all
maddalt:
move.l d1,-(sp) ; Size
move.l d0,-(sp) ; Addr
move.w #20,-(sp) ; Maddalt
trap #1 ; GEMDOS
lea 10(sp),sp
rts
In toshyp it has..
Code: Select all
move.l size,-(sp) ; Offset 6
pea start ; Offset 2
move.w #20,-(sp) ; Offset 0
trap #1 ; GEMDOS
lea $A(sp),sp ; Correct stack
I have tried both but with no luck... I have...
Code: Select all
move.l $400000,-(sp) ; Size
move.l $400000,-(sp) ; Addr
move.w #20,-(sp) ; Maddalt
trap #1 ; GEMDOS
lea 10(sp),sp
rts
In hisoft I can call
Code: Select all
x = Maddalt&(4194304,2097152)