mirror of
https://github.com/irmen/prog8.git
synced 2025-01-13 10:29:52 +00:00
comment
This commit is contained in:
parent
4ced8889d3
commit
4cc0dfa10b
@ -424,8 +424,10 @@ asmsub set_screen_mode(ubyte mode @A) clobbers(A,X,Y) -> bool @Pc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
asmsub get_screen_mode() -> byte @A, byte @X, byte @Y {
|
asmsub get_screen_mode() -> byte @A, byte @X, byte @Y {
|
||||||
; -- convenience wrapper for screen_mode() to just get the current mode in A, and size in tiles in X+Y
|
; -- convenience wrapper for screen_mode() to just get the current mode in A, and size in characters in X+Y
|
||||||
; this does need a piece of inlined asm to call it ans store the result values if you call this from prog8 code
|
; this does need a piece of inlined asm to call it ans store the result values if you call this from prog8 code
|
||||||
|
; Note: you can also just do the SEC yourself and simply call screen_mode() directly,
|
||||||
|
; or use the existing SCREEN kernal routine for just getting the size in characters.
|
||||||
%asm {{
|
%asm {{
|
||||||
sec
|
sec
|
||||||
jmp screen_mode
|
jmp screen_mode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user