Age | Commit message (Collapse) | Author |
|
instruction handler for reading the interrupt vectors.
|
|
|
|
handler.
|
|
|
|
|
|
This function will increment the cycle count by one
everytime it's called.
Later on, this'll help simplify I/O emulation, as I've
considered implementing read, write, and tick callbacks
for I/O.
|
|
|
|
the bitmasks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assignments, and for inverting `tmp`.
|
|
jumps.
This gets rid of some code duplication, and is also
how `bra` was implemented anyway. So, might as well use
it for unconditional jumps too.
|
|
|
|
|
|
conditional branches.
|
|
and for bitwise operations.
|
|
|
|
|
|
|
|
an interrupt gets triggered.
This is done in order to properly use the `read_addr()`
function.
|
|
|
|
|
|
memory directly.
|
|
status register.
|
|
|
|
|
|
bitmasks.
|
|
|
|
|
|
modes into a single block.
|
|
|
|
immediate data.
|
|
|
|
This macro will create a function for each opcode,
but with only a single block of code for each one.
It uses a bitmask (one bit for each opcode) that will
evaluate which blocks of code are used by each opcode.
The bitmask checks are (usually) evaluated at compile
time, which means that each function will only have the
blocks that had the bit for that opcode set in the
bitmask.
|
|
in the assembler.
- Rewrote more of the SuB Suite to use the new calling
convention.
- Fixed a bug to do with SIB operands in the
emulator's disassembler.
- Made the MMV instruction not require a loop prefix
for copying data.
|
|
This is because the previous commit actually created
a bug, rather than fixing one.
- Added JMP, and JSR to the ortho extension, and
implemented them both in the assembler, and
emulator.
|
|
- Started work on implementing the Super VIA emulation.
- Added support for disabling disassembly per
instruction, when in debug mode.
- Did some more work on rewriting the SuB Suite to
work with the new calling convention.
- Rewrote the symbol handling code in the emulator's
assembler, to make it both simpler, and to add
support for arbitrarily deep symbol scopes.
- Added support for arbitrarily deep local symbol
scopes.
For example, to declare a symbol of depth 2, you add
two '@' characters to the start of the symbol name.
In other words, the number of '@' characters before
the symbol name is what determines the scope of that
symbol.
And to use a symbol thats outside the current
scope, you would use the same syntax as using a
struct member, so you would do `global.local`.
|
|
I mainly did this to be able to display all 16 main
registers, but also to simplify the debugger.
|
|
This was done in order to save three bytes whenever
you want to immediatly do a conditional branch after
the `set` instruction.
|
|
assembler.
The main thing I had to do was implement the parsing
of the condition code token, but that wasn't hard to
do, since I had already done the lexing part already.
The next thing to do, will be to design a calling
convention for Sux.
|
|
|
|
in the emulator.
|
|
both the assembler, and the emulator.
I finally figured out how I could get support for the
Ortho extension implemented into the old assembler.
The only reason for doing this, is to buy me some
while I start work on the new assembler, and to help
me get an idea for how to do the same in the new
assembler.
|
|
This is the biggest milestone I've reached for this
project, since the base extension changes alot about
what Sux can do by default, and now makes it a viable
instruction set for modern day use, when compared
with other instruction sets.
|
|
- Made the debug print for the CPU flags more
readable.
- Started work on implementing line number support
into SuBAsm.
|
|
This is to allow for making the stack bigger for
anything that needs to change the size of it.
- Made the SuB Suite set the stack pointer to the end
of the usable RAM, and allow for changing the stack
size.
In this case, the size of the stack is currently set
to 192K, with the end of the heap being just below
the stack.
|