v65c816-big: get to the point it starts up
authorAlan Cox <alan@linux.intel.com>
Mon, 1 Jan 2018 17:58:18 +0000 (17:58 +0000)
committerAlan Cox <alan@linux.intel.com>
Mon, 1 Jan 2018 17:58:18 +0000 (17:58 +0000)
commit7176f706facea529bcab578ac62ff2b5e36d1f65
treeed1117bd8ab5cb0dc0f54b59e38a42486f85ef01
parent1d5116d1d12f88493439c37382df1eb88c93ddc4
v65c816-big: get to the point it starts up

With these changes the image is loaded and appears to get put in the right
places. We enter the discard code hit start, hit d_open and then the compiler
generates self modifying code

store to jmpvec+1/+2
jmp jmpvec

So it looks like  little bit of compiler hacking will be needed next, or
possibly a dirty hack of putting jmpvec in stubs in bank 1 and bank 2 so
that it writes the address into bank 2 and jumps to a bank 1 stub that can
then fix up the mess.

(Even better of course would be if someone was nuts enough to port the ANSI
pcc compiler to 65C816)
Kernel/platform-v65c816-big/Makefile
Kernel/platform-v65c816-big/crt0.s
Kernel/platform-v65c816-big/devtty.c
Kernel/platform-v65c816-big/io.h [new file with mode: 0644]
Kernel/platform-v65c816-big/ld65.cfg
Kernel/platform-v65c816-big/v65.s