Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
d273ca7
index html abbreviation and more
radius75 May 14, 2025
bc39102
Merge branch 'GideonZ:master' into basic-tokenizer-editor-abbreviation
radius75 Jun 17, 2025
01dd846
Merge branch 'GideonZ:master' into basic-tokenizer-editor-abbreviation
radius75 Sep 6, 2025
e41c110
Merge branch 'master' of https://github.com/radius75/1541ultimate.git…
radius75 Jan 2, 2026
043a71d
only lines starting with a number are taken into account, comments pl…
radius75 Jan 2, 2026
14f5f44
fix upload&run
radius75 Jan 3, 2026
70f6b79
The tokenizer will give the program line number where the error occur…
radius75 Jan 3, 2026
6bfb2c6
special as external file
radius75 Jan 3, 2026
6aa325a
including an initial set of special symbols, perhaps they are some st…
radius75 Jan 4, 2026
1873ca1
Merge branch 'master' of https://github.com/GideonZ/1541ultimate.git …
radius75 Jan 5, 2026
5526004
conflicts resolved:
radius75 Jan 5, 2026
3314887
Improved line validation: use tokenized length and fix line number pa…
radius75 Jan 5, 2026
9de6a73
comment and cleanup
radius75 Jan 5, 2026
04dc345
^ can be used in text like {^}
radius75 Jan 5, 2026
3b72b1f
disabling line wrapping in the tokenizer window, this makes it easier…
radius75 Jan 5, 2026
6a3dd86
Displaying the correct error message for invalid special character co…
radius75 Jan 6, 2026
0abca79
short guide to using Basic Tokenizer
radius75 Jan 6, 2026
e31f6d4
Merge branch 'master' of https://github.com/GideonZ/1541ultimate.git …
radius75 Jan 7, 2026
cb061f7
conflicts resolved
radius75 Jan 7, 2026
fc31ccd
Dynamic Custom Token & BASIC Editor Loading System
radius75 Jan 8, 2026
54301ef
Added spellcheck="false", autocorrect="off", and autocapitalize="off"…
radius75 Jan 9, 2026
fbb3f87
Updated welcome screen with comprehensive QUICK TIPS and compatibilit…
radius75 Jan 9, 2026
74ff2fc
fix: implement reliable UI initialization and dynamic profile loading
radius75 Jan 9, 2026
5fac957
Refactor C64 special tokens mapping and overhaul table UI rendering
radius75 Jan 9, 2026
def78d7
Updated the special characters table and improved data transmission s…
radius75 Jan 10, 2026
0f0bded
fix: implement proper BASIC v2.0 line termination on 0x00 byte
radius75 Jan 10, 2026
56a3900
Fix console errors and rendering by adding CSS priority, and a functi…
radius75 Jan 12, 2026
f950e22
tooltip for tokenizer
radius75 Jan 11, 2026
d088f59
Merge branch 'master' of https://github.com/GideonZ/1541ultimate.git …
radius75 Jan 14, 2026
02b1279
conflicts resolved
radius75 Jan 14, 2026
6e5bfdb
special and tooltip table fixes
radius75 Jan 13, 2026
3a1d1ee
Added {word*n} format compatible with CBMprgStudio.
radius75 Jan 14, 2026
fd2de20
refactor: support asterisk '*' repetition in {word*count} syntax
radius75 Jan 14, 2026
cbb6b83
Added a usage example for the {**n} shortcut.
radius75 Jan 14, 2026
e2f856e
feat: externalize tokenizer profiles to improve user customization
radius75 Jan 17, 2026
a4be369
Update SCRIPT_TO_LOAD instructions with path details and hard reload …
radius75 Jan 17, 2026
832e0fb
Refactor initial content loading and clean up index.html
radius75 Jan 18, 2026
1a42720
Subject: Refactor data initialization to support external tokenizer p…
radius75 Jan 21, 2026
74c5006
do not merge this s_it commit
radius75 Jan 21, 2026
6234603
Revert "do not merge this s_it commit"
radius75 Jan 22, 2026
bd395b0
Update TOOLTIP data with corresponding BASIC keyword tokens.
radius75 Jan 22, 2026
f7a94ce
define keyword tokens for arithmetic operators in tooltips
radius75 Jan 22, 2026
af02578
Added Clear button with confirmation dialog to tokenizer.
radius75 Feb 9, 2026
be5c740
Replace system confirm dialog with a custom modal to eliminate the br…
radius75 Feb 9, 2026
5cb5e00
translate comments to English
radius75 Feb 9, 2026
8d95068
Sets focus back to the editor window for immediate pasting after clear
radius75 Feb 24, 2026
1dc2fe6
Merge branch 'test-merge' of https://github.com/GideonZ/1541ultimate.…
radius75 Sep 3, 2026
07790be
Name the tokenizer files the way the tree names files
chrisgleissner Sep 3, 2026
ade99cc
Set the caret on the textarea, not on the jQuery object
chrisgleissner Sep 3, 2026
5a63777
Refuse an upload that cannot produce a valid program
chrisgleissner Sep 3, 2026
ad75c95
Cover what the BASIC editor uploads
chrisgleissner Sep 3, 2026
6ec8100
Fix tokenizer profile description
radius75 Sep 3, 2026
d6b20ff
Tokenizer case normalization
radius75 Sep 6, 2026
6eccbb2
For full compatibility with CBMprgStudio,
radius75 Sep 7, 2026
9814fad
Merge branch 'test-merge' of https://github.com/GideonZ/1541ultimate.…
radius75 Sep 7, 2026
1dfa9de
clarify lowercase normalization behavior in comments
radius75 Sep 7, 2026
a2c0de7
Fix RUF005 in tokenizer test
radius75 Sep 9, 2026
5407d02
Fix BASIC tokenizer state handling for DATA and quoted strings
radius75 Sep 10, 2026
1ee038b
Validate BASIC line number range
radius75 Sep 10, 2026
dd47dfc
Limit special character repetitions
radius75 Sep 10, 2026
d3b57e6
Clarify shifted-letter handling in DATA comments
radius75 Sep 11, 2026
426d217
Clarify REM shifted-letter handling
radius75 Sep 11, 2026
8c56ff2
Clarify null-byte handling in BASIC tokenizer
radius75 Sep 11, 2026
20b532c
Merge branch 'master' of https://github.com/GideonZ/1541ultimate.git …
radius75 Sep 16, 2026
f423688
missing closing quotation mark in line 92 of the BASIC example
radius75 Oct 27, 2026
da4b875
Merge branch 'master' of https://github.com/GideonZ/1541ultimate.git …
radius75 Oct 27, 2026
f111f36
Shorten default BASIC editor welcome text
radius75 Oct 30, 2026
5894b6a
Improve BASIC editor dialogs and navigation
radius75 Oct 31, 2026
9494ac0
Remove unused BASIC editor keypress handler
radius75 Nov 1, 2026
0dc4fd9
updater
radius75 Nov 2, 2026
f6ef68c
Merge branch 'master' of https://github.com/GideonZ/1541ultimate.git …
radius75 Nov 10, 2026
615976a
Merge branch 'master' of https://github.com/GideonZ/1541ultimate.git …
radius75 Nov 13, 2026
f2a7b00
Merge branch 'master' of https://github.com/GideonZ/1541ultimate.git …
radius75 Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
780 changes: 780 additions & 0 deletions html/cbm_prg_studio.js

