Commit Graph

31 Commits

Author SHA1 Message Date
Maurizio Porrato d2e21b9f9b Add a name field to the dev_entry struct 2021-02-13 16:17:19 +00:00
Maurizio Porrato b9c432a9b4 Assembler: remove restrictions on some operands 2021-02-13 15:40:29 +00:00
Maurizio Porrato c6b820cc8b Move LEM1802 to HWI 0 for compatibility 2021-02-13 15:39:07 +00:00
Maurizio Porrato 04d09c68dc Assembler: handle negative numbers, keep track of source code position, add support for case insensitive symbols, add alias for O register 2021-02-13 14:26:01 +00:00
Maurizio Porrato 69966cdcda Fixed instructions operating on EX. Make assembler case insensitive and ignore comma in single operand opcodes. 2021-02-13 10:03:46 +00:00
Maurizio Porrato d7302226ea Merge branch 'master' of git.worn.eu:guru/dcpu16 2020-05-11 09:00:01 +01:00
Maurizio Porrato 7232d1bf6f Properly handle shifted keys. Allow ignoring keyboard modifiers. 2020-04-29 22:48:44 +01:00
Maurizio Porrato 07b5b504ae Added test suite. Fixed bugs in opcodes. Fixed font encoding. 2020-04-27 07:41:02 +01:00
Maurizio Porrato 9cb338f83e Fix execution of instructions with two literals 2020-04-24 07:41:14 +01:00
Maurizio Porrato 4127d9bde8 Add missing files 2020-04-23 08:44:13 +01:00
Maurizio Porrato 2148ba60aa Add LEM1802, keyboard and clock. Fix indirect argument encoding in assembler. 2020-04-23 08:41:15 +01:00
Maurizio Porrato d13d72ce8b asm.py: improve literal handling; parse source file only once 2020-04-18 16:23:30 +01:00
Maurizio Porrato a75d9c6781 Added simple disassembler 2020-01-25 14:55:09 +00:00
Maurizio Porrato feeae16d5b Add debug trace 2020-01-24 08:34:28 +00:00
Maurizio Porrato a785d2eb12 Fix buffer overflow loading images 2020-01-24 00:35:15 +00:00
Maurizio Porrato f8ec7c2bee Handle chained conditionals 2020-01-23 22:24:31 +00:00
Maurizio Porrato 67904719be Fix handling of indirect references 2020-01-23 21:58:48 +00:00
Maurizio Porrato 706ae9238d Fix typos in opcode names 2020-01-22 22:24:28 +00:00
Maurizio Porrato 98cecd782f Fix handling of long literals 2020-01-22 09:46:24 +00:00
Maurizio Porrato bc55eadb82 Use ephemeral variable for literal operands 2020-01-22 08:37:17 +00:00
Maurizio Porrato 9ceac9ae5a Make dumpregs and dump_ram accessible from debug HWI. Add emulator ID to debug irqh 2020-01-22 08:21:09 +00:00
Maurizio Porrato 56eae1aca1 Added debug hardware IRQ to replace non standard HLT opcode 2020-01-22 08:01:09 +00:00
Maurizio Porrato 48867686a6 Add .vscode to .gitignore 2020-01-22 07:40:31 +00:00
Maurizio Porrato ee74cfc5f9 Allow loading binary images in simulator. Fix instruction decoding. 2020-01-22 07:34:36 +00:00
Maurizio Porrato a853e8eaad Generate flat binary 2020-01-21 23:31:47 +00:00
Maurizio Porrato 69bb5a9dab Make pylint happy 2020-01-21 08:42:05 +00:00
Maurizio Porrato 7de66b23ff Merge branch 'master' of git.worn.eu:guru/dcpu16 2020-01-08 08:26:49 +00:00
Maurizio Porrato 4036e04c83 Initial assembler implementation 2020-01-02 13:21:38 +01:00
Maurizio Porrato 223111e7da Add vim modeline to dsim.c 2019-10-20 08:35:32 +01:00
Maurizio Porrato 017c61edce Fix makefile format 2019-10-19 13:47:10 +01:00
Maurizio Porrato aedf6873a7 Initial commit 2019-10-19 09:31:07 +01:00