Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
folium-app
GitHub Repository: folium-app/Folium
Path: blob/a-new-beginning/Cherry/Core/opcodes_cb.cpp
2 views
1
/*
2
* Gearcoleco - ColecoVision Emulator
3
* Copyright (C) 2021 Ignacio Sanchez
4
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* any later version.
9
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see http://www.gnu.org/licenses/
17
*
18
*/
19
20
#include "Processor.h"
21
22
void Processor::OPCodeCB0x00()
23
{
24
// RLC B
25
OPCodes_RLC(BC.GetHighRegister());
26
}
27
28
void Processor::OPCodeCB0x01()
29
{
30
// RLC C
31
OPCodes_RLC(BC.GetLowRegister());
32
}
33
34
void Processor::OPCodeCB0x02()
35
{
36
// RLC D
37
OPCodes_RLC(DE.GetHighRegister());
38
}
39
40
void Processor::OPCodeCB0x03()
41
{
42
// RLC E
43
OPCodes_RLC(DE.GetLowRegister());
44
}
45
46
void Processor::OPCodeCB0x04()
47
{
48
// RLC H
49
OPCodes_RLC(HL.GetHighRegister());
50
}
51
52
void Processor::OPCodeCB0x05()
53
{
54
// RLC L
55
OPCodes_RLC(HL.GetLowRegister());
56
}
57
58
void Processor::OPCodeCB0x06()
59
{
60
// RLC (HL)
61
OPCodes_RLC_HL();
62
}
63
64
void Processor::OPCodeCB0x07()
65
{
66
// RLC A
67
OPCodes_RLC(AF.GetHighRegister());
68
}
69
70
void Processor::OPCodeCB0x08()
71
{
72
// RRC B
73
OPCodes_RRC(BC.GetHighRegister());
74
}
75
76
void Processor::OPCodeCB0x09()
77
{
78
// RRC C
79
OPCodes_RRC(BC.GetLowRegister());
80
}
81
82
void Processor::OPCodeCB0x0A()
83
{
84
// RRC D
85
OPCodes_RRC(DE.GetHighRegister());
86
}
87
88
void Processor::OPCodeCB0x0B()
89
{
90
// RRC E
91
OPCodes_RRC(DE.GetLowRegister());
92
}
93
94
void Processor::OPCodeCB0x0C()
95
{
96
// RRC H
97
OPCodes_RRC(HL.GetHighRegister());
98
}
99
100
void Processor::OPCodeCB0x0D()
101
{
102
// RRC L
103
OPCodes_RRC(HL.GetLowRegister());
104
}
105
106
void Processor::OPCodeCB0x0E()
107
{
108
// RRC (HL)
109
OPCodes_RRC_HL();
110
}
111
112
void Processor::OPCodeCB0x0F()
113
{
114
// RRC A
115
OPCodes_RRC(AF.GetHighRegister());
116
}
117
118
void Processor::OPCodeCB0x10()
119
{
120
// RL B
121
OPCodes_RL(BC.GetHighRegister());
122
}
123
124
void Processor::OPCodeCB0x11()
125
{
126
// RL C
127
OPCodes_RL(BC.GetLowRegister());
128
}
129
130
void Processor::OPCodeCB0x12()
131
{
132
// RL D
133
OPCodes_RL(DE.GetHighRegister());
134
}
135
136
void Processor::OPCodeCB0x13()
137
{
138
// RL E
139
OPCodes_RL(DE.GetLowRegister());
140
}
141
142
void Processor::OPCodeCB0x14()
143
{
144
// RL H
145
OPCodes_RL(HL.GetHighRegister());
146
}
147
148
void Processor::OPCodeCB0x15()
149
{
150
// RL L
151
OPCodes_RL(HL.GetLowRegister());
152
}
153
154
void Processor::OPCodeCB0x16()
155
{
156
// RL (HL)
157
OPCodes_RL_HL();
158
}
159
160
void Processor::OPCodeCB0x17()
161
{
162
// RL A
163
OPCodes_RL(AF.GetHighRegister());
164
}
165
166
void Processor::OPCodeCB0x18()
167
{
168
// RR B
169
OPCodes_RR(BC.GetHighRegister());
170
}
171
172
void Processor::OPCodeCB0x19()
173
{
174
// RR C
175
OPCodes_RR(BC.GetLowRegister());
176
}
177
178
void Processor::OPCodeCB0x1A()
179
{
180
// RR D
181
OPCodes_RR(DE.GetHighRegister());
182
}
183
184
void Processor::OPCodeCB0x1B()
185
{
186
// RR E
187
OPCodes_RR(DE.GetLowRegister());
188
}
189
190
void Processor::OPCodeCB0x1C()
191
{
192
// RR H
193
OPCodes_RR(HL.GetHighRegister());
194
}
195
196
void Processor::OPCodeCB0x1D()
197
{
198
// RR L
199
OPCodes_RR(HL.GetLowRegister());
200
}
201
202
void Processor::OPCodeCB0x1E()
203
{
204
// RR (HL)
205
OPCodes_RR_HL();
206
}
207
208
void Processor::OPCodeCB0x1F()
209
{
210
// RR A
211
OPCodes_RR(AF.GetHighRegister());
212
}
213
214
void Processor::OPCodeCB0x20()
215
{
216
// SLA B
217
OPCodes_SLA(BC.GetHighRegister());
218
}
219
220
void Processor::OPCodeCB0x21()
221
{
222
// SLA C
223
OPCodes_SLA(BC.GetLowRegister());
224
}
225
226
void Processor::OPCodeCB0x22()
227
{
228
// SLA D
229
OPCodes_SLA(DE.GetHighRegister());
230
}
231
232
void Processor::OPCodeCB0x23()
233
{
234
// SLA E
235
OPCodes_SLA(DE.GetLowRegister());
236
}
237
238
void Processor::OPCodeCB0x24()
239
{
240
// SLA H
241
OPCodes_SLA(HL.GetHighRegister());
242
}
243
244
void Processor::OPCodeCB0x25()
245
{
246
// SLA L
247
OPCodes_SLA(HL.GetLowRegister());
248
}
249
250
void Processor::OPCodeCB0x26()
251
{
252
// SLA (HL)
253
OPCodes_SLA_HL();
254
}
255
256
void Processor::OPCodeCB0x27()
257
{
258
// SLA A
259
OPCodes_SLA(AF.GetHighRegister());
260
}
261
262
void Processor::OPCodeCB0x28()
263
{
264
// SRA B
265
OPCodes_SRA(BC.GetHighRegister());
266
}
267
268
void Processor::OPCodeCB0x29()
269
{
270
// SRA C
271
OPCodes_SRA(BC.GetLowRegister());
272
}
273
274
void Processor::OPCodeCB0x2A()
275
{
276
// SRA D
277
OPCodes_SRA(DE.GetHighRegister());
278
}
279
280
void Processor::OPCodeCB0x2B()
281
{
282
// SRA E
283
OPCodes_SRA(DE.GetLowRegister());
284
}
285
286
void Processor::OPCodeCB0x2C()
287
{
288
// SRA H
289
OPCodes_SRA(HL.GetHighRegister());
290
}
291
292
void Processor::OPCodeCB0x2D()
293
{
294
// SRA L
295
OPCodes_SRA(HL.GetLowRegister());
296
}
297
298
void Processor::OPCodeCB0x2E()
299
{
300
// SRA (HL)
301
OPCodes_SRA_HL();
302
}
303
304
void Processor::OPCodeCB0x2F()
305
{
306
// SRA A
307
OPCodes_SRA(AF.GetHighRegister());
308
}
309
310
void Processor::OPCodeCB0x30()
311
{
312
// SLL B
313
OPCodes_SLL(BC.GetHighRegister());
314
}
315
316
void Processor::OPCodeCB0x31()
317
{
318
// SLL C
319
OPCodes_SLL(BC.GetLowRegister());
320
}
321
322
void Processor::OPCodeCB0x32()
323
{
324
// SLL D
325
OPCodes_SLL(DE.GetHighRegister());
326
}
327
328
void Processor::OPCodeCB0x33()
329
{
330
// SLL E
331
OPCodes_SLL(DE.GetLowRegister());
332
}
333
334
void Processor::OPCodeCB0x34()
335
{
336
// SLL H
337
OPCodes_SLL(HL.GetHighRegister());
338
}
339
340
void Processor::OPCodeCB0x35()
341
{
342
// SLL L
343
OPCodes_SLL(HL.GetLowRegister());
344
}
345
346
void Processor::OPCodeCB0x36()
347
{
348
// SLL (HL)
349
OPCodes_SLL_HL();
350
}
351
352
void Processor::OPCodeCB0x37()
353
{
354
// SLL A
355
OPCodes_SLL(AF.GetHighRegister());
356
}
357
358
void Processor::OPCodeCB0x38()
359
{
360
// SRL B
361
OPCodes_SRL(BC.GetHighRegister());
362
}
363
364
void Processor::OPCodeCB0x39()
365
{
366
// SRL C
367
OPCodes_SRL(BC.GetLowRegister());
368
}
369
370
void Processor::OPCodeCB0x3A()
371
{
372
// SRL D
373
OPCodes_SRL(DE.GetHighRegister());
374
}
375
376
void Processor::OPCodeCB0x3B()
377
{
378
// SRL E
379
OPCodes_SRL(DE.GetLowRegister());
380
}
381
382
void Processor::OPCodeCB0x3C()
383
{
384
// SRL H
385
OPCodes_SRL(HL.GetHighRegister());
386
}
387
388
void Processor::OPCodeCB0x3D()
389
{
390
// SRL L
391
OPCodes_SRL(HL.GetLowRegister());
392
}
393
394
void Processor::OPCodeCB0x3E()
395
{
396
// SRL (HL)
397
OPCodes_SRL_HL();
398
}
399
400
void Processor::OPCodeCB0x3F()
401
{
402
// SRL A
403
OPCodes_SRL(AF.GetHighRegister());
404
}
405
406
void Processor::OPCodeCB0x40()
407
{
408
// BIT 0 B
409
OPCodes_BIT(BC.GetHighRegister(), 0);
410
}
411
412
void Processor::OPCodeCB0x41()
413
{
414
// BIT 0 C
415
OPCodes_BIT(BC.GetLowRegister(), 0);
416
}
417
418
void Processor::OPCodeCB0x42()
419
{
420
// BIT 0 D
421
OPCodes_BIT(DE.GetHighRegister(), 0);
422
}
423
424
void Processor::OPCodeCB0x43()
425
{
426
// BIT 0 E
427
OPCodes_BIT(DE.GetLowRegister(), 0);
428
}
429
430
void Processor::OPCodeCB0x44()
431
{
432
// BIT 0 H
433
OPCodes_BIT(HL.GetHighRegister(), 0);
434
}
435
436
void Processor::OPCodeCB0x45()
437
{
438
// BIT 0 L
439
OPCodes_BIT(HL.GetLowRegister(), 0);
440
}
441
442
void Processor::OPCodeCB0x46()
443
{
444
// BIT 0 (HL)
445
OPCodes_BIT_HL(0);
446
}
447
448
void Processor::OPCodeCB0x47()
449
{
450
// BIT 0 A
451
OPCodes_BIT(AF.GetHighRegister(), 0);
452
}
453
454
void Processor::OPCodeCB0x48()
455
{
456
// BIT 1 B
457
OPCodes_BIT(BC.GetHighRegister(), 1);
458
}
459
460
void Processor::OPCodeCB0x49()
461
{
462
// BIT 1 C
463
OPCodes_BIT(BC.GetLowRegister(), 1);
464
}
465
466
void Processor::OPCodeCB0x4A()
467
{
468
// BIT 1 D
469
OPCodes_BIT(DE.GetHighRegister(), 1);
470
}
471
472
void Processor::OPCodeCB0x4B()
473
{
474
// BIT 1 E
475
OPCodes_BIT(DE.GetLowRegister(), 1);
476
}
477
478
void Processor::OPCodeCB0x4C()
479
{
480
// BIT 1 H
481
OPCodes_BIT(HL.GetHighRegister(), 1);
482
}
483
484
void Processor::OPCodeCB0x4D()
485
{
486
// BIT 1 L
487
OPCodes_BIT(HL.GetLowRegister(), 1);
488
}
489
490
void Processor::OPCodeCB0x4E()
491
{
492
// BIT 1 (HL)
493
OPCodes_BIT_HL(1);
494
}
495
496
void Processor::OPCodeCB0x4F()
497
{
498
// BIT 1 A
499
OPCodes_BIT(AF.GetHighRegister(), 1);
500
}
501
502
void Processor::OPCodeCB0x50()
503
{
504
// BIT 2 B
505
OPCodes_BIT(BC.GetHighRegister(), 2);
506
}
507
508
void Processor::OPCodeCB0x51()
509
{
510
// BIT 2 C
511
OPCodes_BIT(BC.GetLowRegister(), 2);
512
}
513
514
void Processor::OPCodeCB0x52()
515
{
516
// BIT 2 D
517
OPCodes_BIT(DE.GetHighRegister(), 2);
518
}
519
520
void Processor::OPCodeCB0x53()
521
{
522
// BIT 2 E
523
OPCodes_BIT(DE.GetLowRegister(), 2);
524
}
525
526
void Processor::OPCodeCB0x54()
527
{
528
// BIT 2 H
529
OPCodes_BIT(HL.GetHighRegister(), 2);
530
}
531
532
void Processor::OPCodeCB0x55()
533
{
534
// BIT 2 L
535
OPCodes_BIT(HL.GetLowRegister(), 2);
536
}
537
538
void Processor::OPCodeCB0x56()
539
{
540
// BIT 2 (HL)
541
OPCodes_BIT_HL(2);
542
}
543
544
void Processor::OPCodeCB0x57()
545
{
546
// BIT 2 A
547
OPCodes_BIT(AF.GetHighRegister(), 2);
548
}
549
550
void Processor::OPCodeCB0x58()
551
{
552
// BIT 3 B
553
OPCodes_BIT(BC.GetHighRegister(), 3);
554
}
555
556
void Processor::OPCodeCB0x59()
557
{
558
// BIT 3 C
559
OPCodes_BIT(BC.GetLowRegister(), 3);
560
}
561
562
void Processor::OPCodeCB0x5A()
563
{
564
// BIT 3 D
565
OPCodes_BIT(DE.GetHighRegister(), 3);
566
}
567
568
void Processor::OPCodeCB0x5B()
569
{
570
// BIT 3 E
571
OPCodes_BIT(DE.GetLowRegister(), 3);
572
}
573
574
void Processor::OPCodeCB0x5C()
575
{
576
// BIT 3 H
577
OPCodes_BIT(HL.GetHighRegister(), 3);
578
}
579
580
void Processor::OPCodeCB0x5D()
581
{
582
// BIT 3 L
583
OPCodes_BIT(HL.GetLowRegister(), 3);
584
}
585
586
void Processor::OPCodeCB0x5E()
587
{
588
// BIT 3 (HL)
589
OPCodes_BIT_HL(3);
590
}
591
592
void Processor::OPCodeCB0x5F()
593
{
594
// BIT 3 A
595
OPCodes_BIT(AF.GetHighRegister(), 3);
596
}
597
598
void Processor::OPCodeCB0x60()
599
{
600
// BIT 4 B
601
OPCodes_BIT(BC.GetHighRegister(), 4);
602
}
603
604
void Processor::OPCodeCB0x61()
605
{
606
// BIT 4 C
607
OPCodes_BIT(BC.GetLowRegister(), 4);
608
}
609
610
void Processor::OPCodeCB0x62()
611
{
612
// BIT 4 D
613
OPCodes_BIT(DE.GetHighRegister(), 4);
614
}
615
616
void Processor::OPCodeCB0x63()
617
{
618
// BIT 4 E
619
OPCodes_BIT(DE.GetLowRegister(), 4);
620
}
621
622
void Processor::OPCodeCB0x64()
623
{
624
// BIT 4 H
625
OPCodes_BIT(HL.GetHighRegister(), 4);
626
}
627
628
void Processor::OPCodeCB0x65()
629
{
630
// BIT 4 L
631
OPCodes_BIT(HL.GetLowRegister(), 4);
632
}
633
634
void Processor::OPCodeCB0x66()
635
{
636
// BIT 4 (HL)
637
OPCodes_BIT_HL(4);
638
}
639
640
void Processor::OPCodeCB0x67()
641
{
642
// BIT 4 A
643
OPCodes_BIT(AF.GetHighRegister(), 4);
644
}
645
646
void Processor::OPCodeCB0x68()
647
{
648
// BIT 5 B
649
OPCodes_BIT(BC.GetHighRegister(), 5);
650
}
651
652
void Processor::OPCodeCB0x69()
653
{
654
// BIT 5 C
655
OPCodes_BIT(BC.GetLowRegister(), 5);
656
}
657
658
void Processor::OPCodeCB0x6A()
659
{
660
// BIT 5 D
661
OPCodes_BIT(DE.GetHighRegister(), 5);
662
}
663
664
void Processor::OPCodeCB0x6B()
665
{
666
// BIT 5 E
667
OPCodes_BIT(DE.GetLowRegister(), 5);
668
}
669
670
void Processor::OPCodeCB0x6C()
671
{
672
// BIT 5 H
673
OPCodes_BIT(HL.GetHighRegister(), 5);
674
}
675
676
void Processor::OPCodeCB0x6D()
677
{
678
// BIT 5 L
679
OPCodes_BIT(HL.GetLowRegister(), 5);
680
}
681
682
void Processor::OPCodeCB0x6E()
683
{
684
// BIT 5 (HL)
685
OPCodes_BIT_HL(5);
686
}
687
688
void Processor::OPCodeCB0x6F()
689
{
690
// BIT 5 A
691
OPCodes_BIT(AF.GetHighRegister(), 5);
692
}
693
694
void Processor::OPCodeCB0x70()
695
{
696
// BIT 6 B
697
OPCodes_BIT(BC.GetHighRegister(), 6);
698
}
699
700
void Processor::OPCodeCB0x71()
701
{
702
// BIT 6 C
703
OPCodes_BIT(BC.GetLowRegister(), 6);
704
}
705
706
void Processor::OPCodeCB0x72()
707
{
708
// BIT 6 D
709
OPCodes_BIT(DE.GetHighRegister(), 6);
710
}
711
712
void Processor::OPCodeCB0x73()
713
{
714
// BIT 6 E
715
OPCodes_BIT(DE.GetLowRegister(), 6);
716
}
717
718
void Processor::OPCodeCB0x74()
719
{
720
// BIT 6 H
721
OPCodes_BIT(HL.GetHighRegister(), 6);
722
}
723
724
void Processor::OPCodeCB0x75()
725
{
726
// BIT 6 L
727
OPCodes_BIT(HL.GetLowRegister(), 6);
728
}
729
730
void Processor::OPCodeCB0x76()
731
{
732
// BIT 6 (HL)
733
OPCodes_BIT_HL(6);
734
}
735
736
void Processor::OPCodeCB0x77()
737
{
738
// BIT 6 A
739
OPCodes_BIT(AF.GetHighRegister(), 6);
740
}
741
742
void Processor::OPCodeCB0x78()
743
{
744
// BIT 7 B
745
OPCodes_BIT(BC.GetHighRegister(), 7);
746
}
747
748
void Processor::OPCodeCB0x79()
749
{
750
// BIT 7 C
751
OPCodes_BIT(BC.GetLowRegister(), 7);
752
}
753
754
void Processor::OPCodeCB0x7A()
755
{
756
// BIT 7 D
757
OPCodes_BIT(DE.GetHighRegister(), 7);
758
}
759
760
void Processor::OPCodeCB0x7B()
761
{
762
// BIT 7 E
763
OPCodes_BIT(DE.GetLowRegister(), 7);
764
}
765
766
void Processor::OPCodeCB0x7C()
767
{
768
// BIT 7 H
769
OPCodes_BIT(HL.GetHighRegister(), 7);
770
}
771
772
void Processor::OPCodeCB0x7D()
773
{
774
// BIT 7 L
775
OPCodes_BIT(HL.GetLowRegister(), 7);
776
}
777
778
void Processor::OPCodeCB0x7E()
779
{
780
// BIT 7 (HL)
781
OPCodes_BIT_HL(7);
782
}
783
784
void Processor::OPCodeCB0x7F()
785
{
786
// BIT 7 A
787
OPCodes_BIT(AF.GetHighRegister(), 7);
788
}
789
790
void Processor::OPCodeCB0x80()
791
{
792
// RES 0 B
793
OPCodes_RES(BC.GetHighRegister(), 0);
794
}
795
796
void Processor::OPCodeCB0x81()
797
{
798
// RES 0 C
799
OPCodes_RES(BC.GetLowRegister(), 0);
800
}
801
802
void Processor::OPCodeCB0x82()
803
{
804
// RES 0 D
805
OPCodes_RES(DE.GetHighRegister(), 0);
806
}
807
808
void Processor::OPCodeCB0x83()
809
{
810
// RES 0 E
811
OPCodes_RES(DE.GetLowRegister(), 0);
812
}
813
814
void Processor::OPCodeCB0x84()
815
{
816
// RES 0 H
817
OPCodes_RES(HL.GetHighRegister(), 0);
818
}
819
820
void Processor::OPCodeCB0x85()
821
{
822
// RES 0 L
823
OPCodes_RES(HL.GetLowRegister(), 0);
824
}
825
826
void Processor::OPCodeCB0x86()
827
{
828
// RES 0 (HL)
829
OPCodes_RES_HL(0);
830
}
831
832
void Processor::OPCodeCB0x87()
833
{
834
// RES 0 A
835
OPCodes_RES(AF.GetHighRegister(), 0);
836
}
837
838
void Processor::OPCodeCB0x88()
839
{
840
// RES 1 B
841
OPCodes_RES(BC.GetHighRegister(), 1);
842
}
843
844
void Processor::OPCodeCB0x89()
845
{
846
// RES 1 C
847
OPCodes_RES(BC.GetLowRegister(), 1);
848
}
849
850
void Processor::OPCodeCB0x8A()
851
{
852
// RES 1 D
853
OPCodes_RES(DE.GetHighRegister(), 1);
854
}
855
856
void Processor::OPCodeCB0x8B()
857
{
858
// RES 1 E
859
OPCodes_RES(DE.GetLowRegister(), 1);
860
}
861
862
void Processor::OPCodeCB0x8C()
863
{
864
// RES 1 H
865
OPCodes_RES(HL.GetHighRegister(), 1);
866
}
867
868
void Processor::OPCodeCB0x8D()
869
{
870
// RES 1 L
871
OPCodes_RES(HL.GetLowRegister(), 1);
872
}
873
874
void Processor::OPCodeCB0x8E()
875
{
876
// RES 1 (HL)
877
OPCodes_RES_HL(1);
878
}
879
880
void Processor::OPCodeCB0x8F()
881
{
882
// RES 1 A
883
OPCodes_RES(AF.GetHighRegister(), 1);
884
}
885
886
void Processor::OPCodeCB0x90()
887
{
888
// RES 2 B
889
OPCodes_RES(BC.GetHighRegister(), 2);
890
}
891
892
void Processor::OPCodeCB0x91()
893
{
894
// RES 2 C
895
OPCodes_RES(BC.GetLowRegister(), 2);
896
}
897
898
void Processor::OPCodeCB0x92()
899
{
900
// RES 2 D
901
OPCodes_RES(DE.GetHighRegister(), 2);
902
}
903
904
void Processor::OPCodeCB0x93()
905
{
906
// RES 2 E
907
OPCodes_RES(DE.GetLowRegister(), 2);
908
}
909
910
void Processor::OPCodeCB0x94()
911
{
912
// RES 2 H
913
OPCodes_RES(HL.GetHighRegister(), 2);
914
}
915
916
void Processor::OPCodeCB0x95()
917
{
918
// RES 2 L
919
OPCodes_RES(HL.GetLowRegister(), 2);
920
}
921
922
void Processor::OPCodeCB0x96()
923
{
924
// RES 2 (HL)
925
OPCodes_RES_HL(2);
926
}
927
928
void Processor::OPCodeCB0x97()
929
{
930
// RES 2 A
931
OPCodes_RES(AF.GetHighRegister(), 2);
932
}
933
934
void Processor::OPCodeCB0x98()
935
{
936
// RES 3 B
937
OPCodes_RES(BC.GetHighRegister(), 3);
938
}
939
940
void Processor::OPCodeCB0x99()
941
{
942
// RES 3 C
943
OPCodes_RES(BC.GetLowRegister(), 3);
944
}
945
946
void Processor::OPCodeCB0x9A()
947
{
948
// RES 3 D
949
OPCodes_RES(DE.GetHighRegister(), 3);
950
}
951
952
void Processor::OPCodeCB0x9B()
953
{
954
// RES 3 E
955
OPCodes_RES(DE.GetLowRegister(), 3);
956
}
957
958
void Processor::OPCodeCB0x9C()
959
{
960
// RES 3 H
961
OPCodes_RES(HL.GetHighRegister(), 3);
962
}
963
964
void Processor::OPCodeCB0x9D()
965
{
966
// RES 3 L
967
OPCodes_RES(HL.GetLowRegister(), 3);
968
}
969
970
void Processor::OPCodeCB0x9E()
971
{
972
// RES 3 (HL)
973
OPCodes_RES_HL(3);
974
}
975
976
void Processor::OPCodeCB0x9F()
977
{
978
// RES 3 A
979
OPCodes_RES(AF.GetHighRegister(), 3);
980
}
981
982
void Processor::OPCodeCB0xA0()
983
{
984
// RES 4 B
985
OPCodes_RES(BC.GetHighRegister(), 4);
986
}
987
988
void Processor::OPCodeCB0xA1()
989
{
990
// RES 4 C
991
OPCodes_RES(BC.GetLowRegister(), 4);
992
}
993
994
void Processor::OPCodeCB0xA2()
995
{
996
// RES 4 D
997
OPCodes_RES(DE.GetHighRegister(), 4);
998
}
999
1000
void Processor::OPCodeCB0xA3()
1001
{
1002
// RES 4 E
1003
OPCodes_RES(DE.GetLowRegister(), 4);
1004
}
1005
1006
void Processor::OPCodeCB0xA4()
1007
{
1008
// RES 4 H
1009
OPCodes_RES(HL.GetHighRegister(), 4);
1010
}
1011
1012
void Processor::OPCodeCB0xA5()
1013
{
1014
// RES 4 L
1015
OPCodes_RES(HL.GetLowRegister(), 4);
1016
}
1017
1018
void Processor::OPCodeCB0xA6()
1019
{
1020
// RES 4 (HL)
1021
OPCodes_RES_HL(4);
1022
}
1023
1024
void Processor::OPCodeCB0xA7()
1025
{
1026
// RES 4 A
1027
OPCodes_RES(AF.GetHighRegister(), 4);
1028
}
1029
1030
void Processor::OPCodeCB0xA8()
1031
{
1032
// RES 5 B
1033
OPCodes_RES(BC.GetHighRegister(), 5);
1034
}
1035
1036
void Processor::OPCodeCB0xA9()
1037
{
1038
// RES 5 C
1039
OPCodes_RES(BC.GetLowRegister(), 5);
1040
}
1041
1042
void Processor::OPCodeCB0xAA()
1043
{
1044
// RES 5 D
1045
OPCodes_RES(DE.GetHighRegister(), 5);
1046
}
1047
1048
void Processor::OPCodeCB0xAB()
1049
{
1050
// RES 5 E
1051
OPCodes_RES(DE.GetLowRegister(), 5);
1052
}
1053
1054
void Processor::OPCodeCB0xAC()
1055
{
1056
// RES 5 H
1057
OPCodes_RES(HL.GetHighRegister(), 5);
1058
}
1059
1060
void Processor::OPCodeCB0xAD()
1061
{
1062
// RES 5 L
1063
OPCodes_RES(HL.GetLowRegister(), 5);
1064
}
1065
1066
void Processor::OPCodeCB0xAE()
1067
{
1068
// RES 5 (HL)
1069
OPCodes_RES_HL(5);
1070
}
1071
1072
void Processor::OPCodeCB0xAF()
1073
{
1074
// RES 5 A
1075
OPCodes_RES(AF.GetHighRegister(), 5);
1076
}
1077
1078
void Processor::OPCodeCB0xB0()
1079
{
1080
// RES 6 B
1081
OPCodes_RES(BC.GetHighRegister(), 6);
1082
}
1083
1084
void Processor::OPCodeCB0xB1()
1085
{
1086
// RES 6 C
1087
OPCodes_RES(BC.GetLowRegister(), 6);
1088
}
1089
1090
void Processor::OPCodeCB0xB2()
1091
{
1092
// RES 6 D
1093
OPCodes_RES(DE.GetHighRegister(), 6);
1094
}
1095
1096
void Processor::OPCodeCB0xB3()
1097
{
1098
// RES 6 E
1099
OPCodes_RES(DE.GetLowRegister(), 6);
1100
}
1101
1102
void Processor::OPCodeCB0xB4()
1103
{
1104
// RES 6 H
1105
OPCodes_RES(HL.GetHighRegister(), 6);
1106
}
1107
1108
void Processor::OPCodeCB0xB5()
1109
{
1110
// RES 6 L
1111
OPCodes_RES(HL.GetLowRegister(), 6);
1112
}
1113
1114
void Processor::OPCodeCB0xB6()
1115
{
1116
// RES 6 (HL)
1117
OPCodes_RES_HL(6);
1118
}
1119
1120
void Processor::OPCodeCB0xB7()
1121
{
1122
// RES 6 A
1123
OPCodes_RES(AF.GetHighRegister(), 6);
1124
}
1125
1126
void Processor::OPCodeCB0xB8()
1127
{
1128
// RES 7 B
1129
OPCodes_RES(BC.GetHighRegister(), 7);
1130
}
1131
1132
void Processor::OPCodeCB0xB9()
1133
{
1134
// RES 7 C
1135
OPCodes_RES(BC.GetLowRegister(), 7);
1136
}
1137
1138
void Processor::OPCodeCB0xBA()
1139
{
1140
// RES 7 D
1141
OPCodes_RES(DE.GetHighRegister(), 7);
1142
}
1143
1144
void Processor::OPCodeCB0xBB()
1145
{
1146
// RES 7 E
1147
OPCodes_RES(DE.GetLowRegister(), 7);
1148
}
1149
1150
void Processor::OPCodeCB0xBC()
1151
{
1152
// RES 7 H
1153
OPCodes_RES(HL.GetHighRegister(), 7);
1154
}
1155
1156
void Processor::OPCodeCB0xBD()
1157
{
1158
// RES 7 L
1159
OPCodes_RES(HL.GetLowRegister(), 7);
1160
}
1161
1162
void Processor::OPCodeCB0xBE()
1163
{
1164
// RES 7 (HL)
1165
OPCodes_RES_HL(7);
1166
}
1167
1168
void Processor::OPCodeCB0xBF()
1169
{
1170
// RES 7 A
1171
OPCodes_RES(AF.GetHighRegister(), 7);
1172
}
1173
1174
void Processor::OPCodeCB0xC0()
1175
{
1176
// SET 0 B
1177
OPCodes_SET(BC.GetHighRegister(), 0);
1178
}
1179
1180
void Processor::OPCodeCB0xC1()
1181
{
1182
// SET 0 C
1183
OPCodes_SET(BC.GetLowRegister(), 0);
1184
}
1185
1186
void Processor::OPCodeCB0xC2()
1187
{
1188
// SET 0 D
1189
OPCodes_SET(DE.GetHighRegister(), 0);
1190
}
1191
1192
void Processor::OPCodeCB0xC3()
1193
{
1194
// SET 0 E
1195
OPCodes_SET(DE.GetLowRegister(), 0);
1196
}
1197
1198
void Processor::OPCodeCB0xC4()
1199
{
1200
// SET 0 H
1201
OPCodes_SET(HL.GetHighRegister(), 0);
1202
}
1203
1204
void Processor::OPCodeCB0xC5()
1205
{
1206
// SET 0 L
1207
OPCodes_SET(HL.GetLowRegister(), 0);
1208
}
1209
1210
void Processor::OPCodeCB0xC6()
1211
{
1212
// SET 0 (HL)
1213
OPCodes_SET_HL(0);
1214
}
1215
1216
void Processor::OPCodeCB0xC7()
1217
{
1218
// SET 0 A
1219
OPCodes_SET(AF.GetHighRegister(), 0);
1220
}
1221
1222
void Processor::OPCodeCB0xC8()
1223
{
1224
// SET 1 B
1225
OPCodes_SET(BC.GetHighRegister(), 1);
1226
}
1227
1228
void Processor::OPCodeCB0xC9()
1229
{
1230
// SET 1 C
1231
OPCodes_SET(BC.GetLowRegister(), 1);
1232
}
1233
1234
void Processor::OPCodeCB0xCA()
1235
{
1236
// SET 1 D
1237
OPCodes_SET(DE.GetHighRegister(), 1);
1238
}
1239
1240
void Processor::OPCodeCB0xCB()
1241
{
1242
// SET 1 E
1243
OPCodes_SET(DE.GetLowRegister(), 1);
1244
}
1245
1246
void Processor::OPCodeCB0xCC()
1247
{
1248
// SET 1 H
1249
OPCodes_SET(HL.GetHighRegister(), 1);
1250
}
1251
1252
void Processor::OPCodeCB0xCD()
1253
{
1254
// SET 1 L
1255
OPCodes_SET(HL.GetLowRegister(), 1);
1256
}
1257
1258
void Processor::OPCodeCB0xCE()
1259
{
1260
// SET 1 (HL)
1261
OPCodes_SET_HL(1);
1262
}
1263
1264
void Processor::OPCodeCB0xCF()
1265
{
1266
// SET 1 A
1267
OPCodes_SET(AF.GetHighRegister(), 1);
1268
}
1269
1270
void Processor::OPCodeCB0xD0()
1271
{
1272
// SET 2 B
1273
OPCodes_SET(BC.GetHighRegister(), 2);
1274
}
1275
1276
void Processor::OPCodeCB0xD1()
1277
{
1278
// SET 2 C
1279
OPCodes_SET(BC.GetLowRegister(), 2);
1280
}
1281
1282
void Processor::OPCodeCB0xD2()
1283
{
1284
// SET 2 D
1285
OPCodes_SET(DE.GetHighRegister(), 2);
1286
}
1287
1288
void Processor::OPCodeCB0xD3()
1289
{
1290
// SET 2 E
1291
OPCodes_SET(DE.GetLowRegister(), 2);
1292
}
1293
1294
void Processor::OPCodeCB0xD4()
1295
{
1296
// SET 2 H
1297
OPCodes_SET(HL.GetHighRegister(), 2);
1298
}
1299
1300
void Processor::OPCodeCB0xD5()
1301
{
1302
// SET 2 L
1303
OPCodes_SET(HL.GetLowRegister(), 2);
1304
}
1305
1306
void Processor::OPCodeCB0xD6()
1307
{
1308
// SET 2 (HL)
1309
OPCodes_SET_HL(2);
1310
}
1311
1312
void Processor::OPCodeCB0xD7()
1313
{
1314
// SET 2 A
1315
OPCodes_SET(AF.GetHighRegister(), 2);
1316
}
1317
1318
void Processor::OPCodeCB0xD8()
1319
{
1320
// SET 3 B
1321
OPCodes_SET(BC.GetHighRegister(), 3);
1322
}
1323
1324
void Processor::OPCodeCB0xD9()
1325
{
1326
// SET 3 C
1327
OPCodes_SET(BC.GetLowRegister(), 3);
1328
}
1329
1330
void Processor::OPCodeCB0xDA()
1331
{
1332
// SET 3 D
1333
OPCodes_SET(DE.GetHighRegister(), 3);
1334
}
1335
1336
void Processor::OPCodeCB0xDB()
1337
{
1338
// SET 3 E
1339
OPCodes_SET(DE.GetLowRegister(), 3);
1340
}
1341
1342
void Processor::OPCodeCB0xDC()
1343
{
1344
// SET 3 H
1345
OPCodes_SET(HL.GetHighRegister(), 3);
1346
}
1347
1348
void Processor::OPCodeCB0xDD()
1349
{
1350
// SET 3 L
1351
OPCodes_SET(HL.GetLowRegister(), 3);
1352
}
1353
1354
void Processor::OPCodeCB0xDE()
1355
{
1356
// SET 3 (HL)
1357
OPCodes_SET_HL(3);
1358
}
1359
1360
void Processor::OPCodeCB0xDF()
1361
{
1362
// SET 3 A
1363
OPCodes_SET(AF.GetHighRegister(), 3);
1364
}
1365
1366
void Processor::OPCodeCB0xE0()
1367
{
1368
// SET 4 B
1369
OPCodes_SET(BC.GetHighRegister(), 4);
1370
}
1371
1372
void Processor::OPCodeCB0xE1()
1373
{
1374
// SET 4 C
1375
OPCodes_SET(BC.GetLowRegister(), 4);
1376
}
1377
1378
void Processor::OPCodeCB0xE2()
1379
{
1380
// SET 4 D
1381
OPCodes_SET(DE.GetHighRegister(), 4);
1382
}
1383
1384
void Processor::OPCodeCB0xE3()
1385
{
1386
// SET 4 E
1387
OPCodes_SET(DE.GetLowRegister(), 4);
1388
}
1389
1390
void Processor::OPCodeCB0xE4()
1391
{
1392
// SET 4 H
1393
OPCodes_SET(HL.GetHighRegister(), 4);
1394
}
1395
1396
void Processor::OPCodeCB0xE5()
1397
{
1398
// SET 4 L
1399
OPCodes_SET(HL.GetLowRegister(), 4);
1400
}
1401
1402
void Processor::OPCodeCB0xE6()
1403
{
1404
// SET 4 (HL)
1405
OPCodes_SET_HL(4);
1406
}
1407
1408
void Processor::OPCodeCB0xE7()
1409
{
1410
// SET 4 A
1411
OPCodes_SET(AF.GetHighRegister(), 4);
1412
}
1413
1414
void Processor::OPCodeCB0xE8()
1415
{
1416
// SET 5 B
1417
OPCodes_SET(BC.GetHighRegister(), 5);
1418
}
1419
1420
void Processor::OPCodeCB0xE9()
1421
{
1422
// SET 5 C
1423
OPCodes_SET(BC.GetLowRegister(), 5);
1424
}
1425
1426
void Processor::OPCodeCB0xEA()
1427
{
1428
// SET 5 D
1429
OPCodes_SET(DE.GetHighRegister(), 5);
1430
}
1431
1432
void Processor::OPCodeCB0xEB()
1433
{
1434
// SET 5 E
1435
OPCodes_SET(DE.GetLowRegister(), 5);
1436
}
1437
1438
void Processor::OPCodeCB0xEC()
1439
{
1440
// SET 5 H
1441
OPCodes_SET(HL.GetHighRegister(), 5);
1442
}
1443
1444
void Processor::OPCodeCB0xED()
1445
{
1446
// SET 5 L
1447
OPCodes_SET(HL.GetLowRegister(), 5);
1448
}
1449
1450
void Processor::OPCodeCB0xEE()
1451
{
1452
// SET 5 (HL)
1453
OPCodes_SET_HL(5);
1454
}
1455
1456
void Processor::OPCodeCB0xEF()
1457
{
1458
// SET 5 A
1459
OPCodes_SET(AF.GetHighRegister(), 5);
1460
}
1461
1462
void Processor::OPCodeCB0xF0()
1463
{
1464
// SET 6 B
1465
OPCodes_SET(BC.GetHighRegister(), 6);
1466
}
1467
1468
void Processor::OPCodeCB0xF1()
1469
{
1470
// SET 6 C
1471
OPCodes_SET(BC.GetLowRegister(), 6);
1472
}
1473
1474
void Processor::OPCodeCB0xF2()
1475
{
1476
// SET 6 D
1477
OPCodes_SET(DE.GetHighRegister(), 6);
1478
}
1479
1480
void Processor::OPCodeCB0xF3()
1481
{
1482
// SET 6 E
1483
OPCodes_SET(DE.GetLowRegister(), 6);
1484
}
1485
1486
void Processor::OPCodeCB0xF4()
1487
{
1488
// SET 6 H
1489
OPCodes_SET(HL.GetHighRegister(), 6);
1490
}
1491
1492
void Processor::OPCodeCB0xF5()
1493
{
1494
// SET 6 L
1495
OPCodes_SET(HL.GetLowRegister(), 6);
1496
}
1497
1498
void Processor::OPCodeCB0xF6()
1499
{
1500
// SET 6 (HL)
1501
OPCodes_SET_HL(6);
1502
}
1503
1504
void Processor::OPCodeCB0xF7()
1505
{
1506
// SET 6 A
1507
OPCodes_SET(AF.GetHighRegister(), 6);
1508
}
1509
1510
void Processor::OPCodeCB0xF8()
1511
{
1512
// SET 7 B
1513
OPCodes_SET(BC.GetHighRegister(), 7);
1514
}
1515
1516
void Processor::OPCodeCB0xF9()
1517
{
1518
// SET 7 C
1519
OPCodes_SET(BC.GetLowRegister(), 7);
1520
}
1521
1522
void Processor::OPCodeCB0xFA()
1523
{
1524
// SET 7 D
1525
OPCodes_SET(DE.GetHighRegister(), 7);
1526
}
1527
1528
void Processor::OPCodeCB0xFB()
1529
{
1530
// SET 7 E
1531
OPCodes_SET(DE.GetLowRegister(), 7);
1532
}
1533
1534
void Processor::OPCodeCB0xFC()
1535
{
1536
// SET 7 H
1537
OPCodes_SET(HL.GetHighRegister(), 7);
1538
}
1539
1540
void Processor::OPCodeCB0xFD()
1541
{
1542
// SET 7 L
1543
OPCodes_SET(HL.GetLowRegister(), 7);
1544
}
1545
1546
void Processor::OPCodeCB0xFE()
1547
{
1548
// SET 7 (HL)
1549
OPCodes_SET_HL(7);
1550
}
1551
1552
void Processor::OPCodeCB0xFF()
1553
{
1554
// SET 7 A
1555
OPCodes_SET(AF.GetHighRegister(), 7);
1556
}
1557
1558