diff --git a/021.calling_c/calling_c.s b/021.calling_c/calling_c.s index 70c9fdb..a5cdba5 100644 --- a/021.calling_c/calling_c.s +++ b/021.calling_c/calling_c.s @@ -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 diff --git a/021.calling_c/init.s b/021.calling_c/init.s index b1af005..123fc1f 100644 --- a/021.calling_c/init.s +++ b/021.calling_c/init.s @@ -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.