Fix some niggling issues --- we have our first binary now!

This commit is contained in:
David Given 2018-09-09 12:24:22 +02:00
parent b3b7c684c6
commit 95dd6f0141
4 changed files with 5 additions and 4 deletions

View file

@ -9,6 +9,7 @@
* Stack: ( value tableaddr -- )
*/
.sect .text
.define .csa
.csa:
lw r4, 0(sp) /* r4 = table */

View file

@ -1,10 +1,9 @@
#
.sect .text; .sect .rom; .sect .data; .sect .bss
.sect .rom
/* 2147483648 as a double; used as a pivot for double->unsigned and unsigned->double. */
.sect .rom
.define .fd_80000000
.fd_80000000:
.data4 0x41e00000, 0

View file

@ -1,10 +1,9 @@
#
.sect .text; .sect .rom; .sect .data; .sect .bss
.sect .rom
/* 2147483648 as a float; used as a pivot for double->float and unsigned->float. */
.sect .rom
.define .ff_80000000
.ff_80000000:
.data4 0x4f000000

View file

@ -1,8 +1,10 @@
#
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
.define .trap_ecase
.trap_ecase:
li r3, 20 ! ECASE = 20 in h/em_abs.h