|
|
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 |
|
|
|
2c734dc300
|
asm/hello_world.as: use some hex!
|
2018-12-14 00:35:33 +01:00 |
|
|
|
de29a981bd
|
src/as/lexer.c: implement hexadecimal numbers.
|
2018-12-14 00:35:09 +01:00 |
|
|
|
1a29b39663
|
src/as/ast.c: bug in ast_free(). we should advance i by sizeof(char**).
|
2018-12-14 00:17:42 +01:00 |
|
|
|
3513662ad8
|
asm: lexer.c: read_string() move all strings into a table
|
2018-12-11 17:53:55 +01:00 |
|
|
|
0a91644879
|
Makefile: call "as" "m16as"
|
2018-12-10 23:21:58 +01:00 |
|
|
|
ad74f2d476
|
asm/hello_world.as: we can now use labels!
|
2018-12-10 23:13:39 +01:00 |
|
|
|
1146b925f5
|
src/as/codegen.c: use symtab to get the address for J-Type instruction.
|
2018-12-10 23:13:39 +01:00 |
|