By desertfishExperimental file-based assembler. Work in progress.
read source files (up to 62 Kb) directly from disk (sdcard in the emulator) write output directly as PRG file to disk (sdcard in the emulator) can assemble large programs to any location in memory set program counter with "* = $9000" numbers in decimal 12345, hex $abcd, binary %1010011 symbolic labels can use '<value' and '>value' to get the lsb and msb of a value respectively define data with .byte 1,2,3,4, .word $a004,$ffff and .str "hello!" can switch to (the rom-based) x16edit to avoid having to swap-load programs all the time disk device number is selectable Source code is here https://github.com/irmen/cx16assem
Here's a small example file HELLO.ASM that you can try:
* = $8000 CHROUT = $FFD2 START LDY #$00 LOOP: LDA MESSAGE,Y BEQ EXIT JSR CHROUT INY BNE LOOP EXIT: RTS MESSAGE: .STR "HELLO, WORLD!" .BYTE 13, 0
By StefanX16 Edit is a text editor for the Commander X16 platform.
Use plain text files Store text buffer in banked RAM (512KB to 2 MB) Handle large texts efficiently Simple modeless user interface inspired by GNU Nano Implement basic editing functions well - refrain from making the program too feature-rich Support both ISO and PETSCII modes Tested with emulator version r38. Run with the following command:
x16emu -sdcard sdcard.img -prg X16EDIT-x.x.x.PRG -run where x.x.x is the program version.
You can also run the program with the "Try it now" button. There is, however, no attached disk in the online emulator, and consequently you cannot save or open files. Also, some of the Ctrl+key sequences are not working in the online emulator. To fully test the program you still need to download and run it locally.
Please read the attached file romnotes.pdf if you want to try the ROM version.
Source files available at https://github.com/stefan-b-jakobsson/x16-edit
Released under GNU General Public License v 3 or later.
I was reading @gavinhaslehurst's post about implementing floating point numbers based on an article in COMPUTE! magazine. So, I headed over to archive.org and looked up that issue and read the article. Then I flipped through the rest of the issue. On page 16, there was this program, LED - A Line-Oriented Text Editor, written by Arnie Lee of Abacus Software, in BASIC, for the Commodore PET (also mentioned is an APPLE II version, but I didn't see that listing in there).
So, I typed it in and ran it under VICE. Works on the PET, works on the C-64, works on the C-128.... works on the X-16!
The only changes from the original is to comment out the 2 POKEs to disable/enable RUN/STOP and changed the line-endings from CHR$(255) to CHR$(10) so the files would have regular UNIX-style newlines ending the lines.
Is it useful? Debatable.
Is it retro? For sure.
Vol. 3, No. 2
By lamb-duhux16vt is a UTF-8 and somewhat ANSI compatible terminal emulator for
Currently the only useable "serial" port uses LOAD & SAVE to communicate between
the X16 emulator and a glue process that moves data in and out of a POSIX
In the emulator LOAD "UX16VT.PRG" & RUN. On the host, compile and run
## Unicode Support
ux16vt supports up to 4096 1-bit 8x16 pixel glyphs selected at compile time from
the Unicode Basic Multilingual Plane. Unknown characters are displayed as blank.
Currently 672 of these glyphs are used covering 862 different code points. The
following blocks are mapped:
- Basic Latin (00-7f)
- Latin-1 Supplement (80-ff)
- Greek & Coptic (370-3ff)
- Cyrillic (400-4ff)
- Box Drawing (2500-257f)
- Block Elements (2580-259f)
- no support for right-to-left text
- characters are represented internally as 16-bit values, making any characters
outside the basic multilingual plane complete inaccessible
- completely mono-spaced text. full-width glyphs are not available
## ANSI Support
Only sequences beginning with ^[[ are supported (Control Sequence Introducer).
Only numeric parameters are read. A control sequence with more than four
parameters will cause an unchecked buffer overflow.
The following functions are available:
A CUU Cursor Up
B CUD Cursor Down
C CUF Cursor Forward
D CUB Cursor Back
E CNL Cursor Next Line
F CPL Cursor Previous Line
G CHA Cursor Character Absolute [column]
H CUP Cursor Position
J ED Erase in Display
K EL Erase in Line
S SU Scroll Up
T SD Scroll Down
d VPA Vertical Position Absolute [row]
f HVP Horizontal Vertical Position
m SGR Select Graphics Rendition
The only available modes for SGR are 31 to set foreground colour to red and
30,32-39 set the foreground colour to black.
By TomXP411This is an unofficial concept program for a CX16 menu. Modify the DATA statements to add your submenus and commands.
This is currently just a demo to explore the look and and feel of a basic, BASIC menu.