Skip to content

Add VDU4 and VDU5 support #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
julianregel opened this issue Apr 29, 2023 · 2 comments
Closed

Add VDU4 and VDU5 support #46

julianregel opened this issue Apr 29, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@julianregel
Copy link

Please could VDU4 and VDU5 support be added:

  • VDU 4: Print at text cursor
  • VDU 5: Print at graphics cursor

This would give the ability to switch the printing of text between the two cursors and allow for text positioning that is more precise than the default text positions (as set by the BASIC "TAB" instruction). For example:

10 MODE 1
20 VDU 4
30 PRINT TAB(4,4)"PRINTING AT TEXT CURSOR"
40 VDU 5
50 MOVE 640,512
60 PRINT "PRINTING AT GRAPHICS CURSOR"
70 VDU 4
80 PRINT "BACK AT TEXT CURSOR"

In the above example, the text at line 30 should be near the top of the screen, the text at line 60 roughly in the middle and the text at line 80 following on from the text at line 30.

@breakintoprogram breakintoprogram added the enhancement New feature or request label May 12, 2023
@breakintoprogram breakintoprogram moved this to In Progress in AGON Quark Firmware May 17, 2023
@breakintoprogram breakintoprogram added duplicate This issue or pull request already exists enhancement New feature or request and removed enhancement New feature or request duplicate This issue or pull request already exists labels May 19, 2023
@breakintoprogram
Copy link
Owner

breakintoprogram commented May 19, 2023

Should be a straightforward fix:

  • Add a flag that is set on VDU 5, cleared with VDU 4, MODE - done
  • When printing a character, check the flag and use one of two print character routines - done
  • When printing to graphic, only clear character space when deleting - done
  • All cursor operations work but no scrolling - done

@breakintoprogram
Copy link
Owner

Note that printing character 0x7F (DEL) will do a correct backspace/delete, but the MOS editor does not use that character when deleting text on screen. So backspace when editing will not delete characters.

@breakintoprogram breakintoprogram moved this from In Progress to QA in AGON Quark Firmware May 21, 2023
@breakintoprogram breakintoprogram moved this from QA to Done in AGON Quark Firmware Jun 27, 2023
@breakintoprogram breakintoprogram moved this from Done to QA in AGON Quark Firmware Jun 30, 2023
@breakintoprogram breakintoprogram moved this from QA to Done in AGON Quark Firmware Jun 30, 2023
@breakintoprogram breakintoprogram moved this from Done to Released in AGON Quark Firmware Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Released
Development

No branches or pull requests

2 participants