Purpose: Get current screen window size
Call address: $FFED (hex) 65517 (decimal)
Registers: none Memory: system map Flags: none Calls: noneResults:
Registers: .A = screen width .X = window width .Y = window height Memory: none Flags: none
Description: SCRORG is an Editor routine that has been slightly changed from previous CBM systems. Instead of returning the maximum SCREEN dimensions in .X and .Y, the C128 SCRORG returns the current WINDOW dimensions. It does return the maximum SCREEN width in .A. These changes make it possible for applications to "fit" themselves on the current screen window. SCRORG is also an Editor jump table entry ($C00F).
JSR $FFED ;SCRORG