Changes

Jump to: navigation, search

Caruh

15 bytes added, 16:21, 1 November 2023
/* OS functions for Tasks */
Furthermore, certain parameters can be queried from RAM variables.
Please refer to the chapter on Task variables above.
 
=== Caruh's GUI and OS functions ===
* MENU SYSTEM
The 'M_DISP2' menu system known from CBM can be called up with the 'RST 1' command. For parameter transfer see source code. #######
* DRAW WINDOW
'''Such a data block looks like this:'''
DB LOCATE_YY ;Upmost line
DB LOCATE_XX ;Leftmost row
DB LINES ;Number of lines in Window-Frame
DB ROWS ;Number of rows / columns
DB "Sample text",&00 ;Text of first line, terminated by byte &00
 '''ATTENTION: ''' DR_WIN at &000B will switch the Interrupts OFF. The calling Task must switch them on again by itself.
'''To call this function:'''
Task number in TTNS3 = &BE03 (A Task can read its number from address TNUME = &7FFD)
'''Return from function: ''' First you need to take a look at the Z-Flag, then see for data in XL and XH.
Z-Flag set '1' -> User Break using ESC key! Do not use values in IX!
'''Return from function: ''' When returning, the zero flag provides information about the success:
Z-Flag cleared -> Areas overlapping! Area can NOT be used!
1,988
edits