New productivity upload: File based assembler

Chat about anything CX16 related that doesn't fit elsewhere
Stefan
Posts: 454
Joined: Thu Aug 20, 2020 8:59 am

New productivity upload: File based assembler

Post by Stefan »



On 12/11/2021 at 3:15 PM, desertfish said:




oh, and one other thing, the CTRL-K cuts a line and adds it to the clipboard. But eventually it will give an error clipboard full, which is problematic if I just wanted to delete a (large) number of lines. Can we get a kill line key or alternatively some way to clear the clipboard? ❤️



Absolutely!

Just need to come up with a reasonable keyboard shortcuts, as they are running out.

It is not a great solution to start using Alt+key combinations (as Nano does), as those are already linked to graphical characters in PETSCII mode.

One possibility would be to link Ctrl+K to the cut command, and Ctrl+Shift+K to a new delete line command.

In a similar way Ctrl+C could be linked to the show cursor position command, and Ctrl+Shift+C could be used for a new command to continuously show the cursor position.

Have to think about it though.

EDIT: Always showing cursor position is now done and committed to master branch. I removed the Ctrl+C command altogether. Will continue with delete line command, probably another day.

User avatar
desertfish
Posts: 1094
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New productivity upload: File based assembler

Post by desertfish »


The new editor has been integrated! posted a new version of the assembler.

User avatar
desertfish
Posts: 1094
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New productivity upload: File based assembler

Post by desertfish »


New version!  .incbin already worked to include binary data, but now .include also works!  So you can now write modularized assembly programs across multiple files.

Stefan
Posts: 454
Joined: Thu Aug 20, 2020 8:59 am

New productivity upload: File based assembler

Post by Stefan »


Great work @desertfish!!!

Is included code within the same scope as code in the main file? I mean, must all labels and identifiers be unique in both the main file and all included files?

User avatar
desertfish
Posts: 1094
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New productivity upload: File based assembler

Post by desertfish »


Yes it’s a literal textual include.

theres no scoping of labels supported yet.

User avatar
desertfish
Posts: 1094
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New productivity upload: File based assembler

Post by desertfish »


The assembler has been updated several times.

Post Reply