Error at file 'w5100.c' line 330: symbol 'l_asr_u_hl_by_e' not defined
Posted: Tue Mar 26, 2019 7:37 pm
This popped up last night. Real stumper until I looked as the c/asm file.
This is what the offending line of text looks like.
Error at file 'w5100.c' line 264: symbol 'l_asr_u_hl_by_e' not defined
^ ---- cmd[2] = ((addr >> 3) & 0xe0) | 0x0c;
addr is unsigned int and cmd is unsigned char
to fix this I added
#asm
GLOBAL l_asr_u_hl_by_e
#endasm
to the front of the c source file.
Here is the compile command.
zcc +cpm -O3 -vn -s -m --list -create-app --c-code-in-asm -no-cleanup -odriver -D_DHCP_DEBUG_ main.c spi.c ethernet.c w5100.c dhcp.c
This is what the offending line of text looks like.
Error at file 'w5100.c' line 264: symbol 'l_asr_u_hl_by_e' not defined
^ ---- cmd[2] = ((addr >> 3) & 0xe0) | 0x0c;
addr is unsigned int and cmd is unsigned char
to fix this I added
#asm
GLOBAL l_asr_u_hl_by_e
#endasm
to the front of the c source file.
Here is the compile command.
zcc +cpm -O3 -vn -s -m --list -create-app --c-code-in-asm -no-cleanup -odriver -D_DHCP_DEBUG_ main.c spi.c ethernet.c w5100.c dhcp.c