-
Notifications
You must be signed in to change notification settings - Fork 2
/
XEDT.asm
82 lines (79 loc) · 1.21 KB
/
XEDT.asm
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
XEDT_ROUTINE
edit_line_in_bufedt
STA $67
TXA
PHA
TYA
BPL Le446
JSR LE301
LDX ACC1E
LDY $61
JSR Le62a
Le446
LDA #$0D
JSR Le648
JSR XECRPR_ROUTINE
PLA
TAX
BEQ Le45a
Le452
LDA #$09
JSR Le648
DEX
BNE Le452
Le45a
LDX $28
LDA $0248,X
BMI Le466
LDA #$11
JSR Le648
Le466
JSR test_if_all_buffers_are_empty
JSR XRD0_ROUTINE
BCS Le466
PHA
LDA #$11
JSR Le648
PLA
CMP #$0D
BNE Le4bc
Le479
PHA
JSR LE34F
PLA
PHA
CMP #$0B
BEQ Le494
LDX $62
LDY $63
JSR Le62a
LDA #$0D
JSR Le648
LDA #$0A
JSR Le648
Le494
LDX #$FF
Le496
INX
LDA BUFEDT,X
CMP #$20
BEQ Le496
TXA
PHA
LDY #$00
.byt $2c
Le4a3
inx
iny
LDA BUFEDT,X
STA BUFEDT,Y
BNE Le4a3
LDA #$90
LDY #$05
JSR XDECAY_ROUTINE
STA RES
STY RES+1
PLA
TAY
PLA
RTS