Assembler in GNU as syntax, objdump-style disassembly, UCASE$ and LCASE$
The monitor's assembler takes GNU as directives (.org, .equ, .byte, .half, .word, .ascii, .string, .space, .align, .balign ...), # comments, 0x/0b numbers, '\n' constants, . for the current address, << >> ^ ~, %hi/%lo and the FP CSR short forms; the old ORG/DB/EQU/0FFH forms remain as aliases. The disassembler prints lower case and 0x hex as objdump does. The monitor is built with -msave-restore and puts .rodata first, to fit its ROM. BASIC gains UCASE$ and LCASE$. Manual, README and tests updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
25c8286cf2
commit
fa4752fd7a
16 files changed
+7921
-7615
No files matched your search
+2
-1
@@ -5,7 +5,8 @@ set -e
|
||||
cd "$(dirname "$0")"
|
||||
source ../scripts/rv_env.sh
|
||||
mkdir -p out
|
||||
CFLAGS="$RV_ARCH -Os -ffunction-sections -fdata-sections -fno-common -Wall -I../include"
|
||||
# -msave-restore: shared register saving, 2 KB smaller (the ROM is 32 KB)
|
||||
CFLAGS="$RV_ARCH -Os -msave-restore -ffunction-sections -fdata-sections -fno-common -Wall -I../include"
|
||||
${RV_PREFIX}gcc $CFLAGS -c -o out/crt0.o crt0.S
|
||||
${RV_PREFIX}gcc $CFLAGS -c -o out/monitor.o monitor.c
|
||||
${RV_PREFIX}gcc $CFLAGS -c -o out/string.o ../lib/string.c
|
||||
|
||||
Reference in new issue
Block a user