Skip to content

Commit 24ac582

Browse files
committed
fix/cache_github_action
1 parent 782ccf1 commit 24ac582

28 files changed

+298
-267
lines changed

src/functions/XOP.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ XOP0_ROUTINE:
2424
rts
2525

2626
skip129:
27-
ldy #(KERNEL_SIZE_IOTAB-1)
27+
ldy #(KERNEL_SIZE_IOTAB - 1)
2828

2929
@loop:
3030
cmp IOTAB,y

src/functions/XWRx.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ XWSTR0_re_enter_from_XDECAL:
3939
tax ;
4040
lda KERNEL_ADIOB,x ; GET vectors
4141
sta ADIODB_VECTOR+1
42-
lda KERNEL_ADIOB+1,x
43-
sta ADIODB_VECTOR+2 ;
42+
lda KERNEL_ADIOB + 1,x
43+
sta ADIODB_VECTOR + 2 ;
4444
lda i_o_save ; Get Byte to write
4545
@loop:
4646
bit @loop

src/functions/XWSTRx.asm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@
1919
.out .sprintf("|MODIFY:FLGSCR:XWR0") ; IOTAB
2020

2121
ldx #$00
22-
stx i_o_save+1
22+
stx i_o_save + 1
2323
sta ADDRESS_READ_BETWEEN_BANK
24-
sty ADDRESS_READ_BETWEEN_BANK+1
24+
sty ADDRESS_READ_BETWEEN_BANK + 1
2525

2626
@loop:
27-
lda i_o_save+1
27+
lda i_o_save + 1
2828
sta work_channel
2929

3030
ldy #$00
3131
jsr ORIX_VECTOR_READ_VALUE_INTO_RAM_OVERLAY
3232
beq Lc7a7
3333

34-
jsr XWSTR0_re_enter_from_XDECAL
34+
jsr XWSTR0_re_enter_from_XDECAL
3535
inc ADDRESS_READ_BETWEEN_BANK
3636
bne @loop
37-
inc ADDRESS_READ_BETWEEN_BANK+1
37+
inc ADDRESS_READ_BETWEEN_BANK + 1
3838
bne @loop
3939
.endproc

src/functions/bank_mng/search_free_bank.s

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,39 +30,39 @@
3030
ldx #$00
3131

3232
ldy #KERNEL_FIRST_FREE_RAM_BANK ; First bank
33-
sty RES+1
33+
sty RES + 1
3434

3535
lda #<KERNEL_BANK_MANAGEMENT
3636
ldy #>KERNEL_BANK_MANAGEMENT
3737

3838
sta ADDRESS_READ_BETWEEN_BANK_DOUBLON
39-
sty ADDRESS_READ_BETWEEN_BANK_DOUBLON+1
39+
sty ADDRESS_READ_BETWEEN_BANK_DOUBLON + 1
4040

4141
@not_found:
4242

43-
ldy RES+1
43+
ldy RES + 1
4444

45-
cpy #(KERNEL_LAST_RAM_BANK+1)
45+
cpy #(KERNEL_LAST_RAM_BANK + 1)
4646
beq @oob ; Out Of Bank
4747

4848
MEMORY_GET_VALUE_FROM_BANK ; A contains the value
4949

5050
cmp #$00
5151
beq @found
5252

53-
inc RES+1
53+
inc RES + 1
5454
bne @not_found
5555

5656

5757
@found:
5858
; Set busy flag
5959
lda #$01 ; Type
60-
ldy RES+1 ; Offset
60+
ldy RES + 1 ; Offset
6161
ldx #$00 ; BANK
6262

6363
MEMORY_PUT_VALUE_TO_BANK KERNEL_BANK_MANAGEMENT
6464

65-
lda RES+1 ; Offset
65+
lda RES + 1 ; Offset
6666
clc
6767
adc #kernel_bank_management_struct::KERNEL_BANK_PROCESS_ID
6868
tay

src/functions/exe/ori2.asm

