-
Notifications
You must be signed in to change notification settings - Fork 10
/
WeeGUI_MLI.s
81 lines (73 loc) · 1.67 KB
/
WeeGUI_MLI.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
;
; 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 = $4004 ; Offset of WGDispatch from 4000
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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
WGPendingView = 52
WGScrollX = 54
WGScrollXBy = 56
WGScrollY = 58
WGScrollYBy = 60
WGEnableMouse = 62
WGDisableMouse = 64
WGDeleteView = 66
WGEraseView = 68
WGExit = 70
WGCreateProgress = 72
WGSetState = 74
WGViewSetRawTitle = 76
WGSetContentWidth = 78
WGSetContentHeight = 80
WGStrokeRoundRect = 82
WGCreateRadio = 84
WGResetAll = 86
WGGetState = 88
WGPendingClick = 90
WGClearPendingClick = 92
WGResetView = 94