53 Commits

Author SHA1 Message Date
Brent O'Neil
ab5810c585 Unhardcoded codeSegmentOffset and the hardware offset.
Changed Interrupt(int hw, int offset, boolean retry)
to	interrupt(boolean hw, int offset).
Removed no operand overload of int.
Added org_hwIVoddset to config.properties
2017-12-31 13:19:04 +11:00
Brent O'Neil
3db05478c1 Comments! 2017-12-30 08:54:23 +11:00
Brent O'Neil
974b00aa7a Renamed intr to iret to match 8086 mnemnonics 2017-12-30 08:29:53 +11:00
Brent O'Neil
ff4a3d6f20 Fixed some whitespace nonsense from a merge. 2017-12-30 03:07:28 +11:00
Brent O'Neil
fedd4bb779 Merge branch 'master' of https://github.com/simon987/Much-Assembly-Required into Interupts 2017-12-30 02:10:14 +11:00
Brent O'Neil
1b18426c5c Added the Interupt (int <imm>) and Return from Interupt (intr) command.
Interupt pushes the flag register and the instruction pointer, then resets
execution to 0x0200 + (imm)*2.

Return from interupt pops the flags back and sets the ip. Returning execution
to the interupting code.

Implemented using a CPU hook that can be used to later implement interupts generated
from hardware, or for errors like divide by 0.
2017-12-30 02:02:18 +11:00
simon
45ec7191b4 Added string literals support for the assembler 2017-12-29 08:28:04 -05:00
simon
d9732557fc Removed unused files 2017-12-28 23:08:05 -05:00
Simon Fortier
729debb1a3
Fixes #56 2017-12-28 20:41:02 -05:00
simon
dab5cab602 Updated incorrect documentation 2017-12-28 19:29:48 -05:00
simon
8a980fec6a Very small modifications for keyboard hardware 2017-12-28 16:51:03 -05:00
simon
21ec4ae704 Cubot are now passable + Bug fixes 2017-12-28 13:34:11 -05:00
Simon Fortier
690b7e8d31
Merge pull request #47 from ScarySpider/Basic-Maven-fixes
Basic maven fixes
2017-12-28 09:57:03 -05:00
simon
d28ca387d0 Fixes ConcurrentModificationException errors 2017-12-28 09:17:31 -05:00
simon
f2b6387cc9 Fixes #50 2017-12-28 09:15:19 -05:00
simon
f3b20b3a2d Fixes #51 2017-12-28 08:43:13 -05:00
Cooper Harasyn
965ca91cb6 Modified "RET imm" to add imm + 1 to the SP instead of imm 2017-12-27 19:18:10 -05:00
Jacob Swehla
556f443ec2 Now outputs .jar files to /target
-Server jar outputs to /target/
-All other jars output to /target/plugins
2017-12-27 17:52:40 -06:00
Jacob Swehla
3158dd75ea Fixed Maven
Maven now builds correctly, may need further refinement.
2017-12-27 15:36:08 -06:00
Cooper Harasyn
3bd34bfcba Fixed typo in SubInstruction 2017-12-27 15:52:00 -05:00
simon
2e9248ea2e Factory Integration, NPC improvements. #19 & #31. 2017-12-24 14:26:19 -05:00
simon
4f1342593f Added Factory object #31 2017-12-23 12:17:36 -05:00
simon
3548928218 Improved World update performance. Decreased save file size. Added Harvester NPC #19. 2017-12-16 15:40:03 -05:00
simon
cd41db9e58 Added Passive energy source for Cubots #14 2017-12-16 11:35:04 -05:00
simon
9dd9b45d2d Added Day/Night Cycle #14 2017-12-09 10:50:37 -05:00
Steven Robert Berdak
d24363fd82 Added file management
.
2017-12-04 17:25:55 -08:00
simon
be45979ed0 Added biomass respawn feature #22 2017-12-02 10:26:59 -05:00
simon
29cac77e79 Changed maven artifactID names 2017-11-22 17:05:50 -05:00
simon
6be2a496c6 Added maven framework support. Started working on NPCs #19 2017-11-21 20:22:11 -05:00
simon
12db25e726 Changed byte array in Memory to char array (+60% performance improvement) 2017-11-18 22:23:32 -05:00
simon
d004386b7b Bug fixes for various operands 2017-11-18 22:21:14 -05:00
simon
e09d2c1b16 Bug fix with [reg] as source operand 2017-11-16 18:41:57 -05:00
simon
c703dec3cf CPU execution time costs energy #16 2017-11-15 12:24:01 -05:00
simon
8701007ad9 Bug fixes related to floppy drive 2017-11-14 20:58:07 -05:00
simon
cfb8050cee Added basic floppy drives #3. 2017-11-14 17:25:12 -05:00
simon
da7d050661 Universe warp around and maximum size #9 2017-11-13 22:45:19 -05:00
simon
3ee9b4be95 Added SAR Instructions #7. 2017-11-13 21:39:16 -05:00
simon
42421b7710 Added RCR/RCL Instructions #7. 2017-11-13 20:08:07 -05:00
simon
9979986c6a Added SAL Instruction #6. Added ROL/ROR Instructions #7. 2017-11-13 17:51:16 -05:00
simon
c5abe2efc5 Added ROL/ROR Instructions #7 as well as JC/JNC and JO/JNO instructions 2017-11-13 11:28:06 -05:00
simon
a3fa3c4c09 Added Battery Hardware. #2 2017-11-12 10:27:07 -05:00
simon
04d51e1f1f Added XCHG Instruction #5. Placeholder class for LEA #1 2017-11-11 20:14:13 -05:00
simon
8c5dcd0fba Added Hologram Projector Hardware. Added GET_WORLD_POS in LiDAR. Fixed Drill. 2017-11-11 19:43:06 -05:00
simon
1a6f92a29d Added NOT Instruction 2017-11-11 15:27:06 -05:00
simon
e2ed744479 Added Random number generator 2017-11-11 14:34:33 -05:00
simon
c56f672b9d Added secure WebSocket, Bug fixes, code cleanup 2017-11-11 10:24:51 -05:00
simon
98b0c480b9 Various bug fixes 2017-11-05 14:13:53 -05:00
simon
626c55bcce Logs cleanup 2017-11-05 10:20:38 -05:00
simon
41b981f3ab Confirmation on code upload 2017-11-04 15:35:56 -04:00
simon
8f117c5e27 Fixed bugs related to guest users 2017-11-04 15:02:59 -04:00