Lines changed: 25 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,20 @@
1313
; 04-05 : 00 00
1414
; 06 : Inchangé
1515
.proc compute_all_offset_ORI2
16+
.out .sprintf("|MODIFY:KERNEL_CREATE_PROCESS_PTR1:compute_all_offset_ORI2")
17+
.out .sprintf("|MODIFY:RESD:compute_all_offset_ORI2")
18+
.out .sprintf("|MODIFY:RESE:compute_all_offset_ORI2")
19+
.out .sprintf("|MODIFY:PTR_READ_DEST:compute_all_offset_ORI2")
20+
21+
22+
; RESD contains header
1623

1724
; Set the adress in the kernel struct
18-
ldx kernel_process+kernel_process_struct::kernel_current_process
19-
lda kernel_process+kernel_process_struct::kernel_one_process_struct_ptr_low,x
25+
ldx kernel_process + kernel_process_struct::kernel_current_process
26+
lda kernel_process + kernel_process_struct::kernel_one_process_struct_ptr_low,x
2027
sta KERNEL_CREATE_PROCESS_PTR1
21-
lda kernel_process+kernel_process_struct::kernel_one_process_struct_ptr_high,x
22-
sta KERNEL_CREATE_PROCESS_PTR1+1
28+
lda kernel_process + kernel_process_struct::kernel_one_process_struct_ptr_high,x
29+
sta KERNEL_CREATE_PROCESS_PTR1 + 1
2330

2431

2532
; Get execution address low
@@ -44,24 +51,24 @@
4451
sta RESE
4552

4653

47-
ldy #kernel_one_process_struct::kernel_process_addr+1
54+
ldy #kernel_one_process_struct::kernel_process_addr + 1
4855

49-
ldx RESD+1
56+
ldx RESD + 1
5057
inx
5158
txa
5259
clc
5360
adc RESE
5461
sta (KERNEL_CREATE_PROCESS_PTR1),y
5562

5663

57-
ldy RESD+1 ; the ptr of the address allocated
64+
ldy RESD + 1 ; the ptr of the address allocated
5865
iny
5966

60-
sty ORI2_PROGRAM_ADRESS+1 ; addr $62: $0B
61-
sty ORI2_MAP_ADRESS+1 ; Prepare adresse map but does not compute yet ; $0B
62-
sty RESE+1 ; Set address execution ; 0B
63-
sty PTR_READ_DEST+1 ; Set address to load the next part of the program
64-
sty ORI2_PROGRAM_ADRESS+1
67+
sty ORI2_PROGRAM_ADRESS + 1 ; addr $62: $0B
68+
sty ORI2_MAP_ADRESS + 1 ; Prepare adresse map but does not compute yet ; $0B
69+
sty RESE + 1 ; Set address execution ; 0B
70+
sty PTR_READ_DEST + 1 ; Set address to load the next part of the program
71+
sty ORI2_PROGRAM_ADRESS + 1
6572
;
6673

6774
.IFPC02
@@ -70,7 +77,7 @@
7077
stz ORI2_MAP_ADRESS
7178
stz RESE ; Set address execution
7279
stz PTR_READ_DEST
73-
stz ORI2_PAGE_LOAD ; Set to 0 for instance before compute
80+
stz ORI2_PAGE_LOAD ; Set to 0 for instance before compute
7481
.p02
7582
.else
7683
lda #$00
@@ -83,7 +90,7 @@
8390

8491

8592
ldy #15 ; High start adress
86-
lda RESD+1 ; Align
93+
lda RESD + 1 ; Align
8794
clc
8895
adc #$01
8996
cmp (RESD),y
@@ -101,145 +108,25 @@
101108

102109
ldy #$08
103110
lda (RESD),y
104-
sta ORI2_LENGTH_MAP+1
111+
sta ORI2_LENGTH_MAP + 1
105112

106113
ldy #12
107114
lda (RESD),y
108115
clc
109116
adc ORI2_MAP_ADRESS
110117
bcc @S2
111-
inc ORI2_MAP_ADRESS+1
118+
inc ORI2_MAP_ADRESS + 1
112119
@S2:
113120
sta ORI2_MAP_ADRESS
114121

115122
ldy #13
116123
lda (RESD),y ; fixme 65c02
117124
clc
118-
adc ORI2_MAP_ADRESS+1
119-
sta ORI2_MAP_ADRESS+1
125+
adc ORI2_MAP_ADRESS + 1
126+
sta ORI2_MAP_ADRESS + 1
120127