Large diffs are not rendered by default.

646 changes: 454 additions & 192 deletions html/index.html

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions html/special.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// =========================================================================
// ULTIMATE BASIC TOKENIZER - PROFILE CONFIGURATION
// =========================================================================
// INSTRUCTIONS:
// To switch between different BASIC flavors or custom token sets,
// update the 'SCRIPT_TO_LOAD' variable below.
//
// - Path: Files are typically located in /Flash/html/ on your device.
// - Filename: Must be enclosed in quotes (e.g., "filename.js").
// - Tokenizer configuration, including token tables, special character
// mappings, and global lowercase normalization settings for the code,
// is loaded from the selected external file.
// - Refresh: After editing this file, perform a Hard Reload (Ctrl+F5)
// in your browser to apply changes.
//
// EXAMPLES:
// var SCRIPT_TO_LOAD = "cbm_prg_studio.js"; // Load CBM prg Studio mapping
//
// If the selected file cannot be loaded or contains syntax errors,
// the tokenizer will display an error message.
// =========================================================================

var SCRIPT_TO_LOAD = "cbm_prg_studio.js";
6 changes: 6 additions & 0 deletions run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ SUITES: Sequence[Suite] = (
# address fails here rather than on somebody's desk. Manual for the same
# reason web-theme is.
Suite("e2e", "web-index", "tests/e2e/web/index_test.py", "", manual=True),
# Also needs no device: the BASIC editor turns typed text into the bytes of
# a program in C64 memory, and nothing on the page shows those bytes, so a
# keyword uploaded as plain characters or a wrong link pointer is invisible
# until the program is run. It reads the upload the page sends the stub.
# Manual for the same reason web-index is.
Suite("e2e", "web-tokenizer", "tests/e2e/web/tokenizer_test.py", "", manual=True),
# Validates tests/e2e/lib/ui_backend.py itself (Telnet, REST/Freeze,
# REST/Overlay) before any suite built on it runs, so a broken shared
# facade fails here with a clear cause instead of as confusing failures
Expand Down
1 change: 1 addition & 0 deletions software/application/rv_update_u2/update.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void do_update(void)
write_flash_file("1541.rom", &_1541_bin_start, 0x4000);
write_flash_file("snds1541.bin", &_snds1541_bin_start, 0xC000);
write_html_file("index.html", _index_html_start, (int)_index_html_end - (int)_index_html_start);
write_tokenizer_files();
write_api_files(_rest_api_openapi_u2_yaml_start, _rest_api_openapi_u2_yaml_end);

if (choice == 1) {
Expand Down
1 change: 1 addition & 0 deletions software/application/update_u2p/update.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ void do_update(void)
write_flash_file("snds1571.bin", &_snds1571_bin_start, 0xC000);
write_flash_file("snds1581.bin", &_snds1581_bin_start, 0xC000);
write_html_file("index.html", _index_html_start, (int)_index_html_end - (int)_index_html_start);
write_tokenizer_files();
write_api_files(_rest_api_openapi_u2_yaml_start, _rest_api_openapi_u2_yaml_end);

Flash *flash2 = get_flash();
Expand Down
13 changes: 13 additions & 0 deletions software/application/update_u2p/update_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,19 @@ static FRESULT write_html_file(const char *name, const char *data, int length)
return fres;
}

// Default tokenizer loader and profile, installed next to index.html.
extern const char _special_js_start[];
extern const char _special_js_end[1];
extern const char _cbm_prg_studio_js_start[];
extern const char _cbm_prg_studio_js_end[1];

static FRESULT write_tokenizer_files()
{
FRESULT loader = write_html_file("special.js", _special_js_start, (int)_special_js_end - (int)_special_js_start);
FRESULT profile = write_html_file("cbm_prg_studio.js", _cbm_prg_studio_js_start, (int)_cbm_prg_studio_js_end - (int)_cbm_prg_studio_js_start);
return (loader != FR_OK) ? loader : profile;
}

extern const char _api_html_start[];
extern const char _api_html_end[1];

Expand Down
1 change: 1 addition & 0 deletions software/application/update_u2p/update_u64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ void do_update(void)
write_flash_file("snds1581.bin", &_snds1581_bin_start, 0xC000);

write_html_file("index.html", _index_html_start, (int)_index_html_end - (int)_index_html_start);
write_tokenizer_files();
write_api_files(_rest_api_openapi_u64_yaml_start, _rest_api_openapi_u64_yaml_end);

flash2->protect_disable();
Expand Down
1 change: 1 addition & 0 deletions software/application/update_u2p/update_u64ii.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ void do_update(void)
write_flash_file("snds1581.bin", &_snds1581_bin_start, 0xC000);

write_html_file("index.html", _index_html_start, (int)_index_html_end - (int)_index_html_start);
write_tokenizer_files();
write_api_files(_rest_api_openapi_u64_yaml_start, _rest_api_openapi_u64_yaml_end);

flash2->protect_disable();
Expand Down
1 change: 1 addition & 0 deletions software/application/update_u2pl/update.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ void do_update(void)
write_flash_file("snds1571.bin", &_snds1571_bin_start, 0xC000);
write_flash_file("snds1581.bin", &_snds1581_bin_start, 0xC000);
write_html_file("index.html", _index_html_start, (int)_index_html_end - (int)_index_html_start);
write_tokenizer_files();
write_api_files(_rest_api_openapi_u2_yaml_start, _rest_api_openapi_u2_yaml_end);

flash_buffer(flash2, screen, FLASH_ID_BOOTFPGA, &_u2p_ecp5_impl1_bit_start, &_u2p_ecp5_impl1_bit_end, "", "Runtime FPGA");
Expand Down
2 changes: 1 addition & 1 deletion target/common/gcc.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

$(OUTPUT)/$(PRJ).out: $(LINK) $(OBJS_C) $(OBJS_CC) $(OBJS_ASM) $(OBJS_ASMS) $(OBJS_6502) $(OBJS_BIN) $(OBJS_HTML) $(OBJS_YAML) $(OBJS_IEC) $(OBJS_NANO) $(OBJS_RBF) $(OBJS_APP) $(LWIPLIB) $(OBJS_RAW)
$(OUTPUT)/$(PRJ).out: $(LINK) $(OBJS_C) $(OBJS_CC) $(OBJS_ASM) $(OBJS_ASMS) $(OBJS_6502) $(OBJS_BIN) $(OBJS_HTML) $(OBJS_JS) $(OBJS_YAML) $(OBJS_IEC) $(OBJS_NANO) $(OBJS_RBF) $(OBJS_APP) $(LWIPLIB) $(OBJS_RAW)
@echo Linking using GCC...
$(CPP) -Wl,-Map=$(OUTPUT)/$(PRJ).map,$(LFLAGS) -T'$(LINK)' $(OPTIONS) -o $@ $(ALL_OBJS) $(LIBS2)
@$(SIZE) $@
Expand Down
2 changes: 1 addition & 1 deletion target/common/ld.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LIBMARCH ?= $(MARCH)
LIBS += $(shell $(CC) -march=$(LIBMARCH) -mabi=$(MABI) -print-file-name=libc.a)
LIBS += $(shell $(CC) -march=$(LIBMARCH) -mabi=$(MABI) -print-libgcc-file-name)

$(OUTPUT)/$(PRJ).out: $(LINK) $(OBJS_C) $(OBJS_CC) $(OBJS_ASM) $(OBJS_ASMS) $(OBJS_6502) $(OBJS_BIN) $(OBJS_HTML) $(OBJS_YAML) $(OBJS_IEC) $(OBJS_NANO) $(OBJS_RBF) $(OBJS_APP) $(LWIPLIB)
$(OUTPUT)/$(PRJ).out: $(LINK) $(OBJS_C) $(OBJS_CC) $(OBJS_ASM) $(OBJS_ASMS) $(OBJS_6502) $(OBJS_BIN) $(OBJS_HTML) $(OBJS_JS) $(OBJS_YAML) $(OBJS_IEC) $(OBJS_NANO) $(OBJS_RBF) $(OBJS_APP) $(LWIPLIB)
@echo Linking using LD...
$(LD) $(LLIB) $(LFLAGS) -T $(LINK) -Map=$(OUTPUT)/$(PRJ).map -o $@ $(ALL_OBJS) $(LIBS)
@$(SIZE) $@
Expand Down
13 changes: 12 additions & 1 deletion target/common/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ OBJS_6502 = $(notdir $(SRCS_6502:%.tas=%.o))
OBJS_IEC = $(notdir $(SRCS_IEC:%.iec=%.o))
OBJS_NANO = $(notdir $(SRCS_NANO:%.nan=%.o))
OBJS_BIN = $(notdir $(SRCS_BIN:%.bin=%.o))
OBJS_JS = $(notdir $(SRCS_JS:%.js=%.o))
OBJS_HTML = $(notdir $(SRCS_HTML:%.html=%.o))
OBJS_YAML = $(notdir $(SRCS_YAML:%.yaml=%.o))
OBJS_RBF = $(notdir $(SRCS_RBF:%.rbf=%.o))
OBJS_APP = $(notdir $(SRCS_APP:%.app=%.ao))
CHK_BIN = $(notdir $(SRCS_BIN:%.bin=%.chk))

ALL_OBJS = $(addprefix $(OUTPUT)/,$(OBJS_ASM) $(OBJS_ASMS) $(OBJS_C) $(OBJS_CC) $(OBJS_IEC) $(OBJS_NANO) $(OBJS_6502) $(OBJS_BIN) $(OBJS_RBF) $(OBJS_APP) $(OBJS_HTML) $(OBJS_YAML))
ALL_OBJS = $(addprefix $(OUTPUT)/,$(OBJS_ASM) $(OBJS_ASMS) $(OBJS_C) $(OBJS_CC) $(OBJS_IEC) $(OBJS_NANO) $(OBJS_6502) $(OBJS_BIN) $(OBJS_RBF) $(OBJS_APP) $(OBJS_HTML) $(OBJS_JS) $(OBJS_YAML))
ALL_DEP_OBJS = $(addprefix $(OUTPUT)/,$(OBJS_C) $(OBJS_CC))


Expand Down Expand Up @@ -105,6 +106,16 @@ $(OUTPUT)/$(PRJ).shex: $(OUTPUT)/$(PRJ).out
--redefine-sym $(was)_size=$(becomes)_size \
--redefine-sym $(was)_end=$(becomes)_end

%.o: %.js
@echo Converting $(<F) JavaScript to $(@F)..
@$(eval was := _binary_$(subst .,_,$(subst /,_,$(subst -,_,$<))))
@$(eval becomes := _$(subst .,_,$(subst -,_,$(<F))))
@$(OBJCOPY) -I binary -O $(ELFTYPE) --binary-architecture $(ARCHITECTURE) $< $(OUTPUT)/$@ \
--rename-section .data=.rodata,alloc,load,readonly,data,contents \
--redefine-sym $(was)_start=$(becomes)_start \
--redefine-sym $(was)_size=$(becomes)_size \
--redefine-sym $(was)_end=$(becomes)_end

%.o: %.yaml
@echo Converting $(<F) document to $(@F)..
@$(eval was := _binary_$(subst .,_,$(subst /,_,$(subst -,_,$<))))
Expand Down
1 change: 1 addition & 0 deletions target/u2/riscv/updater/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ SRCS_ASMS = crt0.S port_asm.S
SRCS_6502 =

SRCS_HTML = index.html api.html
SRCS_JS = special.js cbm_prg_studio.js
SRCS_YAML = rest_api_openapi_u2.yaml

SRCS_BIN = ultimate.bin \
Expand Down
1 change: 1 addition & 0 deletions target/u2plus/nios/updater/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ SRCS_6502 =
SRCS_BIN = chars.bin 1541.bin 1571.bin 1581.bin snds1541.bin snds1571.bin snds1581.bin

SRCS_HTML = index.html api.html
SRCS_JS = special.js cbm_prg_studio.js
SRCS_YAML = rest_api_openapi_u2.yaml

SRCS_IEC =
Expand Down
1 change: 1 addition & 0 deletions target/u2plus_L/riscv/updater/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ SRCS_6502 =
SRCS_BIN = chars.bin 1541.bin 1571.bin 1581.bin snds1541.bin snds1571.bin snds1581.bin bootloader.bin partition-table.bin bridge.bin

SRCS_HTML = index.html api.html
SRCS_JS = special.js cbm_prg_studio.js
SRCS_YAML = rest_api_openapi_u2.yaml

SRCS_IEC =
Expand Down
1 change: 1 addition & 0 deletions target/u64/nios2/updater/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ SRCS_6502 =
SRCS_BIN = chars.bin 1541.bin 1571.bin 1581.bin snds1541.bin snds1571.bin snds1581.bin bootloader.bin partition-table.bin bridge.bin

SRCS_HTML = index.html api.html
SRCS_JS = special.js cbm_prg_studio.js
SRCS_YAML = rest_api_openapi_u64.yaml

SRCS_IEC =
Expand Down
1 change: 1 addition & 0 deletions target/u64ii/riscv/update/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ SRCS_6502 =
SRCS_BIN = chars.bin 1541.bin 1571.bin 1581.bin snds1541.bin snds1571.bin snds1581.bin bootloader.bin partition-table.bin u64ctrl.bin

SRCS_HTML = index.html api.html
SRCS_JS = special.js cbm_prg_studio.js
SRCS_YAML = rest_api_openapi_u64.yaml

SRCS_IEC =
Expand Down
Loading