Skip to content

Commit aa5a0bc

Browse files
committed
Additional comments by Daniele Terdina.
Also removed German localization.
1 parent 0142ddd commit aa5a0bc

File tree

15 files changed

+620
-549
lines changed

15 files changed

+620
-549
lines changed

arithm_asm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ L0485C CMPI.W #$20,D0
673673
BSR.S L048C2
674674
MOVE.W $00(A6,A1.L),D0
675675
ADD.L $02(A6,A1.L),D1
676-
L04870 BVS.S L04898 *
676+
L04870 BVS.S L04898
677677
BEQ.S L048AA
678678
MOVE.L D1,D3
679679
ADD.L D3,D3
@@ -805,14 +805,14 @@ L0497A MOVEQ #-$12,D0
805805
L0497E MOVE.L D4,-(A7)
806806
MOVE.L D5,-(A7)
807807
SF D5
808-
MOVE.L $02(A6,A1.L),D2 * mantisa1
808+
MOVE.L $02(A6,A1.L),D2 * mantissa1
809809
BGT.S L04994
810810
BEQ.S L04A00
811811
JSR L04A0C(PC)
812812
MOVE.L D1,D2
813813
ST D5
814814
L04994 ADDQ.W #6,A1
815-
MOVE.L $02(A6,A1.L),D1 * mantisa2
815+
MOVE.L $02(A6,A1.L),D1 * mantissa2
816816
BGT.S L049A4
817817
BEQ.S L049F6
818818
JSR L04A0C(PC)

basic2_asm

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ L05B42 BSR L05AA0
537537
ADDQ.W #2,A0
538538
BRA.S L05B38
539539

540-
* table of priorities of artihmetic operations
540+
* table of priorities of arithmetic operations
541541

542542
L05B56 DC.L $00050506
543543
DC.L $06040404
@@ -1002,7 +1002,7 @@ L05F6C MOVEQ #$06,D1
10021002
L05F80 MOVEQ #$00,D1
10031003
MOVE.W $00(A6,A4.L),D1
10041004
ADDQ.W #2,A4
1005-
L05F88 MOVE.L D1,-(A7)
1005+
L05F88 MOVE.L D1,-(A7) * convert name (D1=len, A4=ptr) to string and push to arithmetic stack
10061006
ADDQ.L #3,D1
10071007
BSR.S L05FBC
10081008
MOVE.L (A7),D1
@@ -1539,7 +1539,7 @@ L064A2 MOVE.L A4,-(A7)
15391539
MOVEQ #$0F,D0
15401540
AND.B -$07(A6,A5.L),D0
15411541
SUBQ.B #1,D0
1542-
BEQ.S L064D6
1542+
BEQ.S L064D6 * already a string
15431543
MOVEQ #$00,D0
15441544
MOVE.W -$06(A6,A5.L),D0
15451545
BLT.S L064DC
@@ -2508,29 +2508,29 @@ L06D8E MOVE.L $00(A6,A1.L),$04(A6,A2.L)
25082508
RTS
25092509

25102510
L06DA2 LEA L06E22(PC),A1
2511-
L06DA6 MOVEM.L D1-D2/D5-D7/A0/A2-A3,-(A7)
2511+
L06DA6 MOVEM.L D1-D2/D5-D7/A0/A2-A3,-(A7) * BP.INIT $110
25122512
MOVEQ #$08,D6
25132513
L06DAC MOVEQ #$00,D7
25142514
MOVEQ #$00,D5
2515-
MOVE.W (A1)+,D5
2515+
MOVE.W (A1)+,D5 * number of procedures/functions
25162516
LSL.L #3,D5
25172517
MOVE.L D5,D1
25182518
MOVE.L A1,-(A7)
2519-
JSR L04E60(PC)
2519+
JSR L04E60(PC) * reserve D1 bytes in name table
25202520
MOVE.L D5,D1
2521-
JSR L04E72(PC)
2521+
JSR L04E72(PC) * reserve D1 bytes in name list
25222522
MOVEA.L (A7)+,A3
25232523
L06DC4 MOVEA.L A3,A1
2524-
MOVE.W (A3)+,D0
2524+
MOVE.W (A3)+,D0 * end of procedures/functions marker?
25252525
BEQ.S L06E0C
2526-
ADDA.W D0,A1
2526+
ADDA.W D0,A1 * pointer to routine
25272527
MOVE.L A1,-(A7)
2528-
MOVE.B (A3)+,D5
2528+
MOVE.B (A3)+,D5 * name length
25292529
MOVE.B D5,-(A7)
25302530
MOVE.B D6,-(A7)
2531-
MOVE.B D5,D1
2532-
MOVEA.L (A6),A1
2533-
L06DD8 MOVE.B (A3)+,$00(A6,A1.L)
2531+
MOVE.B D5,D1 * name length counter
2532+
MOVEA.L (A6),A1 * buffer base
2533+
L06DD8 MOVE.B (A3)+,$00(A6,A1.L) * copy name to buffer
25342534
ADDQ.W #1,A1
25352535
SUBQ.B #1,D1
25362536
BGT.S L06DD8
@@ -2539,16 +2539,16 @@ L06DD8 MOVE.B (A3)+,$00(A6,A1.L)
25392539
LEA L08B5A(PC),A2
25402540
MOVEA.L (A2),A2
25412541
JSR L08622(PC)
2542-
BRA.S L06E16
2543-
MOVEA.L (A7)+,A3
2542+
BRA.S L06E16 * error return point
2543+
MOVEA.L (A7)+,A3 * ok return point (A2 points to name table entry (rel A6))
25442544
MOVE.B (A7)+,D6
25452545
MOVE.B (A7)+,D5
2546-
MOVE.L (A7)+,$04(A6,A2.L)
2547-
MOVE.B D6,$00(A6,A2.L)
2548-
MOVE.B D7,$01(A6,A2.L)
2546+
MOVE.L (A7)+,$04(A6,A2.L) * address of function
2547+
MOVE.B D6,$00(A6,A2.L) * 8 for procedures; 9 for functions
2548+
MOVE.B D7,$01(A6,A2.L) * D7=0
25492549
BTST D7,D5
25502550
BNE.S L06DC4
2551-
ADDQ.W #1,A3
2551+
ADDQ.W #1,A3 * increment pointer if address is odd
25522552
BRA.S L06DC4
25532553

