-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 25.06.2011 17:47, schrieb Egan Ford:
> Hello, I am new to sdcc and having a minor problem with the following code:
> 
> void zclock()
> {
> __asm
> ld      a,163
> [?]
> 
> $ 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.

Immediate values should be preceded by #:

ld a, #163

Philipp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4GBeYACgkQbtUV+xsoLpr3HgCeKE1xwJKnIt1r19Qmsf0gKHNA
DN8An3yk5eWIQNXSzIg2uKi4hTvd9Aor
=DG0m
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
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
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to