-
Notifications
You must be signed in to change notification settings - Fork 4
/
MyTools.a
executable file
·631 lines (337 loc) · 11 KB
/
MyTools.a
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
;MyTools.text, subset of ToolTraps.Text sufficient for MacPaint
;--------------------------------------------------------------------
;
; ToolTraps is the Pascal/QuickDraw-ToolBox trap interface.
; It defines all the names declared external in the interface
; code, and implements them by trapping with the "auto-pop" bit
; set to remove the extra return address on the stack
; before dispatching. Most of this file was generated by the
; program "MakeTTraps".
;
; "written" by Andy Hertzfeld 31-Oct-82
;
; MODIFICATION HISTORY:
;
; 21-Nov-82 AJH regenerated for ROM 1.8
; 01-Dec-82 AJH changes for ROM 1.9
; 13-Feb-83 AJH regenerated for ROM 2.0
; 16-Mar-83 AJH updated for ROM 2.4
; 20-Apr-83 BLH Changed dialog proc names for ROM 3.0
; 4-May-83 BLH Added new resource procs for ROM 3.0
; 28-May-83 SC Added text edit stuff and changed dialog
; 03-Jun-83 AJH Regenerated for ROM 4.0
; 08-Jun-83 SC Changed AlertSound to ErrorSound
; 13-Jun-83 AJH Added InsertResMenu, OpenDeskAcc
; 04-Aug-83 SC Added TEInsert, TEGetText, TESetJust
; 04-Aug-83 SC Added SystemBeep, DrawGrow
; 06-Aug-83 SC Added HandAndHand, PtrAndHand
; 06-Aug-83 BLH Removed EndSubResource. Changed BeginSubResource to
; HomeResFile. Added GetFinderInfo, SetFinderInfo
; at the end.
; 12-Aug-83 AJH Added DragGrayRgn
; 16-Aug-83 SC Added scrap stuff
; 18-Aug-83 BLH Removed GetFinderInfo, SetFinderInfo.
; 2-Sep-83 SC Removed Bytes stuff (It should be an OS).
;
;--------------------------------------------------------------------
.PROC TTraps,0
;
.DEF InitCurs
InitCurs .WORD $AC50
.DEF SetCurso
SetCurso .WORD $AC51
.DEF HideCurs
HideCurs .WORD $AC52
.DEF ShowCurs
ShowCurs .WORD $AC53
.DEF ShieldCu
ShieldCu .WORD $AC55
.DEF ObscureC
ObscureC .WORD $AC56
.DEF BitAnd
BitAnd .WORD $AC58
.DEF BitShift
BitShift .WORD $AC5C
.DEF BitTst
BitTst .WORD $AC5D
.DEF BitSet
BitSet .WORD $AC5E
.DEF BitClr
BitClr .WORD $AC5F
.DEF GetPixel
GetPixel .WORD $AC65
.DEF FixRatio
FixRatio .WORD $AC69
.DEF HiWord
HiWord .WORD $AC6A
.DEF LoWord
LoWord .WORD $AC6B
.DEF InitGraf
InitGraf .WORD $AC6E
.DEF OpenPort
OpenPort .WORD $AC6F
.DEF LocalToG
LocalToG .WORD $AC70
.DEF GlobalTo
GlobalTo .WORD $AC71
.DEF SetPort
SetPort .WORD $AC73
.DEF GetPort
GetPort .WORD $AC74
.DEF SetPortB
SetPortB .WORD $AC75
.DEF SetOrigi
SetOrigi .WORD $AC78
.DEF ClipRect
ClipRect .WORD $AC7B
.DEF ClosePor
ClosePor .WORD $AC7D
.DEF AddPt
AddPt .WORD $AC7E
.DEF SubPt
SubPt .WORD $AC7F
.DEF SetPt
SetPt .WORD $AC80
.DEF EqualPt
EqualPt .WORD $AC81
.DEF DrawChar
DrawChar .WORD $AC83
.DEF DrawStri
DrawStri .WORD $AC84
.DEF TextFont
TextFont .WORD $AC87
.DEF TextMode
TextMode .WORD $AC89
.DEF TextSize
TextSize .WORD $AC8A
.DEF GetFontI
GetFontI .WORD $AC8B
.DEF StringWi
StringWi .WORD $AC8C
.DEF CharWidt
CharWidt .WORD $AC8D
.DEF LineTo
LineTo .WORD $AC91
.DEF Line
Line .WORD $AC92
.DEF MoveTo
MoveTo .WORD $AC93
.DEF Moov
Moov .WORD $AC94
.DEF HidePen
HidePen .WORD $AC96
.DEF ShowPen
ShowPen .WORD $AC97
.DEF PenSize
PenSize .WORD $AC9B
.DEF PenMode
PenMode .WORD $AC9C
.DEF PenPat
PenPat .WORD $AC9D
.DEF PenNorma
PenNorma .WORD $AC9E
.DEF FrameRec
FrameRec .WORD $ACA1
.DEF PaintRec
PaintRec .WORD $ACA2
.DEF EraseRec
EraseRec .WORD $ACA3
.DEF InvertRe
InvertRe .WORD $ACA4
.DEF FillRect
FillRect .WORD $ACA5
.DEF EqualRec
EqualRec .WORD $ACA6
.DEF SetRect
SetRect .WORD $ACA7
.DEF OffSetRe
OffSetRe .WORD $ACA8
.DEF InSetRec
InSetRec .WORD $ACA9
.DEF SectRect
SectRect .WORD $ACAA
.DEF Pt2Rect
Pt2Rect .WORD $ACAC
.DEF PtInRect
PtInRect .WORD $ACAD
.DEF EmptyRec
EmptyRec .WORD $ACAE
.DEF FrameRou
FrameRou .WORD $ACB0
.DEF PaintRou
PaintRou .WORD $ACB1
.DEF FrameOva
FrameOva .WORD $ACB7
.DEF PaintOva
PaintOva .WORD $ACB8
.DEF PackBits
PackBits .WORD $ACCF
.DEF UnpackBi
UnpackBi .WORD $ACD0
.DEF PaintRgn
PaintRgn .WORD $ACD3
.DEF NewRgn
NewRgn .WORD $ACD8
.DEF DisposeR
DisposeR .WORD $ACD9
.DEF OpenRgn
OpenRgn .WORD $ACDA
.DEF CloseRgn
CloseRgn .WORD $ACDB
.DEF RectRgn
RectRgn .WORD $ACDF
.DEF OffSetRg
OffSetRg .WORD $ACE0
.DEF EmptyRgn
EmptyRgn .WORD $ACE2
.DEF PtInRgn
PtInRgn .WORD $ACE8
.DEF RectInRg
RectInRg .WORD $ACE9
.DEF CopyBits
CopyBits .WORD $ACEC
.DEF ScrollRe
ScrollRe .WORD $ACEF
.DEF SetStdPr
SetStdPr .WORD $ACEA
.DEF StdText
StdText .WORD $AC82
.DEF PicComme
PicComme .WORD $ACF2
.DEF OpenPict
OpenPict .WORD $ACF3
.DEF ClosePic
ClosePic .WORD $ACF4
.DEF KillPict
KillPict .WORD $ACF5
.DEF DrawPict
DrawPict .WORD $ACF6
.DEF MapPt
MapPt .WORD $ACF9
.DEF MapRect
MapRect .WORD $ACFA
.DEF InitFont
InitFont .WORD $ACFE
.DEF GetFontN
GetFontN .WORD $ACFF
.DEF GetFNum
GetFNum .WORD $AD00
.DEF RealFont
RealFont .WORD $AD02
.DEF SetFontL
SetFontL .WORD $AD03
.DEF InitWind
InitWind .WORD $AD12
.DEF NewWindo
NewWindo .WORD $AD13
.DEF ShowWind
ShowWind .WORD $AD15
.DEF HideWind
HideWind .WORD $AD16
.DEF SetWTitl
SetWTitl .WORD $AD1A
.DEF TrackGoA
TrackGoA .WORD $AD1E
.DEF SelectWi
SelectWi .WORD $AD1F
.DEF BeginUpD
BeginUpD .WORD $AD22
.DEF EndUpDat
EndUpDat .WORD $AD23
.DEF ValidRec
ValidRec .WORD $AD2A
.DEF FindWind
FindWind .WORD $AD2C
.DEF InitMenu
InitMenu .WORD $AD30
.DEF InsertMe
InsertMe .WORD $AD35
.DEF DrawMenu
DrawMenu .WORD $AD37
.DEF HiliteMe
HiliteMe .WORD $AD38
.DEF EnableIt
EnableIt .WORD $AD39
.DEF DisableI
DisableI .WORD $AD3A
.DEF MenuSele
MenuSele .WORD $AD3D
.DEF MenuKey
MenuKey .WORD $AD3E
.DEF SetItemS
SetItemS .WORD $AD42
.DEF CheckIte
CheckIte .WORD $AD45
.DEF GetItem
GetItem .WORD $AD46
.DEF AddResMe
AddResMe .WORD $AD4D
.DEF CountMIt
CountMIt .WORD $AD50
.DEF ShowCont
ShowCont .WORD $AD57
.DEF HideCont
HideCont .WORD $AD58
.DEF TrackCon
TrackCon .WORD $AD68
.DEF FindCont
FindCont .WORD $AD6C
.DEF GetNextE
GetNextE .WORD $AD70
.DEF GetMouse
GetMouse .WORD $AD72
.DEF StillDow
StillDow .WORD $AD73
.DEF TickCoun
TickCoun .WORD $AD75
.DEF GetKeys
GetKeys .WORD $AD76
.DEF InitDial
InitDial .WORD $AD7B
.DEF GetNewDi
GetNewDi .WORD $AD7C
.DEF DisposDi
DisposDi .WORD $AD83
.DEF Alert
Alert .WORD $AD85
.DEF ModalDia
ModalDia .WORD $AD91
.DEF GetResou
GetResou .WORD $ADA0
.DEF SystemCl
SystemCl .WORD $ADB3
.DEF SystemTa
SystemTa .WORD $ADB4
.DEF OpenDeskAcc
OpenDeskAcc .WORD $ADB6
.DEF GetCurso
GetCurso .WORD $ADB9
.DEF GetStrin
GetStrin .WORD $ADBA
.DEF GetPictu
GetPictu .WORD $ADBC
.DEF GetNewCo
GetNewCo .WORD $ADBE
.DEF GetMenu
GetMenu .WORD $ADBF
.DEF SystemEdit
SystemEdit .WORD $ADC2
.DEF SystemBe
SystemBe .WORD $ADC8
.DEF TEInit
TEInit .WORD $ADCC
.DEF TextBox
TextBox .WORD $ADCE
.DEF UnLoadSe
UnLoadSe .WORD $ADF1
.DEF ExitToSh
ExitToSh .WORD $ADF4
.DEF InfoScra
InfoScra .WORD $ADF9
.DEF UnloadSc
UnloadSc .WORD $ADFA
.DEF ZeroScra
ZeroScra .WORD $ADFC
.DEF GetScrap
GetScrap .WORD $ADFD
.END