25542554
L06E0C SUBQ.W #8,D6
@@ -2557,8 +2557,8 @@ L06E0C SUBQ.W #8,D6
25572557
MOVEA.L A3,A1
25582558
BRA.S L06DAC
25592559

2560-
L06E16 ADDA.W #$000C,A7
2561-
MOVEQ #-$0C,D0
2560+
L06E16 ADDA.W #$000C,A7 * clear stack
2561+
MOVEQ #-$0C,D0 * bad name
25622562
L06E1C MOVEM.L (A7)+,D1-D2/D5-D7/A0/A2-A3
25632563
RTS
25642564

basic3_asm

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1898,11 +1898,11 @@ L084CA MOVEQ #$01,D3
18981898

18991899
L084CE MOVEQ #$00,D3
19001900
L084D0 MOVEA.L A0,A3
1901-
JSR L08706(PC)
1902-
BRA.S L084F8
1901+
JSR L08706(PC) * find end of identifier
1902+
BRA.S L084F8 * ERROR
19031903

1904-
L084D8 MOVE.L A0,D5
1905-
SUB.L A3,D5
1904+
L084D8 MOVE.L A0,D5 * OK
1905+
SUB.L A3,D5 * length (>= 1)
19061906
CMPI.W #$00FF,D5
19071907
BGT.S L084F8
19081908
MOVE.L A0,-(A7)
@@ -2136,13 +2136,13 @@ L08728 ADDQ.L #2,(A7)
21362136
L0872A RTS
21372137

21382138
L0872C MOVEQ #$00,D1
2139-
MOVE.B $00(A6,A0.L),D1
2139+
MOVE.B $00(A6,A0.L),D1 * read next character
21402140
BLT.S L08746
21412141
LEA L03C28(PC),A1
21422142
MOVE.B $00(A1,D1.W),D2
2143-
CMPI.B #$01,D2
2143+
CMPI.B #$01,D2 * alphabetic?
21442144
BEQ.S L08746
2145-
CMPI.B #$02,D2
2145+
CMPI.B #$02,D2 * digit?
21462146
L08746 RTS
21472147

21482148
L08748 MOVE.L A0,-(A7)
@@ -2190,7 +2190,7 @@ L08794 MOVEQ #$00,D0
21902190
BCLR #$05,D0
21912191
L087AC RTS
21922192

2193-
* DISPLACEMENT - JUMPS RELATIV TO 87C4
2193+
* DISPLACEMENT - JUMPS RELATIVE TO 87C4
21942194

21952195
L087AE DC.W L084CE-EDUMMY
21962196
DC.W L0860C-EDUMMY
@@ -5561,11 +5561,11 @@ sysnew
55615561
L0AADC
55625562
XL0AADC EQU L0AADC
55635563

5564-
MOVEA.L $0034(A6),A3
5565-
MOVEA.L $0030(A6),A2
5564+
MOVEA.L $0034(A6),A3 * channel name table top
5565+
MOVEA.L $0030(A6),A2 * channel name table base
55665566
ADDA.W #$0078,A2
5567-
MOVE.L A2,$0034(A6)
5568-
L0AAEC CMPA.L A3,A2
5567+
MOVE.L A2,$0034(A6) * only three channels
5568+
L0AAEC CMPA.L A3,A2 * close channels >= #3
55695569
BGE.S L0AB02
55705570
MOVE.L $00(A6,A2.L),D0
55715571
BLT.S L0AAFC
@@ -5575,13 +5575,13 @@ L0AAEC CMPA.L A3,A2
55755575
L0AAFC ADDA.W #$0028,A2
55765576
BRA.S L0AAEC
55775577

5578-
L0AB02 MOVEQ #$10,D0
5578+
L0AB02 MOVEQ #$10,D0 * clear screen and all windows
55795579
MOVEQ #-$01,D1
55805580
MOVEQ #-$01,D2
55815581
TRAP #$01
55825582
MOVEQ #$10,D0
55835583
TRAP #$01
5584-
MOVE.L $0040(A6),$0044(A6)
5584+
MOVE.L $0040(A6),$0044(A6) * empty line number table
55855585
CLR.W $009E(A6)
55865586
BSR L0AA88
55875587
MOVE.L $0010(A6),$0014(A6)
File renamed without changes.
File renamed without changes.

js_key

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ L0B458
99

1010
dc.l $000C008A,$004B00C9,$01080112
1111

12-
* the first bytes are displacements for key, shift key, ctrl_key
12+
* the first bytes are displacements for key, shift key, ctrl key
1313
* ctrl-shift key, cursor, special keys
1414
* the first 4 sequences start each with $03,$3F
1515
* if you want to split: Take care for even adresses or use
@@ -51,6 +51,6 @@ L0B458
5151
* DC.L $69926F84
5252
* DC.L $758700FF
5353

54-
* LAST BYTE ($FF) PROBABLY HAST OB CONVERT TO $00 !!!!
54+
* LAST BYTE ($FF) PROBABLY HAS TO BE CONVERTED TO $00 !!!!
5555

5656
****** End KEYBOARD_ASM keyboard_asm

0 commit comments

Comments
 (0)