mirror of
https://frontier.innolan.net/github/AmigaExamples.git
synced 2026-09-12 03:52:12 +00:00
Small cleanup of C calling
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
include "includes.i"
|
||||
|
||||
xref InstallColorPalette
|
||||
xref PokeBitplanePointers
|
||||
;; xref PokeBitplanePointers ;; We don't need the ASM version of this for this example
|
||||
xref copperList
|
||||
xref copperListAlternate
|
||||
xref bitplanes
|
||||
@@ -27,7 +27,8 @@ Entry:
|
||||
bra .mainLoop
|
||||
|
||||
;===========================================================
|
||||
if 1
|
||||
; We don't need the ASM version of this for this example
|
||||
if 0
|
||||
PokeBitplanePointers:
|
||||
; d0 = frame offset in bytes;
|
||||
; a0 = BPLP copper list address
|
||||
|
||||
@@ -21,7 +21,7 @@ Init:
|
||||
move.l #SCREEN_BIT_DEPTH,-(sp) ; in reverse order. 16 bit variables are passed as 32 bits.
|
||||
move.l #1,-(sp) ; interlace line.
|
||||
pea bitplanes ; make sure you push the address...
|
||||
pea copperListAlternate ; of variables, not the value.
|
||||
pea copperListAlternate ; of pointers, not the value they point to.
|
||||
jsr _PokeBitplanePointers ; C adds an _ to all global symbols.
|
||||
add.l #20,sp ; Need to pop the arguments from the stack.
|
||||
endif
|
||||
@@ -30,7 +30,7 @@ Init:
|
||||
move.l #SCREEN_BIT_DEPTH,-(sp) ; in reverse order.
|
||||
move.l #0,-(sp) ; normal line.
|
||||
pea bitplanes ; make sure you push the address...
|
||||
pea copperList ; of variables, not the value.
|
||||
pea copperList ; of pointers, not the value they point to.
|
||||
jsr _PokeBitplanePointers ; C adds an _ to all global symbols.
|
||||
add.l #20,sp ; Need to pop the arguments from the stack.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user