I have compiled 122 AGD games so far and have never had compilation problems, but now I have a program that gets this kind of messages:
Code: Select all
Assemble: ROUST1
error: ROUST1.ASM:9118: value of 'k00089' unstable
error: ROUST1.ASM:9125: value of 'k00127' unstable
error: ROUST1.ASM:9141: value of 'k00211' unstable
error: ROUST1.ASM:9142: value of 'Evnt11' unstable
error: ROUST1.ASM:9153: value of 'l00052' unstable
error: ROUST1.ASM:9164: value of 'l00111' unstable
short branches most of the time. I copy here the macro I am using for maybe you could see if it contains a 'hidden' bug
Code: Select all
CONDJMP MACRO
IF (((\2 - *) >= 0) && ((\2 - *) <= 131)) || (((* - \2) > 0) && ((* - \2) <= 126))
fcb com_\1
fcb \2 - * - 1
ELSE
IF (\1 == "bra")
fcb $16
ELSE
fcb $10,com_\1
ENDIF
fdb \2 - * - 2
ENDIF
ENDM
Code: Select all
cmpa 11,y
CONDJMP "bne", a00108
Code: Select all
com_bra equ $20
com_brn equ $21
com_bhi equ $22
com_bls equ $23
com_bcc equ $24
com_bhs equ $24
com_bcs equ $25
com_blo equ $25
com_bne equ $26
com_beq equ $27
com_bvc equ $28
com_bvs equ $29
com_bpl equ $2a
com_bmi equ $2b
com_bge equ $2c
com_blt equ $2d
com_bgt equ $2e
com_ble equ $2f
Thanks in advance
pere