A86: #define error


[Prev][Next][Index][Thread]

A86: #define error




i'v recently began working on upgrading drugwars 86.  when experimenting with
writing quick functions, i came accross a really strange error

here's the most important source code:

#define locate(xa,xb,xc,xd,xe,xf,xg,xh)			ld bc,xa\ ld
(keyloop+choice_offset),bc\ ld bc,xb\ ld (keyloop+list_length_offset),bc\ ld
bc,xc\ ld (keyloop+one_offset),bc\ ld bc,xd\ ld (keyloop+two_offset),bc\
locate2(xe,xf,xg,xh)

#define locate2(xe,xf,xg,xh)		ld bc,xe\ ld (keyloop+three_offset),bc\ ld
bc,xf\ ld (keyloop+four_offset),bc\ ld bc,xg\ ld (keyloop+five_offset),bc\ ld
bc,xh\ ld (keyloop+six_offset),bc\ call convert

.org _asm_exec_ram

;deeper into the code....


 locate(choice_list,$0600,display_prices,display_trenchcoat,buy,sell,loan_shar
k,jet)


the error i get when compiling this:

unrecognized instruction: "locate2(uy,ell,oan_shark,et)"


for some reason, it chops off the first letter of each label.  a way to avoid
this would be appreciated.