scc: more tidying up
authorAlan Cox <alan@linux.intel.com>
Thu, 30 Jun 2016 12:14:56 +0000 (13:14 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 30 Jun 2016 12:14:56 +0000 (13:14 +0100)
commitc71e4761b7b77074108b4935c805702b45f62166
treead967127bf63e978ffa73e0e0fc948c2387e14ad
parent6370f887af3d16229813020fc6f06ae26ea0d3d5
scc: more tidying up

Really for 6809 it needs some work on primary() and eval() to allow for the
fact the 6809 unlike the 8080/5 can actually generate useful stack relative
accesses so the whole

get address
save address
get value
do stuff
pop address
store

sequence really ought to work like a global or static but generate ,s
relative addressing.

Z80 might also benefit from this and use ix relative, but it's less clear,
ditto 6801 especially as it has the tsx instruction.
Applications/SmallC/Makefile.linux
Applications/SmallC/code6809.c
Applications/SmallC/rules.6809 [new file with mode: 0644]