mirror of
https://github.com/blondie7575/WeeGUI.git
synced 2026-03-11 10:41:54 +00:00
- Moved primary library code to AUX memory - Factored mouse driver out into separate loadable module, living at the top of main memory - Pending actions now handled by caching click location instead of View ID, so interrupt handler doesn't have to call AUX memory code
65 lines
1.3 KiB
ArmAsm
65 lines
1.3 KiB
ArmAsm
;
|
|
; WeeGUI_MLI.s
|
|
; Machine Language API for WeeGUI
|
|
;
|
|
; Created by Quinn Dunki on 8/15/14.
|
|
; Copyright (c) 2014 One Girl, One Laptop Productions. All rights reserved.
|
|
;
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
; Reserved zero page locations
|
|
;
|
|
PARAM0 = $06
|
|
PARAM1 = $07
|
|
PARAM2 = $08
|
|
PARAM3 = $09
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
; WeeGUI entry point
|
|
; Set up your call, then do a JSR to this address.
|
|
;
|
|
WeeGUI = $300
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
; API call names, to be passed to WeeGUI via X register
|
|
; e.g.
|
|
; ldx #WGDesktop
|
|
; jsr WeeGUI
|
|
;
|
|
WGClearScreen = 0
|
|
WGDesktop = 2
|
|
WGSetCursor = 4
|
|
WGSetGlobalCursor = 6
|
|
WGSyncGlobalCursor = 8
|
|
WGPlot = 10
|
|
WGPrint = 12
|
|
WGFillRect = 14
|
|
WGStrokeRect = 16
|
|
WGFancyRect = 18
|
|
WGPaintView = 20
|
|
WGViewPaintAll = 22
|
|
WGEraseViewContents = 24
|
|
WGCreateView = 26
|
|
WGCreateCheckbox = 28
|
|
WGCreateButton = 30
|
|
WGViewSetTitle = 32
|
|
WGViewSetAction = 34
|
|
WGSelectView = 36
|
|
WGViewFromPoint = 38
|
|
WGViewFocus = 40
|
|
WGViewUnfocus = 42
|
|
WGViewFocusNext = 44
|
|
WGViewFocusPrev = 46
|
|
WGViewFocusAction = 48
|
|
WGPendingViewAction = 50
|
|
WGScrollX = 54
|
|
WGScrollXBy = 56
|
|
WGScrollY = 58
|
|
WGScrollYBy = 60
|
|
WGEnableMouse = 62
|
|
WGDisableMouse = 64
|
|
WGPointerDirty = 66
|