diff options
| author | Franklin Wei <git@fwei.tk> | 2015-11-18 20:56:08 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2015-11-18 20:56:08 -0500 |
| commit | 3127e63aae54f787e2f55523d9e3b7d5a060d834 (patch) | |
| tree | 20e78631bed98f8f2bbcbfd82e8dcdfa743ac59b /src/vm.c | |
| parent | 814fc20cf78a9e10b603fba789be3ccd2830629d (diff) | |
| download | ducky-3127e63aae54f787e2f55523d9e3b7d5a060d834.zip ducky-3127e63aae54f787e2f55523d9e3b7d5a060d834.tar.gz ducky-3127e63aae54f787e2f55523d9e3b7d5a060d834.tar.bz2 ducky-3127e63aae54f787e2f55523d9e3b7d5a060d834.tar.xz | |
barely working ducky-to-C transcompiler
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -453,6 +453,11 @@ void decl_const(void) vars[varid].constant = true; } +void newline_handler(void) +{ + vid_writef("\n"); +} + void inc_line_pointer(void) { ++current_line; @@ -507,7 +512,7 @@ static void (*instr_tab[0x100])(void) = { NULL, /* 0x2b */ NULL, /* 0x2c */ NULL, /* 0x2d */ - NULL, /* 0x2e */ + newline_handler, /* 0x2e */ NULL, /* 0x2f */ NULL, /* 0x30 */ NULL, /* 0x31 */ |