Steven Hugg
6ce80f9154
Merge branch 'joystickfix'
2026-03-25 16:53:05 +01:00
Steven Hugg
9abed16837
Merge pull request #237 from fredsa/fix207
...
Fix #207 uppercaseOnly BASIC dialects
2026-03-25 10:30:18 +01:00
Steven Hugg
a08125d054
Merge branch 'indent'
2026-03-24 10:28:36 +01:00
Steven Hugg
c9b9a48627
use indentService, indentUnit for smart indent on non-asm files, last-line indent for asm files
2026-03-24 10:27:32 +01:00
Steven Hugg
9a6e8a15ce
Merge branch 'master' into fix207
2026-03-24 09:28:24 +01:00
Steven Hugg
1b4593984e
Merge pull request #240 from fredsa/errorclick
...
Improve compile error message click behavior
2026-03-24 09:20:18 +01:00
Steven Hugg
77e947c969
Merge pull request #232 from fredsa/fix204
...
Apple II dynamic origin, fixes #204
2026-03-24 09:07:56 +01:00
Fred Sauer
6cca8e828f
ESC dismisses settings dialog
2026-03-23 18:40:49 -07:00
Fred Sauer
97de21f066
Convert debugHighlightTags to developer setting
2026-03-23 18:36:41 -07:00
Fred Sauer
5652cffcd5
Fix shiftTab handling of tabs
...
shiftTab had incorrectly assumed all indentation was done with spaces
2026-03-23 18:36:41 -07:00
Fred Sauer
c2a6274a85
Add settings menu
...
- Tab size (default 8)
- Insert spaces when pressing TAB
- Highlight special characters
- Highlight whitespace
- Highlight unwanted trailing whitespace
- Automatically add and remove closing brackets
2026-03-23 18:36:35 -07:00
Fred Sauer
b4b59459b5
highlightWhitespace, highlighTrailingWhitespace
2026-03-23 18:33:03 -07:00
Fred Sauer
4786e7e85c
Refine DOS 3.3 and AppleSingle examples
...
- Remove note requiring alignment to $0803 or $xx00
- Replace confusingly used ORIGIN label with PGM_START
- Minor cleanup & make samples consistent with each other
2026-03-23 18:30:20 -07:00
Fred Sauer
77bcaf6d1f
Apple II log header bytes skipped
2026-03-23 18:30:20 -07:00
Fred Sauer
469d656b2e
AppleSingle BIN sample
2026-03-23 18:30:20 -07:00
Fred Sauer
f4e629c0c5
Apple II dynamic origin, fixes #204
2026-03-23 18:30:20 -07:00
Fred Sauer
aff2ea8dad
reformat src/machine/apple2.ts
2026-03-23 18:30:20 -07:00
Fred Sauer
5f88036b65
emuvideo cursor:crosshair
2026-03-23 18:30:19 -07:00
Fred Sauer
33fdc28e16
Fix #207 uppercaseOnly BASIC dialects
...
uppercaseOnly BASIC dialects will
remain uppercase only even when
loaded with compile errors.
2026-03-23 18:30:19 -07:00
Fred Sauer
771bf55bbe
fix disappearing error markers
...
Fix issue where creating an error in DASM
source and then clicking the error message
would cause the error marker to disappear.
2026-03-23 18:30:19 -07:00
Fred Sauer
1c7f75bc6d
Remove unused emuvideo CSS outline
2026-03-23 18:30:19 -07:00
Fred Sauer
63eeeff929
fixup navigateToLine
2026-03-23 18:30:19 -07:00
Fred Sauer
628073e32f
Add presets/apple2/paddles.dasm sample
2026-03-23 18:30:19 -07:00
Fred Sauer
5c0090d37b
set compile error cursor: pointer
2026-03-23 18:30:19 -07:00
Fred Sauer
a5e1c0359d
Add emucontrols-apple2
2026-03-23 18:30:19 -07:00
Fred Sauer
6519e7fb9a
use highlight instead of currentPC to jump to error
...
Click on compile error locations
temporarily highlights the line instead
of setting the currentPC marker
2026-03-23 18:30:19 -07:00
Fred Sauer
9725a3f45c
Apple load/save paddle state
2026-03-23 18:30:19 -07:00
Fred Sauer
f159ebcafb
Add Apple SW0/SW1/SW2 button support
2026-03-23 18:30:19 -07:00
Fred Sauer
361722f1ba
Add apple2 paddle/joystick support
2026-03-23 18:30:19 -07:00
Fred Sauer
4a07410033
Reformat src/machine/apple2.ts
2026-03-23 18:30:19 -07:00
Fred Sauer
feece725ce
Paddles/joystick start centered in [0,255] range
...
Values remain centered until mouse move events are received.
2026-03-23 18:30:19 -07:00
Fred Sauer
4334485271
Mouse positions relatative to canvas content
...
Ignore canvas borders and padding. This has
the nice benefit that it's much easier to land
on min/max mouse x/y, especially when moving
the mouse quickly.
2026-03-23 18:30:19 -07:00
Fred Sauer
8ef91b935d
Improve canvas mouse position calculations
...
Fix mouse cacluations to account for non-integer
canvas scale, and rect posistion & size, and
replace Math.floor() with Math.round(). Fixes
- Unreachable max x/y value in some cases.
- Disproportionate number of mouse pixels
for min and max mouse positions.
2026-03-23 18:30:19 -07:00
Fred Sauer
19b7e4edba
Reformat src/common/emu.ts
2026-03-23 18:30:19 -07:00
Steven Hugg
eaf2db15e6
asset editor: commented out scan for "DEF_METASPRITE_" a feature that was never implemented
2026-03-23 22:20:16 +01:00
Steven Hugg
4ce59bef54
Merge pull request #224 from fredsa/asseteditor
...
Asset editor improvements
2026-03-23 21:54:53 +01:00
Fred Sauer
e2ba41cf2e
fix duplicate codemirror undo/reo
2026-03-22 10:40:31 -07:00
Fred Sauer
586a6530e5
Make asset undo/redo reliable
2026-03-22 10:40:31 -07:00
Fred Sauer
b3a9ebd5cd
Add "No asset declarations found." message
2026-03-22 10:40:31 -07:00
Fred Sauer
da793a7596
asset editor decoration after regex match
2026-03-22 10:40:31 -07:00
Fred Sauer
fb2b6ea9b6
support #asseteditor/filename/lineno
...
- Track selected asset in hash
- Highlight selected asset on navigation
2026-03-22 10:40:31 -07:00
Fred Sauer
091bd25bd9
Fix palette color undo/redo
2026-03-22 10:40:31 -07:00
Fred Sauer
ef2f6fcdb5
Fix wnd undefined if asset source unopened
...
Fix broken asset edit and undo when the asset
source file has not been opened manually, for
example when reloading the #asseteditor page
directly.
2026-03-22 10:40:31 -07:00
Fred Sauer
285a0abf83
validateAssetData NES fix rletag
2026-03-22 10:40:31 -07:00
Fred Sauer
038e338d5b
validateAssetData NES max reachable offset
...
Add calculation of maximum reachable offset.
Fixes errors with `chr_generic.s`
2026-03-22 10:40:31 -07:00
Fred Sauer
f0ce15dae8
clickable asset editor decorations
2026-03-22 10:40:31 -07:00
Fred Sauer
1a3f0dc389
Add affordance for asset line numbers
2026-03-22 10:40:31 -07:00
Fred Sauer
66b9adb7cf
Improve asset editor source undo
...
Asset editor replaces text ranges instead of
the entire source file. Undo inside the source
code now scrolls asset editor edits into view,
and selects the text being edited, so that what
is being (un)edited is much clearer. Also, undo
history is no longer burdened by full file edits.
2026-03-22 10:40:31 -07:00
Fred Sauer
0432795fce
highlight invalid asset's header line only
2026-03-22 10:40:31 -07:00
Fred Sauer
088e1c7c3a
clicking asset line range highlights source lines
2026-03-22 10:40:31 -07:00