diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-08-30 01:15:45 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-08-30 01:15:45 -0700 |
commit | f1b3d7b96749165d771b279b56cc05447b7db3e0 (patch) | |
tree | 0b9ce4b47746827ac9703bdf10d4976c98ae058d /subx/013direct_addressing.cc | |
parent | 51e3e6cec3aea2589513e946f187d9c4bc8eadb3 (diff) | |
download | mu-f1b3d7b96749165d771b279b56cc05447b7db3e0.tar.gz |
4527 - reading commandline arguments
The new example ex9 doesn't yet work natively. In the process I've emulated the kernel's role in providing args, implemented a couple of instructions acting on 8-bit operands (useful for ASCII string operations), and begun the start of the standard library (ascii_length is the same as strlen). At the level of SubX we're just only going to support ASCII.
Diffstat (limited to 'subx/013direct_addressing.cc')
-rw-r--r-- | subx/013direct_addressing.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/subx/013direct_addressing.cc b/subx/013direct_addressing.cc index 54cd096f..2211a7a5 100644 --- a/subx/013direct_addressing.cc +++ b/subx/013direct_addressing.cc @@ -367,13 +367,6 @@ case 0x57: { // push r32 to stack push(Reg[reg].u); break; } -:(code) -void push(uint32_t val) { - Reg[ESP].u -= 4; - trace(90, "run") << "decrementing ESP to 0x" << HEXWORD << Reg[ESP].u << end(); - trace(90, "run") << "pushing value 0x" << HEXWORD << val << end(); - write_mem_u32(Reg[ESP].u, val); -} //:: pop |