look at this c file function:
Code: Select all
//***************************************************************************************
// WaitForBOF
//***************************************************************************************
void __FASTCALL__ WaitForBOF(void)
{
#asm
WaitForBOF:
ld bc,0x243B
ld a,0x1f
out (c),a
ld bc,0x253B
in a,(c)
cp 192
jr nz,WaitForBOF
#endasm
}
Code: Select all
; Function WaitForBOF flags 0x00000208 __smallc __z88dk_fastcall
; void WaitForBOF()
._WaitForBOF
C_LINE 164,"utils.c"
;#asm
C_LINE 165,"utils.c"
C_LINE 165,"utils.c"
C_LINE 167,"utils.c"
WaitForBOF:
C_LINE 168,"utils.c"
ld bc,0x243B
C_LINE 169,"utils.c"
ld a,0x1f
C_LINE 170,"utils.c"
out (c),a
C_LINE 171,"utils.c"
ld bc,0x253B
C_LINE 172,"utils.c"
in a,(c)
C_LINE 173,"utils.c"
cp 192
C_LINE 174,"utils.c"
jr nz,WaitForBOF
C_LINE 175,"utils.c"
;}
C_LINE 178,"utils.c"
pop bc
pop bc
pop bc
pop bc
ret
this is my make file
zcc +zxn -m -clib=new -startup=31 racing.c utils.c Bank_00.c Bank_01.c Bank_03.c Bank_04.c Bank_06.c Bank_07.c -o build\racing -subtype=sna -create-app -no-cleanup --c-code-in-asm
any suggestions?? im stumped ...