Hello, I am new to sdcc and having a minor problem with the following code:
void zclock()
{
__asm
ld a,163
ld (0x0F045),a
ld hl,(0x0C70B)
ld (0x0F3D0),hl
ld hl,(0x0F3DE)
ld (hl),a
ld hl,(0x0C708)
ld (0x0F3D0),hl
ld hl,(0x0F3DE)
ld (hl),a
__endasm;
}
$ make
sdcc -c -mz80 -D__SDCC__=1 date.c
date.asm:276: Error: <a> machine specific addressing or addressing mode error
If I remove the ld a,163 line it builds without error.
Thanks.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense..
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user