1
0
Fork 0
mirror of https://github.com/pnx/m16vm synced 2026-06-16 03:44:55 +02:00
Commit graph

17 commits

Author SHA1 Message Date
6f60b1a74a
src/cpu.c: alot of refactoring, store state in a struct. and make vm.c "own" the state. 2018-10-28 14:53:41 +01:00
3db5f117d6
README.md: document interrupts. 2018-10-28 14:24:16 +01:00
1088e4960e
programs/hello_world.m16: changed to using "int 10" 2018-10-28 14:23:59 +01:00
bae062cbf9
src/cpu.c: implement OP_INT instead of OP_SYSC_WR 2018-10-28 14:23:35 +01:00
fa30f39d55
src/syscall: define write system call 2018-10-28 14:23:01 +01:00
837bd8f892
src/instr: remove OP_SYSC_WR,OP_SYSC_RD in favor for OP_INT. 2018-10-28 14:22:31 +01:00
dca453457d
src/cpu: add the define "CPU_NUM_REGS" 2018-10-28 14:21:00 +01:00
900e1d87c4
src/cpu.c: implement JR instruction 2018-10-28 13:27:21 +01:00
1eef46cc5e
src/cpu.c: adding print_reg() 2018-10-28 13:27:01 +01:00
96bfab8176
adding programs/jr.m16 2018-10-28 13:18:02 +01:00
61da2339f2
README.md: "jr" is of I-type 2018-10-27 19:12:36 +02:00
584d731122
README.md: minor fix 2018-10-27 19:10:05 +02:00
ae40dea013
README.md: default memory size is 65536 2018-10-27 19:09:29 +02:00
c3a1d3fe77 Add LICENSE 2018-10-26 12:47:02 +00:00
8c7ebdb232 src/vm.c: include unistd.h 2018-10-26 14:43:17 +02:00
540e3b7fa6 move design.txt to README.md and clean up the text. 2018-10-26 14:41:48 +02:00
2ba17c52bd Initial commit 2018-10-26 12:35:17 +02:00