fr3nd / msx-vi Goto Github PK
View Code? Open in Web Editor NEWA small vi clone text editor clone for the MSX 8-bit home computer
Home Page: https://fr3nd.github.io/msx-vi/
License: GNU General Public License v3.0
A small vi clone text editor clone for the MSX 8-bit home computer
Home Page: https://fr3nd.github.io/msx-vi/
License: GNU General Public License v3.0
MSX0 is the latest MSX machine that is being made popular through crowdfunding.
However, the included keyboard has a small number of keys, and there is no Ctrl key, so commands such as saving files and ending editing cannot be executed.
The msx-vi you developed is suitable for such MSX0.
We can edit with fewer keys.
However, there is one problem.
The MSX0 is so small that the text is too small to read on high-resolution screens. Can't you create a lower resolution screen version of msx-vi with larger characters?
Hi, what sdcc version do you use to compile msx-vi? When I try it on my macbook with v3.7.0 I get lots of errors/warnings.
19:30:42 [:~/msx-vi] master ± make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../utils/Hex2bin-1.0.12
gcc -O2 -Wall -o hex2bin hex2bin.c
gcc -O2 -Wall -o mot2bin mot2bin.c
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C include
sdasz80 -o crt0msx_msxdos.s
sdasz80 -o crt0msx_msxdos_advanced.s
sdasz80 -o dos2.s
sdasz80 -o getchar.s
sdasz80 -o heap.s
sdasz80 -o iolib.s
sdasz80 -o ioport.s
sdasz80 -o keyboard.s
sdasz80 -o putchar.s
sdasz80 -o vdp.s
sdcc -mz80 -c -o conio.rel conio.c
sdcc -mz80 -c -o mem.rel mem.c
sdcc --code-loc 0x0178 --data-loc 0 --disable-warning 196 -mz80 --no-std-crt0 -Iinclude include/crt0msx_msxdos_advanced.rel include/heap.rel include/iolib.rel vi.c
vi.c:269: error 98: conflict with previous declaration of 'getchar' for attribute 'type' at /usr/local/bin/../share/sdcc/include/stdio.h:85
from type 'int function ( ) fixed'
to type 'unsigned-char function ( ) fixed'
vi.c:283: error 98: conflict with previous declaration of 'putchar' for attribute 'type' at /usr/local/bin/../share/sdcc/include/stdio.h:86
from type 'int function ( int fixed) fixed'
to type 'void function ( unsigned-char fixed) fixed'
vi.c:1318: warning 94: comparison is always false due to limited range of data type
vi.c:1320: warning 94: comparison is always false due to limited range of data type
vi.c:1327: warning 94: comparison is always false due to limited range of data type
make[1]: *** [vi.ihx] Error 1
make: *** [all] Error 2
When I fix the putchar and getchar with int instead of char I get even more errors/warnings:
19:33:44 [:~/msx-vi] master* ± make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../utils/Hex2bin-1.0.12
make[2]: Nothing to be done for 'all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C include
make[2]: Nothing to be done for 'all'.
sdcc --code-loc 0x0178 --data-loc 0 --disable-warning 196 -mz80 --no-std-crt0 -Iinclude include/crt0msx_msxdos_advanced.rel include/heap.rel include/iolib.rel vi.c
vi.c:1318: warning 94: comparison is always false due to limited range of data type
vi.c:1320: warning 94: comparison is always false due to limited range of data type
vi.c:1327: warning 94: comparison is always false due to limited range of data type
vi.c:1308: warning 94: comparison is always true resp. false due to limited range of data type
vi.c:1308: warning 94: comparison is always true resp. false due to limited range of data type
vi.c:1308: warning 94: comparison is always true resp. false due to limited range of data type
vi.c:1319: warning 126: unreachable code
vi.c:1319: warning 126: unreachable code
vi.c:1319: warning 126: unreachable code
vi.c:1319: warning 126: unreachable code
vi.c:1319: warning 126: unreachable code
vi.c:1319: warning 126: unreachable code
vi.c:1321: warning 126: unreachable code
vi.c:1321: warning 126: unreachable code
vi.c:1321: warning 126: unreachable code
vi.c:1321: warning 126: unreachable code
vi.c:1321: warning 126: unreachable code
vi.c:1321: warning 126: unreachable code
vi.c:1321: warning 126: unreachable code
vi.c:1321: warning 126: unreachable code
vi.c:1321: warning 126: unreachable code
vi.c:1321: warning 126: unreachable code
vi.c:1321: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1322: warning 126: unreachable code
vi.c:1308: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
vi.c:1308: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
vi.c:1308: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
vi.c:1313: warning 126: unreachable code
vi.c:1314: warning 126: unreachable code
vi.c:1326: warning 126: unreachable code
vi.c:1327: warning 126: unreachable code
vi.c:1385: warning 158: overflow in implicit constant conversion
vi.c:1388: warning 158: overflow in implicit constant conversion
vi.c:1419: warning 158: overflow in implicit constant conversion
vi.c:1434: warning 158: overflow in implicit constant conversion
vi.c:1471: warning 158: overflow in implicit constant conversion
vi.c:1511: warning 158: overflow in implicit constant conversion
vi.c:1607: warning 94: comparison is always true resp. false due to limited range of data type
vi.c:1607: warning 110: conditional flow changed by optimizer: so said EVELYN the modified DOG
used unbound variable in replacement
?ASlink-Warning-Undefined Global '__sdcc_heap_init' referenced by module ''
make[1]: *** [vi.ihx] Error 1
rm vi.ihx
make: *** [all] Error 2
First time I compile something with sdcc, only used msx-c before :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.