Mercurial > hg > Members > kono > os9 > sbc09
changeset 183:0eb94a8e4d0d
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
won't work on -O2, use -O ( makelonger in a09 )
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 Jul 2022 17:32:55 +0900 |
parents | aa6398acd2d5 |
children | ef64e3f4e229 |
files | README-os9.txt os9/Makefile src/Makefile src/a09.c |
diffstat | 4 files changed, 13 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/README-os9.txt Wed May 12 12:58:37 2021 +0900 +++ b/README-os9.txt Sat Jul 30 17:32:55 2022 +0900 @@ -39,12 +39,17 @@ You can add os9 disk image using -0 or -1 option ( ex. https://github.com/sorenroug/osnine-java.git ) - src/v09 -rom src/os9/os9lv1.rom -0 OS9.dsk -1 WORK.dsk - src/v09c -rom src/os9/os9lv2.rom -0 OS9.dsk -1 WORK.dsk + src/v09 -rom os9/os9v1.rom -v os9/level1 -0 os9/OS9.dsk -1 os9/WORK.dsk + src/v09c -rom os9/os9v2.rom -v os9/level2 -0 os9/OS9.dsk -1 os9/WORK.dsk use -nt for trace debug without timmer interrupt. + OS9> dir + OS9> dir /d0/cmds + OS9> mdir + OS9> mfree + Structure ---------
--- a/os9/Makefile Wed May 12 12:58:37 2021 +0900 +++ b/os9/Makefile Sat Jul 30 17:32:55 2022 +0900 @@ -26,9 +26,9 @@ nitros9-code : hg clone http://hg.code.sf.net/p/nitros9/code nitros9-code -runv2 : +runv2 : os9v2.rom ../src/v09c -rom os9v2.rom -0 OS9.dsk -1 WORK.dsk -runv1 : +runv1 : os9v1.rom ../src/v09 -rom os9v1.rom -0 OS9.dsk -1 WORK.dsk
--- a/src/Makefile Wed May 12 12:58:37 2021 +0900 +++ b/src/Makefile Sat Jul 30 17:32:55 2022 +0900 @@ -15,7 +15,7 @@ # CFLAGS=-g -DTERM_CONTROL \ # -std=c99 -D_POSIX_C_SOURCE=1 -D_XOPEN_SOURCE=1 -D_POSIX_SOURCE=200809L -D_GNU_SOURCE=1 \ # -Dd_namlen=d_reclen -CFLAGS=-g -O2 -DTERM_CONTROL +CFLAGS=-g -O0 -DTERM_CONTROL # V09FLAGS= -DUSE_TERMIOS /*-DNOFMEMOPEN*/ -DBIG_ENDIAN V09FLAGS= -DUSE_TERMIOS -DBIG_ENDIAN
--- a/src/a09.c Wed May 12 12:58:37 2021 +0900 +++ b/src/a09.c Sat Jul 30 17:32:55 2022 +0900 @@ -68,7 +68,7 @@ static struct longer { int gline; int change; - struct longer *next; + struct longer *next; } *lglist = 0; @@ -1055,11 +1055,11 @@ offs=(unsigned short)operand-loccounter-2; if(!unknown&&(offs<-128||offs>=128)) { seterror(16);makelonger(glineno); - if (co==0x20) { + if (0x20==co) { // lbra if(mode!=1&&mode!=2)seterror(2); putbyte(0x16); putword(operand-loccounter-3); - } else { + } else { // lbcs etc if(mode!=1&&mode!=2)seterror(2); putbyte(0x10); putbyte(co);