Search found 159 matches

by mobluse
Sun Dec 15, 2024 11:59 pm
Forum: X16 Feature Requests
Topic: Updates to BASIC EXEC
Replies: 7
Views: 15451

Re: Updates to BASIC EXEC

As it is now you cannot LOAD a BAS file programmatically, I believe, and it is difficult to write a PRG file from BASIC with e.g. new functions (DEF FN) or subroutines. The purpose is to be able to write self modifying programs. A MERGE command that works from the running program for merging BASIC s...
by mobluse
Sun Dec 15, 2024 8:50 pm
Forum: X16 Feature Requests
Topic: Updates to BASIC EXEC
Replies: 7
Views: 15451

Re: Updates to BASIC EXEC

Another way to do the same thing would be to have MERGE or CHAIN commands in BASIC, like in MBASIC, GW-BASIC, Sinclair BASIC (1982), and ABC 80 BASIC (1978): GW-BASIC MERGE: http://www.antonis.de/qbebooks/gwbasman/merge.html GW-BASIC CHAIN: http://www.antonis.de/qbebooks/gwbasman/chain.html Sinclair...
by mobluse
Tue Nov 19, 2024 7:33 pm
Forum: CX16 General Chat
Topic: BASLOAD and other general X16 usage
Replies: 7
Views: 8232

Re: BASLOAD and other general X16 usage

If one used the row numbers of the built in Nano like editor as line numbers of the BASLOAD generated BASIC program, it would be easier to find runtime errors in the source file.

Great video!
by mobluse
Sun Sep 29, 2024 1:29 pm
Forum: X16 Feature Requests
Topic: Function Screen() to get a character code from screen
Replies: 3
Views: 8923

Re: Function Screen() to get a character code from screen

Thanks! I now tested TDATA(X, Y), and compared to SCREEN(r, c) it has some disadvantages: Arguments are in reverse order compared to LOCATE r, c. Arguments are 0 based, but in LOCATE they are 1 based. It doesn't return PETSCII, but some private code that can be converted to PETSCII in a subroutine u...
by mobluse
Sat Sep 28, 2024 11:49 pm
Forum: X16 Feature Requests
Topic: Function Screen() to get a character code from screen
Replies: 3
Views: 8923

Function Screen() to get a character code from screen

If Commander X16 BASIC had the function SCREEN(ROW, COL) that exists in GWBASIC and QBASIC then one could easily make e.g. trackers that use the BASIC editor without using machine code. Example that uses machine code: Making 8-bit Music From Scratch at the Commodore 64 BASIC Prompt https://youtu.be/...
by mobluse
Thu Oct 05, 2023 7:21 pm
Forum: X16 Feature Requests
Topic: Remove most VT52, VT100-VT525, ANSI escape sequences
Replies: 6
Views: 8315

Re: Remove most VT52, VT100-VT525, ANSI escape sequences

Well, I'm talking about the opposite, i.e. connecting a terminal to X16; not using X16 as a terminal. My suggestion requires changes to the print routines in ROM. To write a terminal program you don't need to change the ROM.
by mobluse
Thu Oct 05, 2023 1:02 pm
Forum: X16 Feature Requests
Topic: Remove most VT52, VT100-VT525, ANSI escape sequences
Replies: 6
Views: 8315

Re: Remove most VT52, VT100-VT525, ANSI escape sequences

X16 has a PETSCII terminal built-in and I have never thought it had an ANSI terminal. The reason for my suggestion is that you could connect a serial terminal to the real X16 or the emulator and that would probably have an ANSI terminal. You could make programs that work well with the PETSCII termin...
by mobluse
Thu Sep 28, 2023 3:22 pm
Forum: X16 Feature Requests
Topic: Remove most VT52, VT100-VT525, ANSI escape sequences
Replies: 6
Views: 8315

Remove most VT52, VT100-VT525, ANSI escape sequences

It would be good if all escape sequences could be removed when printing to the screen, but not removed when echoing to a serial terminal or the console the emulator runs in, since terminal escape sequences that are not supported should be ignored by the device. This would also make it possible to ru...
by mobluse
Wed Aug 09, 2023 7:54 am
Forum: X16 Bug Reporting
Topic: X16 emulator runs horribly in Termux
Replies: 8
Views: 24134

Re: X16 emulator runs horribly in Termux

I believe that Termux doesn't emulate a CPU, but is native Linux on the phone CPU. I don't think it was mentioned which X16 binary release is run in Termux.
by mobluse
Mon Jul 31, 2023 3:08 pm
Forum: CX16 General Chat
Topic: WASD X16 initial impressions
Replies: 9
Views: 8557

Re: WASD X16 initial impressions

SHIFT LOCK does the same as CAPS LOCK on normal computers, but on C64 it was really a SHIFT LOCK i.e. the number keys were also shifted. Is the CAPS LOCK LED lit when you press SHIFT LOCK? The Commander X16 Mini Perixx Keyboard has three LEDs. It would be good if someone could write a LED test progr...