121128

122129
rts
123130
.endproc
124131

125132

126-
.proc relocate_ORI2
127-
128-
; On suppose que A = page de chargement du programme (chargé en début de page)
129-
; On suppose également que z02-z05 ont été mis à jour par l'appelant (adresse et longueur de la bitmap)
130-
lda ORI2_PAGE_LOAD ; offset à appliquer
131-
beq rel_end
132-
133-
; Length map $47
134-
ldy #$00 ; Au cas ou on parte directement vers "reste"
135-
lda ORI2_LENGTH_MAP+1
136-
137-
beq reste
138-
139-
boucle:
140-
lda (ORI2_MAP_ADRESS),y ; On prend un octet de la MAP
141-
beq skip8 ; 0 -> On saute directement 8 octets du programme
142-
143-
tax ; Sauvegarde ACC
144-
tya ; Sauvegarde Y
145-
pha
146-
147-
ldy #$07 ; 8 Bits
148-
txa ; Restaure ACC
149-
reloc:
150-
lsr a
151-
bcc next
152-
153-
tax ; Sauvegarde ACC
154-
clc ; On ajuste l'adresse
155-
lda (ORI2_PROGRAM_ADRESS),y
156-
adc ORI2_PAGE_LOAD
157-
sta (ORI2_PROGRAM_ADRESS),y
158-
txa ; Restaure ACC
159-
next:
160-
dey
161-
bpl reloc
162-
pla ; Restaure Y
163-
tay
164-
;
165-
; On saute 8 octets
166-
;
167-
skip8:
168-
clc ; On saute 8 octets du programme
169-
lda ORI2_PROGRAM_ADRESS
170-
adc #$08
171-
sta ORI2_PROGRAM_ADRESS
172-
bcc *+4
173-
inc ORI2_PROGRAM_ADRESS+1
174-
suite:
175-
; $1248 don't relocate
176-
; $1268
177-
178-
179-
iny
180-
bne *+6
181-
inc ORI2_MAP_ADRESS+1 ; Page suivante dans la MAP
182-
dec ORI2_LENGTH_MAP+1
183-
bne boucle
184-
185-
;
186-
; On a traité toutes les pages entières
187-
; On traite les octets restants
188-
;
189-
; On arrive ici avec Y=0
190-
;
191-
reste:
192-
lda ORI2_LENGTH_MAP
193-
beq rel_end
194-
195-
boucle2:
196-
lda (ORI2_MAP_ADRESS),y ; On prend un octet de la MAP
197-
beq skip82 ; 0 -> On saute directement 8 octets du programme
198-
199-
tax ; Sauvegarde ACC
200-
tya ; Sauvegarde Y
201-
pha
202-
203-
204-
ldy #$07 ; 8 Bits
205-
txa ; Restaure ACC
206-
reloc2:
207-
lsr a
208-
bcc next2
209-
210-
tax ; Sauvegarde ACC
211-
clc ; On ajuste l'adresse
212-
lda (ORI2_PROGRAM_ADRESS),y
213-
adc ORI2_PAGE_LOAD
214-
sta (ORI2_PROGRAM_ADRESS),y
215-
txa ; Restaure ACC
216-
next2:
217-
dey
218-
bpl reloc2
219-
pla ; Restaure Y
220-
tay
221-
;
222-
; On saute 8 octets
223-
;
224-
skip82:
225-
clc ; On saute 8 octets du programme
226-
lda ORI2_PROGRAM_ADRESS
227-
adc #$08
228-
sta ORI2_PROGRAM_ADRESS
229-
bcc *+4
230-
inc ORI2_PROGRAM_ADRESS+1
231-
232-
suite2:
233-
iny
234-
235-
dec ORI2_LENGTH_MAP
236-
bne boucle2
237-
238-
rel_end:
239-
inc ORI2_PAGE_LOAD ; On remet la page de chargement à sa valeur initiale
240-
241-
242-
rts ; Pour utilisation éventuelle par une autre routine
243-
.endproc
244-
245-

0 commit comments

Comments
 (0)