@@ -198,7 +198,7 @@ func (a LoadConstant) Assemble() (RawInstruction, error) {
198
198
return assembleLoad (a .Dst , 4 , opAddrModeImmediate , a .Val )
199
199
}
200
200
201
- // String returns the the instruction in assembler notation.
201
+ // String returns the instruction in assembler notation.
202
202
func (a LoadConstant ) String () string {
203
203
switch a .Dst {
204
204
case RegA :
@@ -224,7 +224,7 @@ func (a LoadScratch) Assemble() (RawInstruction, error) {
224
224
return assembleLoad (a .Dst , 4 , opAddrModeScratch , uint32 (a .N ))
225
225
}
226
226
227
- // String returns the the instruction in assembler notation.
227
+ // String returns the instruction in assembler notation.
228
228
func (a LoadScratch ) String () string {
229
229
switch a .Dst {
230
230
case RegA :
@@ -248,7 +248,7 @@ func (a LoadAbsolute) Assemble() (RawInstruction, error) {
248
248
return assembleLoad (RegA , a .Size , opAddrModeAbsolute , a .Off )
249
249
}
250
250
251
- // String returns the the instruction in assembler notation.
251
+ // String returns the instruction in assembler notation.
252
252
func (a LoadAbsolute ) String () string {
253
253
switch a .Size {
254
254
case 1 : // byte
@@ -277,7 +277,7 @@ func (a LoadIndirect) Assemble() (RawInstruction, error) {
277
277
return assembleLoad (RegA , a .Size , opAddrModeIndirect , a .Off )
278
278
}
279
279
280
- // String returns the the instruction in assembler notation.
280
+ // String returns the instruction in assembler notation.
281
281
func (a LoadIndirect ) String () string {
282
282
switch a .Size {
283
283
case 1 : // byte
@@ -306,7 +306,7 @@ func (a LoadMemShift) Assemble() (RawInstruction, error) {
306
306
return assembleLoad (RegX , 1 , opAddrModeMemShift , a .Off )
307
307
}
308
308
309
- // String returns the the instruction in assembler notation.
309
+ // String returns the instruction in assembler notation.
310
310
func (a LoadMemShift ) String () string {
311
311
return fmt .Sprintf ("ldx 4*([%d]&0xf)" , a .Off )
312
312
}
@@ -325,7 +325,7 @@ func (a LoadExtension) Assemble() (RawInstruction, error) {
325
325
return assembleLoad (RegA , 4 , opAddrModeAbsolute , uint32 (extOffset + a .Num ))
326
326
}
327
327
328
- // String returns the the instruction in assembler notation.
328
+ // String returns the instruction in assembler notation.
329
329
func (a LoadExtension ) String () string {
330
330
switch a .Num {
331
331
case ExtLen :
@@ -392,7 +392,7 @@ func (a StoreScratch) Assemble() (RawInstruction, error) {
392
392
}, nil
393
393
}
394
394
395
- // String returns the the instruction in assembler notation.
395
+ // String returns the instruction in assembler notation.
396
396
func (a StoreScratch ) String () string {
397
397
switch a .Src {
398
398
case RegA :
@@ -418,7 +418,7 @@ func (a ALUOpConstant) Assemble() (RawInstruction, error) {
418
418
}, nil
419
419
}
420
420
421
- // String returns the the instruction in assembler notation.
421
+ // String returns the instruction in assembler notation.
422
422
func (a ALUOpConstant ) String () string {
423
423
switch a .Op {
424
424
case ALUOpAdd :
@@ -458,7 +458,7 @@ func (a ALUOpX) Assemble() (RawInstruction, error) {
458
458
}, nil
459
459
}
460
460
461
- // String returns the the instruction in assembler notation.
461
+ // String returns the instruction in assembler notation.
462
462
func (a ALUOpX ) String () string {
463
463
switch a .Op {
464
464
case ALUOpAdd :
@@ -496,7 +496,7 @@ func (a NegateA) Assemble() (RawInstruction, error) {
496
496
}, nil
497
497
}
498
498
499
- // String returns the the instruction in assembler notation.
499
+ // String returns the instruction in assembler notation.
500
500
func (a NegateA ) String () string {
501
501
return fmt .Sprintf ("neg" )
502
502
}
@@ -514,7 +514,7 @@ func (a Jump) Assemble() (RawInstruction, error) {
514
514
}, nil
515
515
}
516
516
517
- // String returns the the instruction in assembler notation.
517
+ // String returns the instruction in assembler notation.
518
518
func (a Jump ) String () string {
519
519
return fmt .Sprintf ("ja %d" , a .Skip )
520
520
}
@@ -566,7 +566,7 @@ func (a JumpIf) Assemble() (RawInstruction, error) {
566
566
}, nil
567
567
}
568
568
569
- // String returns the the instruction in assembler notation.
569
+ // String returns the instruction in assembler notation.
570
570
func (a JumpIf ) String () string {
571
571
switch a .Cond {
572
572
// K == A
@@ -621,7 +621,7 @@ func (a RetA) Assemble() (RawInstruction, error) {
621
621
}, nil
622
622
}
623
623
624
- // String returns the the instruction in assembler notation.
624
+ // String returns the instruction in assembler notation.
625
625
func (a RetA ) String () string {
626
626
return fmt .Sprintf ("ret a" )
627
627
}
@@ -639,7 +639,7 @@ func (a RetConstant) Assemble() (RawInstruction, error) {
639
639
}, nil
640
640
}
641
641
642
- // String returns the the instruction in assembler notation.
642
+ // String returns the instruction in assembler notation.
643
643
func (a RetConstant ) String () string {
644
644
return fmt .Sprintf ("ret #%d" , a .Val )
645
645
}
@@ -654,7 +654,7 @@ func (a TXA) Assemble() (RawInstruction, error) {
654
654
}, nil
655
655
}
656
656
657
- // String returns the the instruction in assembler notation.
657
+ // String returns the instruction in assembler notation.
658
658
func (a TXA ) String () string {
659
659
return fmt .Sprintf ("txa" )
660
660
}
@@ -669,7 +669,7 @@ func (a TAX) Assemble() (RawInstruction, error) {
669
669
}, nil
670
670
}
671
671
672
- // String returns the the instruction in assembler notation.
672
+ // String returns the instruction in assembler notation.
673
673
func (a TAX ) String () string {
674
674
return fmt .Sprintf ("tax" )
675
675
}
0 commit comments