Features!
Posted: Sun Jan 14, 2024 3:13 pm
Hey everyone,
I would point out some issues that I'm having with ugBasic and suggest some features in order to improve it.
1) ASM implementation is foggy: some commands seem to work while some others are not.
Try this:
ON CPU6809 BEGIN ASM
LDB #20
LDB #20
END ASM
It throws a critical error due to the double LDB statement, while instead the single LDB statement works, so in general I can't really test any code since I can't know while the error is internal in the compiler or what else is there (I guess the compiler should translate the asm code as it is hence doesn't make sense to get an error just bcs I'm replicating a statement).
This is the routine I was trying to execute, it should lock the text window between lines 16 and 24:
ON CPU6809 BEGIN ASM
' top line
LDB #$1F ' code US for CONSOLE x, y
SWI #$02 ' PUTC routine
LDB #$21 ' top line first decimal
SWI #$02 ' PUTC routine
LDB #$26 ' top line second decimal -- top line is 16
SWI #$02 ' PUTC routine
END ASM
2) Is there a way to edit fonts somehow? Since ugBasic uses its own system to print text, it would be useful to have a way to load or define specific fonts - for some screen res like 160x200 a 6x8 font would be really appreciate in order to fit the screen size without having those wide characters
3) Is there a way to redefine characters for Thomson, like DEFGR$ does in BASIC in order to print them as graphic tiles?
Thank you for your support and keep up the good work
I would point out some issues that I'm having with ugBasic and suggest some features in order to improve it.
1) ASM implementation is foggy: some commands seem to work while some others are not.
Try this:
ON CPU6809 BEGIN ASM
LDB #20
LDB #20
END ASM
It throws a critical error due to the double LDB statement, while instead the single LDB statement works, so in general I can't really test any code since I can't know while the error is internal in the compiler or what else is there (I guess the compiler should translate the asm code as it is hence doesn't make sense to get an error just bcs I'm replicating a statement).
This is the routine I was trying to execute, it should lock the text window between lines 16 and 24:
ON CPU6809 BEGIN ASM
' top line
LDB #$1F ' code US for CONSOLE x, y
SWI #$02 ' PUTC routine
LDB #$21 ' top line first decimal
SWI #$02 ' PUTC routine
LDB #$26 ' top line second decimal -- top line is 16
SWI #$02 ' PUTC routine
END ASM
2) Is there a way to edit fonts somehow? Since ugBasic uses its own system to print text, it would be useful to have a way to load or define specific fonts - for some screen res like 160x200 a 6x8 font would be really appreciate in order to fit the screen size without having those wide characters
3) Is there a way to redefine characters for Thomson, like DEFGR$ does in BASIC in order to print them as graphic tiles?
Thank you for your support and keep up the good work