b907b15d4f
Add NES platform to default build. (Still more to go to compile correctly) and re-enabling the "k&r" cpp
Manoel Trapier2013-03-04 19:03:17 +01:00
45e01dcd3e
Correct mach cg pmfile that incorrectly reference PLATFORM where it should reference ARCH
Manoel Trapier2013-03-04 19:01:58 +01:00
cc534493fd
Copy pc86 platform to nes platform, and make change accordingly.
Manoel Trapier2013-03-04 19:00:38 +01:00
72fe23f09a
Add NES platform to default build. (Still more to go to compile correctly) and re-enabling the "k&r" cpp
Manoel Trapier2013-03-04 19:03:17 +01:00
00ea871e8e
Correct mach cg pmfile that incorrectly reference PLATFORM where it should reference ARCH
Manoel Trapier2013-03-04 19:01:58 +01:00
45121f6d87
Copy pc86 platform to nes platform, and make change accordingly.
Manoel Trapier2013-03-04 19:00:38 +01:00
4c5eb9a602
The ACK needs ed? Also, Ubuntu doesn't *have* ed?
David Given2015-06-19 22:14:09 +02:00
9f23fbbe6a
Allow machines to use cg if they wish.
David Given2015-03-23 00:08:51 +01:00
c5018d7088
64-bit-ify (adhoc varargs are evil).
David Given2015-03-23 00:07:59 +01:00
3d5e72e20b
Newer versions of GNU Make have a new function which collides with a variable we're using; change the name of the variable.
David Given2015-03-22 12:09:46 +01:00
2271bcd0a7
Fixed a parallel build race condition (forgot to declare a dependency to the makefile).
David Given2014-11-09 18:47:51 +01:00
052dd9bfc0
Actually remember to set the stack pointer on startup. Reduce to stack from 16kB to a much more reasonable 1kB.
David Given2013-06-20 00:14:55 +01:00
eaf4339cd6
Implement a very crude busy-wait based select() mechanism for consol input.
David Given2013-06-09 22:16:30 +01:00
bbd4b46850
Fix stack corruption when adjusting SP. Be a bit more rigorous about clearing the pseudostack on branch/labels.
David Given2013-06-07 21:25:38 +01:00
ed6c4a85d1
Change the size of the SRAM area to 128kB (to reflect reality).
David Given2013-06-06 00:05:48 +01:00
3e0123ca03
Fix treatment of out-of-range values in switch csa.
David Given2013-06-05 23:57:23 +01:00
aacabba165
Apply fix contributed by George Koehler: - don't crash if BSS overlaps BDOS - fix stack initialisation bug - fix command line argification
David Given2013-06-02 22:02:15 +01:00
6fff2d45fe
Attempt to fix 64-bitness error in ashow. Deprecate the structure format macros in h/out.h because they make no sense on 64-bit platforms.
David Given2013-05-29 14:48:51 +01:00
e0c121d6e6
Use relocation enumerations rather than hard-coded values for relocation types (these were causing problems due to the enumeration values having changed).
David Given2013-05-29 14:11:04 +01:00
1f36370d87
Implement nop (the C compiler sometimes generates this!).
David Given2013-05-26 22:54:53 +01:00
e01f00e320
Allow reading from the mini UART. Add a check to not touch the UART unless it's been initialised (in case of accidents when running in kernel mode).
David Given2013-05-26 18:58:54 +01:00
366cd10194
Remainders are calculated correctly. printf now works.
David Given2013-05-26 13:13:58 +01:00
3b07fee160
Major bugfix where instructions weren't being shrunk correctly. (Turns out there's built-in support for doing this, which I hadn't found.)
David Given2013-05-25 23:26:10 +01:00
b6680a48cc
Disable register variables. The code is a bit worse, but having two stackable registers makes things much easier to understand.
David Given2013-05-25 13:31:58 +01:00
72542288cd
Adjust bootstrap code to build kernels that work with the mailbox test app.
David Given2013-05-22 00:16:59 +01:00
f904465e9c
Fix signedness problem that was showing up on ARM.
David Given2013-05-22 00:16:16 +01:00
5e9102955c
Reworked VC4 relocations and some of the instruction encoding to be actually correct. Now generating what could be real code!
David Given2013-05-21 23:17:30 +01:00
1312fe298b
Now compiles (incorrectly) the entire libc, libpc, libm2 and libbasic!
David Given2013-05-21 20:05:26 +01:00