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

105 commits

Author SHA1 Message Date
02ec1e1215 Update copyright year and email 2023-11-25 15:04:24 +01:00
c941c2b6e7 vm/debug.c: make debug_print_memory() print a nice table. 2023-11-25 14:03:05 +01:00
a005c8672c vm/mm: move MEM_SIZE to header file. 2023-11-25 14:00:23 +01:00
3f5bbdb604 vm/mm.c: reduce default memory size. 2023-11-25 13:58:21 +01:00
8c119a983d as/as.c: minor fixes 2023-11-25 13:54:45 +01:00
1a8417bd57 as/as.c: only close if fd_out is not stdout 2023-11-25 13:52:09 +01:00
eb3e432c91
README.md: adding Author section 2019-04-26 15:28:17 +02:00
9e031595ab
README.md: minor improvements to interrupt section. 2019-04-26 15:26:14 +02:00
825642e8b5
README.md: style changes. 2019-04-26 15:24:28 +02:00
0a58a7857f
cpu: remove CPU_FLAGS_HALT (and flag variable from struct cpu_state).
we can get handle cpu halts without this flag. CPU's dont actually have these. exceptions are actually implemented as interrupts in real hardware.
2019-04-26 13:34:27 +02:00
76a72e6857
mm: change variable name from "memory" to "mm_base_addr" 2019-04-26 13:30:26 +02:00
e92b7ee551
vm/mm.c: remove base_addr variable, we can do the stuff with macros and pointer casts :) 2019-04-25 14:29:44 +02:00
67a272b715
vm/mm.c: convert check_bounds to a macro. 2019-04-23 11:12:37 +02:00
77a7c94451
vm/vm.c: include options in usage string. 2019-04-16 15:05:51 +02:00
48d03c85a0
vm/cpu.c: remove CPU_FLAGS_HALT. defined in cpu.h 2019-04-16 15:00:18 +02:00
a105d5087e
as/lexer/number.c: should not stop parsing if we overflow. 2019-04-03 16:45:53 +02:00
502f284ebd
as/lexer/number.c: cleaning up lexer_read_num_dec() abit, skipping goto. 2019-04-03 16:42:34 +02:00
969c092e6f
as/lexer.c: minor style fix. 2019-04-03 16:05:55 +02:00
c28be46ee3
vm/vm.c: better check-code for options (we should accept double dash "--" instead of single) 2019-04-01 19:34:12 +02:00
c9f0d8b616
as/lexer.c: minor style fix. 2019-03-29 16:03:57 +01:00
040caee7f4
as/lexer.c: move hex/dec parse functions to as/lexer/number.c 2019-03-29 16:01:59 +01:00
caed36a936
asm: move grammar stuff from lexer.c to lexer/grammar.h 2019-03-29 15:46:19 +01:00
6611095364
as/parser.c: fixed a bug where address of array (uint_t **) was passed to codegen_emit() (that expects uint_t*) 2019-03-29 15:46:19 +01:00
5b1bf5b412
as/parser.c: fix compiler warning by doing some casts. 2019-03-14 11:34:54 +01:00
f871cb55ef
lib/error.c: minor fix. 2019-03-13 10:13:18 +01:00
c271fb7aaa
Makefile: remove old compile flags. 2019-01-29 14:10:27 +01:00
c27029001e
vm/vm.c: Use debug module and get flags from command line. 2019-01-29 14:08:31 +01:00
065e86e655
Adding debug module. 2019-01-29 14:07:57 +01:00
60fec921c6
Makefile: fixing CFLAGS variable + remove "-g" flag and all "M16_DEBUG" flags as default values. 2019-01-04 22:01:16 +01:00
0d257be91f
Makefile: tidy up the output. 2019-01-04 21:39:13 +01:00
e319461f83
as/asm_error.h: variadic functions did not work at all, switch to macro. 2019-01-04 21:28:31 +01:00
df58899353
examples/asm/hello_world.as: fix movl with 7+ offsets.
movl (type RI) have signed 4 byte offset. Resulting in errors with offsets larger than 7.
2019-01-04 21:15:30 +01:00
dea723ad7a
.gitlab-ci.yml: adding m16as as artifact 2019-01-04 21:13:45 +01:00
5416d2b4d8
Updating copyright year. 2019-01-04 20:31:05 +01:00
983ff56b93
updating some headers 2019-01-04 15:34:45 +01:00
e03154f249
vm/instr_decode.c: remove uncommented code 2019-01-04 15:10:03 +01:00
6422bcca8a
moving as/error.c code to lib to have the functions reusable. 2018-12-21 00:03:47 +01:00
04689fc69a
move program/ and asm/ directories to examples/ 2018-12-18 13:31:07 +01:00
d73e2ab710
move /src/as to /as and /src to /vm 2018-12-18 13:29:18 +01:00
8ef4c7edcd
move lib/src/vector.c to lib/vector.c 2018-12-18 13:25:56 +01:00
f385a4c47e
Merge branch 'asm' 2018-12-18 12:24:47 +01:00
993a1cbd74
src/as/parser.c: fix typos. 2018-12-18 09:17:18 +01:00
960d6f2e0d
src/as/lexer.c: use error.c 2018-12-17 23:27:13 +01:00
2e66ffb9a5
src/as/parser.c: check that numbers are in the allowed range. 2018-12-17 23:19:52 +01:00
74ecdfc2ab
src/as/lexer.c: guard against integer overflow (emitting a warning) 2018-12-17 21:34:57 +01:00
e75349e7f9
src/as/lexer.h: in struct token: integer value can max be 8 bits wide. 2018-12-17 07:27:52 +01:00
1ac58df67a
Makefile: adding M16_DEBUG_REGS documentation 2018-12-14 14:13:15 +01:00
47a6922d50
src/vm.c: in print_regs() registers are signed 16 bits. 2018-12-14 14:08:50 +01:00
2c1c832493
adding asm/mov_test.as 2018-12-14 14:04:52 +01:00
dbd32efbc5
Makefile: adding some comments. 2018-12-14 11:57:02 +01:00