text
stringlengths
1
1.05M
db 0 ; species ID placeholder db 95, 65, 110, 65, 60, 130 ; hp atk def spd sat sdf db DARK, DARK ; type db 45 ; catch rate db 197 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F12_5 ; gender ratio db 100 ; unknown 1 db 35 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/umbreon/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_MEDIUM_FAST ; growth rate dn EGG_GROUND, EGG_GROUND ; egg groups ; tm/hm learnset tmhm HEADBUTT, CURSE, TOXIC, ZAP_CANNON, PSYCH_UP, HIDDEN_POWER, SUNNY_DAY, SNORE, HYPER_BEAM, PROTECT, RAIN_DANCE, ENDURE, FRUSTRATION, IRON_TAIL, RETURN, PSYCHIC_M, SHADOW_BALL, MUD_SLAP, DOUBLE_TEAM, SWAGGER, SLEEP_TALK, SWIFT, DREAM_EATER, DETECT, REST, ATTRACT, NIGHTMARE, CUT, FLASH ; end
; A328982: Sorted list of the numbers of the form 5m+2 (m>=0) together with numbers of the form 5m-2+eps (m>=1), where eps = 1 if the binary expansion of m ends in an odd number of 0's and is otherwise 0. ; Submitted by Christian Krause ; 2,3,7,9,12,13,17,18,22,23,27,29,32,33,37,39,42,43,47,49,52,53,57,58,62,63,67,69,72,73,77,78,82,83,87,89,92,93,97,98,102,103,107,109,112,113,117,119,122,123,127,129,132,133,137,138,142,143,147,149 mov $2,$0 add $0,1 mov $1,64 gcd $1,$0 mod $1,3 mod $1,2 mov $3,$2 div $2,2 mul $3,2 add $3,$2 add $1,$3 mov $0,$1 add $0,1
//Language: GNU C++11 /************************************************************************* > File Name: e.cpp > Author: skt > Mail: sktsxy@gmail.com > Created Time: 2015年08月15日 星期六 19时25分31秒 ************************************************************************/ #include <cstring> #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <queue> #include <bitset> #include <algorithm> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cstdlib> #include <complex> #include <cassert> // #pragma comment(linker,"/STACK:102400000,102400000") using namespace std; #define LL long long #define pb push_back #define mp make_pair #define x first #define y second #define MAXN 505 template <typename T> inline void checkMax(T &a, T b) {a = a>b?a:b;} template <typename T> inline void checkMin(T &a, T b) {a = a<b?a:b;} typedef pair<int, int> PII; typedef vector<int> vi; const double PI = acos(-1.0); const double eps = 1e-8; const LL INF = 10000000000000000LL; int N, M; LL dis[MAXN][MAXN], g[MAXN][MAXN], cnt[MAXN][MAXN], ans[MAXN][MAXN]; void floyd() { for (int k = 1; k <= N; k ++) { for (int i = 1; i <= N; i ++) { for (int j = 1; j <= N; j ++) { dis[i][j] = min(dis[i][j], dis[i][k] + dis[k][j]); } } } } void work() { for (int i = 1; i <= N; i ++) { fill(dis[i], dis[i] + MAXN, INF); fill(g[i], g[i] + MAXN, INF); } memset(cnt, 0, sizeof(cnt)); memset(ans, 0, sizeof(ans)); for (int i = 1; i <= N; i ++) dis[i][i] = 0LL; for (int i = 1; i <= M; i ++) { int a, b, l; scanf("%d %d %d", &a, &b, &l); dis[a][b] = dis[b][a] = l; g[a][b] = g[b][a] = l; } floyd(); for (int from = 1; from <= N; from ++) { for (int to = 1; to <= N; to ++) { if (dis[from][to] == INF || dis[from][to] == 0) { continue; } for (int mid = 1; mid <= N; mid ++) { if (dis[from][to] == dis[from][mid] + g[mid][to]) { cnt[from][to] ++; } } } for (int to = from + 1; to <= N; to ++) { for (int mid = 1; mid <= N; mid ++) { if (dis[from][to] == INF || dis[from][mid] == INF || dis[mid][to] == INF) { continue; } if (dis[from][to] == dis[from][mid] + dis[mid][to]) { ans[from][to] += cnt[from][mid]; } } printf("%d ", (int)ans[from][to]); } } printf("\n"); } int main() { while (scanf("%d %d", &N, &M) != EOF) { work(); } return 0; }
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x8ded, %r9 nop nop nop nop and $17790, %rbp movb $0x61, (%r9) nop nop nop nop nop xor %r13, %r13 lea addresses_UC_ht+0x1912d, %rbx xor $41744, %r13 vmovups (%rbx), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $1, %xmm2, %r15 nop nop nop sub $464, %r15 lea addresses_WT_ht+0x1502d, %rsi lea addresses_D_ht+0x92d, %rdi sub $36695, %r15 mov $121, %rcx rep movsw nop nop cmp %r9, %r9 lea addresses_normal_ht+0x11bd7, %rsi lea addresses_normal_ht+0xd96d, %rdi sub %rbx, %rbx mov $31, %rcx rep movsq nop nop xor %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r8 push %r9 push %rcx push %rdx // Store lea addresses_RW+0x1782d, %r13 nop xor $16480, %r9 movb $0x51, (%r13) nop nop nop add %r9, %r9 // Store lea addresses_WT+0x1032d, %r12 nop nop nop nop sub %r8, %r8 mov $0x5152535455565758, %r11 movq %r11, (%r12) nop add %r11, %r11 // Store lea addresses_WT+0x10bad, %r11 nop nop nop and %r12, %r12 mov $0x5152535455565758, %r9 movq %r9, (%r11) nop nop nop add %r11, %r11 // Faulty Load mov $0x4a088a0000000d2d, %r11 nop nop nop nop inc %r12 mov (%r11), %rcx lea oracles, %r8 and $0xff, %rcx shlq $12, %rcx mov (%r8,%rcx,1), %rcx pop %rdx pop %rcx pop %r9 pop %r8 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': True, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 7}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_WT_ht', 'same': True, 'AVXalign': False, 'congruent': 6}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 8}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 6}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
; size_t ftoa(float x, char *buf, uint16_t prec, uint16_t flag) SECTION code_stdlib PUBLIC _ftoa EXTERN _dtoa defc _ftoa = _dtoa
; A020749: Pisot sequence T(5,8), a(n) = floor(a(n-1)^2/a(n-2)). ; 5,8,12,18,27,40,59,87,128,188,276,405,594,871,1277,1872,2744,4022,5895,8640,12663,18559,27200,39864,58424,85625,125490,183915,269541,395032,578948,848490,1243523,1822472,2670963,3914487,5736960,8407924,12322412,18059373,26467298,38789711,56849085,83316384,122106096,178955182,262271567,384377664,563332847,825604415,1209982080,1773314928,2598919344,3808901425,5582216354,8181135699,11990037125,17572253480,25753389180,37743426306,55315679787,81069068968,118812495275,174128175063,255197244032,374009739308,548137914372,803335158405,1177344897714,1725482812087,2528817970493,3706162868208,5431645680296,7960463650790,11666626518999,17098272199296,25058735850087,36725362369087,53823634568384,78882370418472,115607732787560,169431367355945,248313737774418,363921470561979,533352837917925,781666575692344,1145588046254324,1678940884172250,2460607459864595,3606195506118920,5285136390291171,7745743850155767 add $0,3 mov $1,4 add $1,$0 sub $0,$0 add $1,1 add $0,$1 lpb $0,1 sub $0,1 sub $1,$1 add $1,$2 add $2,$3 add $2,1 mov $3,$4 mov $4,$1 trn $4,3 mov $1,$4 lpe
INCLUDE "constants.asm" INCLUDE "palettes.asm" ; rst vectors SECTION "rst 00", ROM0 [$00] jp Init SECTION "rst 08", ROM0 [$08] jp Init DS $5 SECTION "rst 10", ROM0 [$10] rst $38 DS $7 SECTION "rst 18", ROM0 [$18] rst $38 DS $7 SECTION "rst 20", ROM0 [$20] rst $38 DS $7 SECTION "rst 28", ROM0 [$28] ; Helper function: ; * doubles the current game status (register A) ; * finds an address in a list located after caller's address (depending on game status) ; * jumps to that address add a, a ; double GAME_STATUS pop hl ld e, a ld d, $00 add hl, de ; add 2 * GAME_STATUS to caller address ld e, [hl] ; get 2-byte-address from that location inc hl ld d, [hl] push de pop hl jp hl ; jump to that address DS $4 SECTION "rst 38", ROM0 [$38] rst $38 DS $7 ; Hardware interrupts SECTION "vblank", ROM0 [$40] jp VBlank DS $5 SECTION "hblank", ROM0 [$48] jp HBlank_Timer DS $5 SECTION "timer", ROM0 [$50] jp HBlank_Timer DS $5 SECTION "serial", ROM0 [$58] jp Serial Serial:: push af push hl push de push bc call func_006b ld a, $01 ldh [$ff00 + $cc], a pop bc pop de pop hl pop af reti ; Small switch statement: ; (rst 28 jumps to following address, depending on current $ff00 + $cd) func_006b: ldh a, [$ff00 + $cd] rst $28 db $78, $00 ; => 0078 db $9f, $00 ; => 009f db $a4, $00 ; => 00a4 db $ba, $00 ; => 00ba db $ea, $27 ; => 27ea l_0078: ldh a, [rGAME_STATUS] cp MENU_TITLE jr z, l_0086 cp MENU_TITLE_INIT ret z ld a, MENU_TITLE_INIT ldh [rGAME_STATUS], a ret l_0086: ldh a, [rSB] cp $55 jr nz, l_0094 ld a, $29 ldh [$ff00 + $cb], a ld a, $01 jr l_009c l_0094: cp $29 ret nz ld a, $55 ldh [$ff00 + $cb], a xor a l_009c: ldh [rSC], a ret func_009f: ldh a, [rSB] ldh [$ff00 + $d0], a ret func_00a4: ldh a, [rSB] ldh [$ff00 + $d0], a ldh a, [$ff00 + $cb] cp $29 ret z ldh a, [rSB_DATA] ldh [rSB], a ld a, $ff ldh [rSB_DATA], a ld a, $80 ldh [rSC], a ret func_00ba: ldh a, [rSB] ldh [$ff00 + $d0], a ldh a, [$ff00 + $cb] cp $29 ret z ldh a, [rSB_DATA] ldh [rSB], a ei call WASTE_TIME ld a, $80 ldh [rSC], a ret func_00d0: ldh a, [$ff00 + $cd] cp $02 ret nz xor a ldh [rIF], a ; Clear all interrupt flags ei ret DS $26 SECTION "Entry", ROM0 [$100] nop jp Start SECTION "Header", ROM0 [$104] db $ce, $ed, $66, $66, $cc, $0d, $00, $0b, $03, $73, $00, $83, $00, $0c, $00, $0d, db $00, $08, $11, $1f, $88, $89, $00, $0e, $dc, $cc, $6e, $e6, $dd, $dd, $d9, $99, db $bb, $bb, $67, $63, $6e, $0e, $ec, $cc, $dd, $dc, $99, $9f, $bb, $b9, $33, $3e, db "TETRIS", $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00 ;dmg - classic gameboy db $00, $00 ;new license db $00 ;sgb flag: not sgb compatible db $00 ;cart type: rom db $00 ;rom size: 32 kb db $00 ;ram size: 0 b db $00 ;destination code: japanese db $01 ;old license: not sgb compatible db $01 ;mask rom version number db $0a ;header check [ok] db $16, $bf ;global check [ok] SECTION "Main", ROM0 [$150] Start: jp Init call func_29e3 l_0156: ldh a, [rLCDC_STAT] and $03 jr nz, l_0156 ld b, [hl] l_015d: ldh a, [$ff00 + $41] and $03 jr nz, l_015d ld a, [hl] and b ret func_0166: ld a, e add a, [hl] daa ldi [hl], a ld a, d adc a, [hl] daa ldi [hl], a ld a, $00 adc a, [hl] daa ld [hl], a ld a, $01 ldh [$ff00 + $e0], a ret nc ld a, $99 ldd [hl], a ldd [hl], a ld [hl], a ret ; The VBlank interrupt handler, must occur once somewhen during the game-loop VBlank:: push af ; Store registers push bc push de push hl ldh a, [rREQUEST_SERIAL_TRANSFER] ; Transfer data only if requested and a jr z, .skip_serial_connection ldh a, [$ff00 + $cb] ; ? cp $29 jr nz, .skip_serial_connection xor a ldh [rREQUEST_SERIAL_TRANSFER], a ; Clear request ldh a, [rSB_DATA] ldh [rSB], a ; Send data to link cable ld hl, rSC ld [hl], $81 ; Use internal clock (= this GB is the master) ; and request a data transfer (of rSB) to the other GB .skip_serial_connection: call clear_row_animation call func_23cc call func_23b7 call func_239e call func_238c call func_237d call func_236e call func_235f call func_2350 call func_2341 call func_2332 call func_2323 call func_22f8 call func_22e9 call func_22da call func_22cb call func_22bc call func_22ad call func_229e call func_1ed7 call $FFB6 ; OAM routine? call func_18ca ld a, [$c0ce] and a jr z, l_01fb ldh a, [rBLOCK_STATUS] cp $03 jr nz, l_01fb ld hl, $986d call func_243b ld a, $01 ldh [$ff00 + $e0], a ld hl, $9c6d call func_243b xor a ld [$c0ce], a l_01fb: ld hl, $ffe2 inc [hl] xor a ldh [$ff00 + $43], a ldh [$ff00 + $42], a inc a ldh [rVBLANK_DONE], a pop hl pop de pop bc pop af reti Init: ; Flush WRAM Bank 1 xor a ld hl, $dfff ; End of WRAM Bank 1 ld c, $10 ; $1000 = size of WRAM Bank 1 ld b, $00 ; " .loop_0: ldd [hl], a dec b jr nz, .loop_0 dec c jr nz, .loop_0 Screen_Setup: ; $21B rINTERRUPT_DEFAULT EQU %00000001 ; * VBlank interrupt enabled ; * everything else disabled rLCDC_START EQU %10000000 ; * LCD enabled ; * everything else disabled ld a, rINTERRUPT_DEFAULT di ldh [rIF], a ldh [rIE], a xor a ldh [rSCY], a ldh [rSCX], a ldh [rUNKNOWN1], a ldh [rLCDC_STAT], a ldh [rSB], a ldh [rSC], a ld a, rLCDC_START ldh [rLCDC], a .loop_1: ldh a, [rLY] cp SCREEN_HEIGHT + 4 jr nz, .loop_1 ld a, $03 ldh [rLCDC], a ld a, PALETTE_1 ldh [rBGP], a ldh [rOBP0], a ld a, PALETTE_2 ldh [rOBP1], a ld hl, rNR52 ld a, SOUND_ON ldd [hl], a ; rNR51 ld a, USE_ALL_CHANNELS ldd [hl], a ; rNR50 ld [hl], MASTER_VOLUME_MAX ld a, $01 ld [rMBC], a ld sp, SP_INIT ; Flush WRAM Bank 1 (last page only) xor a ld hl, $dfff ; End of WRAM Bank 1 ld b, $00 .loop_2: ldd [hl], a dec b jr nz, .loop_2 ; Flush 256 bytes from end of WRAM Bank 1 ; Flush WRAM Bank 0 ld hl, $cfff ; End of WRAM Bank 0 ld c, $10 ; $1000 = size of WRAM Bank 0 ld b, $00 ; " .loop_3: ldd [hl], a dec b jr nz, .loop_3 dec c jr nz, .loop_3 Flush_VRAM:: ld hl, $9fff ; End of Video RAM ld c, $20 ; $2000 = Size of Video RAM xor a ld b, $00 .loop_4: ldd [hl], a dec b jr nz, .loop_4 dec c jr nz, .loop_4 ; Flush Object Attribute Memory (OAM) ld hl, $feff ; End of unusable hardware RAM ld b, $00 .loop_5: ldd [hl], a dec b jr nz, .loop_5 ; Flush 256 bytes from end of hardware RAM, including OAM ; Flush High RAM ld hl, $fffe ; End of High RAM ld b, $80 .loop_6: ldd [hl], a dec b jr nz, .loop_6 ; Flush 128 bytes (Entire HRAM) ; Copy DMA Transfer routine into HRAM ld c, $b6 ; Target location in HRAM ld b, $0c ; Routine length ld hl, $2a7f ; Source location in ROM .loop_7: ldi a, [hl] ldh [c], a inc c dec b jr nz, .loop_7 call Flush_BG1 call Sound_Init rINTERRUPT_SERIAL EQU %00001001 ; * VBlank interrupt enabled ; * Serial interrupt enabled ; * everything else disabled ld a, rINTERRUPT_SERIAL ldh [rIE], a ; enable VBlank & Serial Interrupt ; Set up a few game variables ld a, GAME_TYPE_A ldh [rGAME_TYPE], a ld a, MUSIC_TYPE_A ldh [rMUSIC_TYPE], a ld a, MENU_COPYRIGHT_INIT ldh [rGAME_STATUS], a ld a, LCDC_ON ldh [rLCDC], a ei ; enable interrupts (VBlank interrupt handler can occur now) xor a ldh [rIF], a ; clear all interrupt flags ldh [rWY], a ; Set Window X & Y Position to initial ldh [rWX], a ldh [rTMA], a ; Clear the timer modulo .Main_Loop: call Read_Joypad call State_Machine call func_7ff0 ldh a, [rBUTTON_DOWN] and $0f cp $0f jp z, Screen_Setup ; if all directional keys are pressed, reset game ; Countdown both $ffa6 and $ffa7 by 1, if >0 ld hl, rCOUNTDOWN ld b, $02 .loop_8: ld a, [hl] and a jr z, .skip_1 dec [hl] ; if countdown is > 0, count one down .skip_1: inc l dec b jr nz, .loop_8 ldh a, [rPLAYERS] and a jr z, .wait_for_vblank ld a, rINTERRUPT_SERIAL ldh [rIE], a ; If in 2-player mode, enable serial interrupt .wait_for_vblank: ldh a, [rVBLANK_DONE] and a jr z, .wait_for_vblank ; Loop until VBlank handler has finished executing xor a ldh [rVBLANK_DONE], a jp .Main_Loop State_Machine:: ldh a, [rGAME_STATUS] rst $28 ; Big switch statement: ; (rst $28 jumps to following address, depending on current GAME_STATUS) db $ce, $1b ; MENU_IN_GAME => 1bce db $e2, $1c ; MENU_GAME_OVER_INIT => 1ce2 db $44, $12 ; MENU_ROCKET_1D => 1244 db $7b, $12 ; MENU_ROCKET_1E => 127b db $06, $1d ; MENU_GAME_OVER => 1d06 db $26, $1d ; MENU_TYPE_B_WON => 1d26 db $ae, $03 ; MENU_TITLE_INIT => 03ae db $79, $04 ; MENU_TITLE => 0479 db $44, $14 ; MENU_SELECT_TYPE_INIT => 1444 db $8c, $14 ; (unused) db $07, $1a ; MENU_IN_GAME_INIT => 1a07 db $c0, $1d ; MENU_SCORE_B => 1dc0 db $16, $1f ; (unknown) => 1f16 db $1f, $1f ; MENU_LOST_ANIM => 1f1f db $25, $15 ; MENU_SELECT_TYPE => 1525 db $b0, $14 ; MENU_SELECT_MUSIC => 14b0 db $7b, $15 ; MENU_LEVEL_A_INIT => 157b db $bf, $15 ; MENU_LEVEL_A => 15bf db $29, $16 ; MENU_LEVEL_B_INIT => 1629 db $7a, $16 ; MENU_LEVEL_B => 167a db $eb, $16 ; MENU_HIGH_B => 16eb db $13, $19 ; MENU_HISCORE => 1913 db $77, $06 ; MENU_VS_INIT => 0677 db $2c, $07 ; MENU_VS_MODE => 072c db $25, $08 ; MENU_VS_GAME_INIT => 0825 db $e4, $08 ; MENU_VS_GAME => 08e4 db $31, $0b ; (unknown) => 0b31 db $eb, $0c ; (unknown) => 0ceb db $d2, $0a ; (unknown) => 0ad2 db $32, $0d ; MENU_LUIGI_WON_INIT => 0d32 db $23, $0e ; MENU_LUIGI_LOST_INIT => 0e23 db $12, $11 ; (unknown) => 1112 db $99, $0d ; MENU_LUIGI_WON => 0d99 db $8a, $0e ; MENU_LUIGI_LOST => 0e8a db $ce, $1d ; MENU_CELEBRATE => 1dce db $41, $1e ; (unknown) => 1e41 db $69, $03 ; MENU_COPYRIGHT_INIT => 0369 db $93, $03 ; MENU_COPYRIGHT_1 => 0393 db $67, $11 ; MENU_ROCKET_1_INIT => 1167 db $e6, $11 ; MENU_ROCKET_1A => 11e6 db $fc, $11 ; MENU_ROCKET_1B => 11fc db $1c, $12 ; MENU_ROCKET_1C => 121c db $c7, $05 ; (unknown) => 05c7 db $f7, $05 ; (unknown) => 05f7 db $b3, $12 ; MENU_ROCKET_1F => 12b3 db $05, $13 ; MENU_ROCKET_1G => 1305 db $24, $13 ; MENU_ROCKET_2A => 1324 db $51, $13 ; MENU_ROCKET_2B => 1351 db $67, $13 ; MENU_ROCKET_2C => 1367 db $7e, $13 ; MENU_ROCKET_2D => 137e db $b5, $13 ; MENU_ROCKET_2E => 13b5 db $e5, $13 ; MENU_ROCKET_2F => 13e5 db $1b, $13 ; MENU_ROCKET_2_INIT => 131b db $a0, $03 ; MENU_COPYRIGHT_2 => 03a0 db $ea, $27 ; (unknown) => 27ea lbl_MENU_COPYRIGHT_INIT:: call WAIT_FOR_VBLANK call COPY_TITLE_TILES ld de, $4a07 ; Starting address of copyright screen tile map in ROM call COPY_TILEMAP call CLEAR_OAM_DATA ld hl, $c300 ; Copy some values into $c300+. Seems to be serial related ld de, $6450 .loop_12: ld a, [de] ldi [hl], a inc de ld a, h cp $c4 jr nz, .loop_12 ld a, LCDC_STANDARD ldh [rLCDC], a ld a, $fa ; ~ 4 seconds ldh [rCOUNTDOWN], a ld a, MENU_COPYRIGHT_1 ldh [rGAME_STATUS], a ret ; Wait until previous countdown is done, set a new one and change the game status to MENU_COPYRIGHT_2 lbl_MENU_COPYRIGHT_1:: ldh a, [rCOUNTDOWN] and a ret nz ld a, $fa ; ~ 4 seconds ldh [rCOUNTDOWN], a ld a, MENU_COPYRIGHT_2 ld [rGAME_STATUS], a ret ; Wait until either previous countdown (4 secs) is done, or anz button was hit, then change game status to MENU_TITLE_INIT lbl_MENU_COPYRIGHT_2:: ldh a, [rBUTTON_HIT] and a jr nz, .skip_2 ldh a, [rCOUNTDOWN] and a ret nz .skip_2: ld a, MENU_TITLE_INIT ld [rGAME_STATUS], a ret lbl_MENU_TITLE_INIT:: call WAIT_FOR_VBLANK xor a ldh [rUNUSED], a ldh [rBLOCK_STATUS], a ldh [rCLEAR_PROGRESS], a ldh [$ff00 + $9b], a ldh [$ff00 + $fb], a ldh [rLINES_CLEARED2], a ldh [rROW_UPDATE], a ldh [$ff00 + $c7], a call func_2293 call func_2651 call COPY_TITLE_TILES ld hl, $c800 l_03ce: ld a, $2f ldi [hl], a ld a, h cp $cc jr nz, l_03ce ld hl, $c801 call func_26a9 ld hl, $c80c call func_26a9 ld hl, $ca41 ld b, $0c ld a, $8e l_03e9: ldi [hl], a dec b jr nz, l_03e9 ld de, $4b6f call COPY_TILEMAP call CLEAR_OAM_DATA ld hl, $c000 ; Address of OAM data ld [hl], $80 ; Little arrow Y location inc l ld [hl], $10 ; Little arrow X location inc l ld [hl], $58 ; Little arrow tile address ld a, $03 ld [$dfe8], a ld a, LCDC_STANDARD ldh [rLCDC], a ld a, MENU_TITLE ldh [rGAME_STATUS], a ld a, $7d ; ~ 2 seconds ldh [rCOUNTDOWN], a ld a, $04 ldh [rMUSIC_COUNTDOWN], a ldh a, [rDEMO_GAME] and a ret nz ld a, $13 ldh [rMUSIC_COUNTDOWN], a ret PLAY_DEMO_GAME: ld a, GAME_TYPE_A ldh [rGAME_TYPE], a ld a, $09 ldh [rLEVEL_A], a ; set to level 9 xor a ldh [rPLAYERS], a ; 1 player mode ldh [rDEMO_STATUS], a ldh [rDEMO_BUTTON_HIT], a ldh [rDEMO_ACTION_COUNTDOWN], a ld a, $62 ; $62b0 = start address of first demo storyboard ldh [rDEMO_STORYBOARD_1], a ld a, $b0 ldh [rDEMO_STORYBOARD_2], a ldh a, [rDEMO_GAME] cp $02 ld a, $02 jr nz, .set_up_first_demo_game ; jump if NOT first demo game was played just now ; (if rDEMO_GAME = 2, then first demo was running. If not, jump.) ; set up second demo game: ld a, GAME_TYPE_B ldh [rGAME_TYPE], a ld a, $09 ldh [rLEVEL_B], a ; set to level 9 ld a, $02 ldh [rINITIAL_HEIGHT], a ld a, $63 ; $63b0 = start address of second demo storyboard ldh [rDEMO_STORYBOARD_1], a ld a, $b0 ldh [rDEMO_STORYBOARD_2], a ld a, $11 ldh [rDEMO_STATUS], a ld a, $01 .set_up_first_demo_game: ldh [rDEMO_GAME], a ld a, MENU_IN_GAME_INIT ldh [rGAME_STATUS], a ; start a normal in-game (called routines are mostly the same) call WAIT_FOR_VBLANK call COPY_IN_GAME_TILES ld de, $4cd7 ; start of tile map for game select screen call COPY_TILEMAP ; copy that tile map to VRAM (useless!) call CLEAR_OAM_DATA ld a, LCDC_STANDARD ldh [rLCDC], a ret func_0474: ; not used function ld a, $ff ldh [rUNUSED], a ret lbl_MENU_TITLE:: ldh a, [rCOUNTDOWN] and a jr nz, .skip_still_no_demo ld hl, rMUSIC_COUNTDOWN dec [hl] jr z, PLAY_DEMO_GAME ld a, $7d ; ~ 2 seconds ldh [rCOUNTDOWN], a .skip_still_no_demo: call WASTE_TIME ld a, $55 ; Something Serial Data related ldh [rSB], a ld a, $80 ldh [rSC], a ldh a, [$ff00 + $cc] and a jr z, .skip_title_serial_check ldh a, [$ff00 + $cb] and a jr nz, l_04d7 xor a ldh [$ff00 + $cc], a jr l_0509 .skip_title_serial_check: ldh a, [rBUTTON_HIT] ld b, a ldh a, [rPLAYERS] bit BTN_SELECT, b jr nz, MENU_TITLE_SELECT_BTN bit BTN_RIGHT, b jr nz, MENU_TITLE_RIGHT_BTN bit BTN_LEFT, b jr nz, MENU_TITLE_LEFT_BTN bit BTN_START, b ret z ; Return if no relevant button was pressed and a ld a, $08 jr z, first_player_selected ; jump if 1 player selected ld a, b cp $08 ret nz ldh a, [$ff00 + $cb] cp $29 jr z, l_04d7 ld a, $29 ldh [rSB], a ld a, $81 ldh [rSC], a l_04cd: ldh a, [$ff00 + $cc] and a jr z, l_04cd ldh a, [$ff00 + $cb] and a jr z, l_0509 l_04d7: ld a, $2a l_04d9: ldh [rGAME_STATUS], a xor a ldh [rCOUNTDOWN], a ldh [rLEVEL_A], a ldh [rLEVEL_B], a ldh [rINITIAL_HEIGHT], a ldh [rDEMO_GAME], a ret first_player_selected: push af ldh a, [rBUTTON_DOWN] bit BTN_DOWN, a jr z, .skip_hard_mode ; set hard mode only if (Start + Down) are pressed. ldh [rHARD_MODE], a .skip_hard_mode: pop af jr l_04d9 MENU_TITLE_SELECT_BTN: xor $01 ; toggles rPLAYERS value (i.e. 0 -> 1 and 1 -> 0) l_04f5: ldh [rPLAYERS], a and a ld a, $10 jr z, .move_arrow_left ld a, $60 ; move arrow right - left of "2PLAYER" text .move_arrow_left: ld [$c001], a ; X location of first OAM data entry (= title menu arrow) ret MENU_TITLE_RIGHT_BTN: and a ret nz ; return if rPLAYERS = 1 (i.e. 2 players) xor a jr MENU_TITLE_SELECT_BTN MENU_TITLE_LEFT_BTN: and a ret z ; return if rPLAYERS = 0 (i.e. 1 player) l_0509: xor a jr l_04f5 CHECK_DEMO_GAME_FINISHED:: ldh a, [rDEMO_GAME] and a ret z ; return if NOT in demo mode call WASTE_TIME xor a ; empty serial connection byte ldh [rSB], a ld a, $80 ; turn on serial connection and act as slave (allow receiving) ldh [rSC], a ldh a, [rBUTTON_HIT] bit BTN_START, a jr z, .dont_cancel_demo_game ; jump if Start button not pressed ; Start button pressed: ld a, $33 ; load byte $33 for starting a serial connection ldh [rSB], a ld a, $81 ; turn on serial connection and act as master (try sending) ldh [rSC], a ld a, MENU_TITLE_INIT ; quit demo game and return to main menu ldh [rGAME_STATUS], a ret .dont_cancel_demo_game: ld hl, rDEMO_STATUS ldh a, [rDEMO_GAME] cp $02 ; if is currently running the first demo game, ... ld b, $10 jr z, .skip_3 ld b, $1d .skip_3: ; ... then set b to $10, otherwise set b to $1d. ld a, [hl] cp b ret nz ; if rDEMO_STATUS not equal b then keep going, ... ld a, MENU_TITLE_INIT ; ... otherwise return to main menu. ldh [rGAME_STATUS], a ; (rDEMO_STATUS increases with each block, game 1 goes from $03 to $09, game 2 from $14 to $1c) ret ; This function reads from the storyboard a button configuration and a frame number, how long to hold the buttons (or none) ; Actual button pressed are stored and replaced by these simulated presses. SIMULATE_BUTTON_PRESSES:: ldh a, [rDEMO_GAME] and a ret z ; return if NOT in demo mode ldh a, [rUNUSED] cp $ff ret z ; always false ldh a, [rDEMO_ACTION_COUNTDOWN] and a jr z, .retrieve_next_action ; jump if countdown reached zero dec a ldh [rDEMO_ACTION_COUNTDOWN], a ; countdown by 1 jr .clear_real_button_press .retrieve_next_action: ldh a, [rDEMO_STORYBOARD_1] ld h, a ldh a, [rDEMO_STORYBOARD_2] ld l, a ; load the current storyboard address into hl ldi a, [hl] ; get first value at address -> supposed button press ld b, a ldh a, [rDEMO_BUTTON_HIT] xor b and b ldh [rBUTTON_HIT], a ; set (actual) button hit to the new button presses. ; if any button is pressed twice in a row, turn it off now. ld a, b ldh [rDEMO_BUTTON_HIT], a ; (also save it at rDEMO_BUTTON_HIT) ldi a, [hl] ; load the button press duration from storyboard ldh [rDEMO_ACTION_COUNTDOWN], a ld a, h ldh [rDEMO_STORYBOARD_1], a ld a, l ldh [rDEMO_STORYBOARD_2], a ; put the next storyboard address into rDEMO_STORYBOARD_n jr .store_actual_button_press .clear_real_button_press: xor a ldh [rBUTTON_HIT], a .store_actual_button_press: ldh a, [rBUTTON_DOWN] ldh [rDEMO_ACTUAL_BUTTON], a ; store actual button presses into rDEMO_ACTUAL_BUTTON ldh a, [rDEMO_BUTTON_HIT] ldh [rBUTTON_DOWN], a ; replace them with the simulated buttons from the demo storyboard ret ; 057D - unused code xor a ldh [rDEMO_BUTTON_HIT], a jr .clear_real_button_press ret USELESS_FUNCTION:: ldh a, [rDEMO_GAME] and a ret z ; return if NOT demo mode ldh a, [rUNUSED] cp $ff ret nz ; always true - always return ; function never executed: ldh a, [rBUTTON_DOWN] ld b, a ldh a, [rDEMO_BUTTON_HIT] cp b jr z, l_05ad ldh a, [rDEMO_STORYBOARD_1] ld h, a ldh a, [rDEMO_STORYBOARD_2] ld l, a ldh a, [rDEMO_BUTTON_HIT] ldi [hl], a ldh a, [rDEMO_ACTION_COUNTDOWN] ldi [hl], a ld a, h ldh [rDEMO_STORYBOARD_1], a ld a, l ldh [rDEMO_STORYBOARD_2], a ld a, b ldh [rDEMO_BUTTON_HIT], a xor a ldh [rDEMO_ACTION_COUNTDOWN], a ret l_05ad: ldh a, [rDEMO_ACTION_COUNTDOWN] inc a ldh [rDEMO_ACTION_COUNTDOWN], a ret RESTORE_BUTTON_PRESSES:: ldh a, [rDEMO_GAME] and a ret z ; return if NOT in demo game ldh a, [rUNUSED] and a ret nz ldh a, [rDEMO_ACTUAL_BUTTON] ldh [rBUTTON_DOWN], a ; restore stored real button presses at begin of menu_in_game function ret l_05c0: ld hl, $ff02 set 7, [hl] jr l_05d1 l_05c7: ld a, $03 ldh [$ff00 + $cd], a ldh a, [$ff00 + $cb] cp $29 jr nz, l_05c0 l_05d1: call func_144f ld a, $80 ld [rNEXT_BLOCK_VISIBILITY], a call func_2671 ldh [rREQUEST_SERIAL_TRANSFER], a xor a ldh [rSB], a ldh [rSB_DATA], a ldh [$ff00 + $dc], a ldh [$ff00 + $d2], a ldh [$ff00 + $d3], a ldh [$ff00 + $d4], a ldh [$ff00 + $d5], a ldh [rROW_UPDATE], a call Sound_Init ld a, $2b ldh [rGAME_STATUS], a ret func_05f7: ldh a, [$ff00 + $cb] cp $29 jr z, l_0613 ldh a, [$ff00 + $f0] and a jr z, l_0620 xor a ldh [$ff00 + $f0], a ld de, rBLOCK_Y call func_1492 call func_1517 call func_2671 jr l_0620 l_0613: ldh a, [rBUTTON_HIT] bit 0, a jr nz, l_0620 bit 3, a jr nz, l_0620 call func_14b0 l_0620: ldh a, [$ff00 + $cb] cp $29 jr z, l_0644 ldh a, [$ff00 + $cc] and a ret z xor a ldh [$ff00 + $cc], a ld a, $39 ldh [rSB_DATA], a ldh a, [$ff00 + $d0] cp $50 jr z, l_0664 ld b, a ldh a, [$ff00 + $c1] cp b ret z ld a, b ldh [$ff00 + $c1], a ld a, $01 ldh [$ff00 + $f0], a ret l_0644: ldh a, [rBUTTON_HIT] bit 3, a jr nz, l_066c bit 0, a jr nz, l_066c ldh a, [$ff00 + $cc] and a ret z xor a ldh [$ff00 + $cc], a ldh a, [rSB_DATA] cp $50 jr z, l_0664 ldh a, [$ff00 + $c1] l_065d: ldh [rSB_DATA], a ld a, $01 ldh [rREQUEST_SERIAL_TRANSFER], a ret l_0664: call CLEAR_OAM_DATA ld a, $16 ldh [rGAME_STATUS], a ret l_066c: ld a, $50 jr l_065d l_0670: ld hl, $ff02 set 7, [hl] jr l_0696 ld a, $03 ldh [$ff00 + $cd], a ldh a, [$ff00 + $cb] cp $29 jr nz, l_0670 call func_0aa1 call func_0aa1 call func_0aa1 ld b, $00 ld hl, $c300 l_068f: call func_0aa1 ldi [hl], a dec b jr nz, l_068f l_0696: call WAIT_FOR_VBLANK call COPY_IN_GAME_TILES ld de, $5214 call COPY_TILEMAP call CLEAR_OAM_DATA ld a, $2f call func_1fdd ld a, $03 ldh [rREQUEST_SERIAL_TRANSFER], a xor a ldh [rSB], a ldh [rSB_DATA], a ldh [$ff00 + $dc], a ldh [$ff00 + $d2], a ldh [$ff00 + $d3], a ldh [$ff00 + $d4], a ldh [$ff00 + $d5], a ldh [rROW_UPDATE], a l_06bf: ldh [$ff00 + $cc], a ld hl, $c400 ld b, $0a ld a, $28 l_06c8: ldi [hl], a dec b jr nz, l_06c8 ldh a, [$ff00 + $d6] and a jp nz, l_076d call func_1517 ld a, $d3 ldh [$ff00 + $40], a ld hl, $c080 l_06dc: ld de, $0705 ld b, $20 l_06e1: call func_0725 ld hl, rBLOCK_VISIBILITY ld de, $26ed ld c, $02 call func_1776 call func_080e call func_2671 xor a ldh [$ff00 + $d7], a ldh [$ff00 + $d8], a ldh [$ff00 + $d9], a ldh [$ff00 + $da], a ldh [$ff00 + $db], a ld a, $17 ldh [rGAME_STATUS], a ret db $40, $28, $AE, $00, $40, $30, $AE, $20, $48, $28, $AF, $00 db $48, $30, $AF, $20, $78, $28, $C0, $00, $78, $30, $C0, $20 db $80, $28, $C1, $00, $80, $30, $C1, $20 func_0725: ld a, [de] ldi [hl], a inc de dec b jr nz, func_0725 ret ldh a, [$ff00 + $cb] cp $29 jr z, l_0755 ldh a, [$ff00 + $cc] and a jr z, l_074a ldh a, [$ff00 + $d0] cp $60 jr z, l_076a cp $06 jr nc, l_0743 ldh [$ff00 + $ac], a l_0743: ldh a, [$ff00 + $ad] ldh [rSB_DATA], a xor a ldh [$ff00 + $cc], a l_074a: ld de, rNEXT_BLOCK_VISIBILITY call func_1766 ld hl, $ffad jr l_07bd l_0755: ldh a, [rBUTTON_HIT] bit 3, a jr z, l_075f ld a, $60 jr l_07ac l_075f: ldh a, [$ff00 + $cc] and a jr z, l_07b4 ldh a, [rSB_DATA] cp $60 jr nz, l_07a2 l_076a: call CLEAR_OAM_DATA l_076d: ldh a, [$ff00 + $d6] and a jr nz, l_078a ld a, $18 ldh [rGAME_STATUS], a ldh a, [$ff00 + $cb] cp $29 ret nz xor a ldh [$ff00 + $a0], a ld a, $06 ld de, $ffe0 ld hl, $c9a2 call func_1b68 ret l_078a: ldh a, [$ff00 + $cb] cp $29 l_078e: jp nz, l_0828 xor a ldh [$ff00 + $a0], a ld a, $06 ld de, $ffe0 ld hl, $c9a2 call func_1b68 jp l_0828 l_07a2: ldh a, [$ff00 + $d0] cp $06 jr nc, l_07aa ldh [$ff00 + $ad], a l_07aa: ldh a, [$ff00 + $ac] l_07ac: ldh [rSB_DATA], a xor a ldh [$ff00 + $cc], a inc a ldh [rREQUEST_SERIAL_TRANSFER], a l_07b4: ld de, rBLOCK_VISIBILITY call func_1766 ld hl, $ffac l_07bd: ld a, [hl] bit 4, b jr nz, l_07d6 bit 5, b jr nz, l_07e8 bit 6, b jr nz, l_07ee bit 7, b jr z, l_07e1 cp $03 jr nc, l_07e1 add a, $03 jr l_07db l_07d6: cp $05 jr z, l_07e1 inc a l_07db: ld [hl], a ld a, $01 ld [$dfe0], a l_07e1: call func_080e call func_2671 ret l_07e8: and a jr z, l_07e1 dec a jr l_07db l_07ee: cp $03 jr c, l_07e1 sub a, $03 jr l_07db ;data $7f6 - 80d (incl.) db $40, $60, $40, $70, $40, $80, $50, $60, $50, $70, $50, $80 db $78, $60, $78, $70, $78, $80, $88, $60, $88, $70, $88, $80 func_080e: ldh a, [$ff00 + $ac] ld de, rBLOCK_Y ld hl, $07f6 call func_1755 ldh a, [$ff00 + $ad] ld de, rNEXT_BLOCK_Y ld hl, $0802 call func_1755 ret call WAIT_FOR_VBLANK l_0828: xor a ld [rNEXT_BLOCK_VISIBILITY], a ldh [rBLOCK_STATUS], a ldh [rCLEAR_PROGRESS], a ldh [$ff00 + $9b], a ldh [$ff00 + $fb], a ldh [rLINES_CLEARED2], a ldh [$ff00 + $cc], a ldh [rSB], a ldh [rREQUEST_SERIAL_TRANSFER], a ldh [$ff00 + $d0], a ldh [rSB_DATA], a ldh [$ff00 + $d1], a call func_2651 call func_2293 call func_1ff2 xor a ldh [rROW_UPDATE], a call CLEAR_OAM_DATA ld de, $537c push de ld a, $01 ldh [$ff00 + $a9], a ldh [rPLAYERS], a call COPY_TILEMAP l_085e: pop de ld hl, $9c00 call COPY_TILEMAP_B ld de, $2839 ld hl, $9c63 ld c, $0a call func_1f7d ld hl, rBLOCK_VISIBILITY ld de, $26bf call func_26b6 ld hl, rNEXT_BLOCK_VISIBILITY ld de, $26c7 call func_26b6 ld hl, $9951 ld a, $30 ldh [rLINES_CLEARED1], a ld [hl], $00 dec l ld [hl], $03 call func_1ae8 xor a ldh [$ff00 + $a0], a ldh a, [$ff00 + $cb] cp $29 ld de, $08d4 ldh a, [$ff00 + $ac] jr z, l_08a4 ld de, $08c4 ldh a, [$ff00 + $ad] l_08a4: ld hl, $98b0 ld [hl], a ld h, $9c ld [hl], a ld hl, $c080 ld b, $10 call func_0725 ld a, $77 ldh [$ff00 + $c0], a ld a, $d3 ldh [$ff00 + $40], a ld a, $19 ldh [rGAME_STATUS], a ld a, $01 ldh [$ff00 + $cd], a ret db $18, $84, $C0, $00, $18, $8C, $C0, $20, $20, $84, $C1, $00 db $20, $8C, $C1, $20, $18, $84, $AE, $00, $18, $8C, $AE, $20 db $20, $84, $AF, $00, $20, $8C, $AF jr nz, l_0923 ld [$ffe0], sp xor a ldh [$ff00 + $0f], a ldh a, [$ff00 + $cb] l_08ed: cp $29 jp nz, l_09f6 l_08f2: call WASTE_TIME call WASTE_TIME xor a ldh [$ff00 + $cc], a ld a, $29 l_08fd: ldh [rSB], a ld a, $81 ldh [rSC], a l_0903: ldh a, [$ff00 + $cc] and a jr z, l_0903 ldh a, [rSB] cp $55 jr nz, l_08f2 ld de, $0016 ld c, $0a ld hl, $c902 l_0916: ld b, $0a l_0918: xor a ldh [$ff00 + $cc], a call WASTE_TIME ldi a, [hl] ldh [rSB], a ld a, $81 l_0923: ldh [rSC], a l_0925: ldh a, [$ff00 + $cc] and a jr z, l_0925 dec b jr nz, l_0918 add hl, de dec c jr nz, l_0916 ldh a, [$ff00 + $ac] cp $05 jr z, l_0974 ld hl, $ca22 ld de, $0040 l_093d: add hl, de inc a cp $05 jr nz, l_093d ld de, $ca22 ld c, $0a l_0948: ld b, $0a l_094a: ld a, [de] ldi [hl], a inc e dec b jr nz, l_094a push de ld de, $ffd6 add hl, de pop de push hl ld hl, $ffd6 add hl, de push hl pop de pop hl dec c jr nz, l_0948 ld de, $ffd6 l_0964: ld b, $0a ld a, h cp $c8 jr z, l_0974 ld a, $2f l_096d: ldi [hl], a dec b jr nz, l_096d add hl, de jr l_0964 l_0974: call WASTE_TIME call WASTE_TIME xor a ldh [$ff00 + $cc], a ld a, $29 ldh [rSB], a ld a, $81 ldh [rSC], a l_0985: ldh a, [$ff00 + $cc] and a jr z, l_0985 ldh a, [rSB] cp $55 jr nz, l_0974 ld hl, $c300 ld b, $00 l_0995: xor a ldh [$ff00 + $cc], a ldi a, [hl] call WASTE_TIME ldh [rSB], a ld a, $81 ldh [rSC], a l_09a2: ldh a, [$ff00 + $cc] and a jr z, l_09a2 inc b jr nz, l_0995 l_09aa: call WASTE_TIME call WASTE_TIME xor a ldh [$ff00 + $cc], a ld a, $30 ldh [rSB], a ld a, $81 ldh [rSC], a l_09bb: ldh a, [$ff00 + $cc] and a jr z, l_09bb ldh a, [rSB] cp $56 jr nz, l_09aa l_09c6: call func_0a8c ld a, $09 ldh [$ff00 + $ff], a ld a, $1c ldh [rGAME_STATUS], a ld a, $02 ldh [rROW_UPDATE], a ld a, $03 ldh [$ff00 + $cd], a ldh a, [$ff00 + $cb] cp $29 jr z, l_09e4 ld hl, $ff02 set 7, [hl] l_09e4: ld hl, $c300 ldi a, [hl] ld [rBLOCK_TYPE], a ldi a, [hl] ld [rNEXT_BLOCK_TYPE], a ld a, h ldh [$ff00 + $af], a ld a, l ldh [rDEMO_STATUS], a ret l_09f6: ldh a, [$ff00 + $ad] inc a ld b, a ld hl, $ca42 ld de, $ffc0 l_0a00: dec b jr z, l_0a06 add hl, de jr l_0a00 l_0a06: call WASTE_TIME xor a ldh [$ff00 + $cc], a ld a, $55 ldh [rSB], a ld a, $80 ldh [rSC], a l_0a14: ldh a, [$ff00 + $cc] and a jr z, l_0a14 ldh a, [rSB] cp $29 jr nz, l_0a06 ld de, $0016 ld c, $0a l_0a24: ld b, $0a l_0a26: xor a ldh [$ff00 + $cc], a ldh [rSB], a ld a, $80 ldh [rSC], a l_0a2f: ldh a, [$ff00 + $cc] and a jr z, l_0a2f ldh a, [rSB] ldi [hl], a dec b jr nz, l_0a26 add hl, de dec c jr nz, l_0a24 l_0a3e: call WASTE_TIME xor a ldh [$ff00 + $cc], a ld a, $55 ldh [rSB], a ld a, $80 ldh [rSC], a l_0a4c: ldh a, [$ff00 + $cc] and a jr z, l_0a4c ldh a, [rSB] cp $29 jr nz, l_0a3e ld b, $00 ld hl, $c300 l_0a5c: xor a ldh [$ff00 + $cc], a ldh [rSB], a ld a, $80 ldh [rSC], a l_0a65: ldh a, [$ff00 + $cc] and a jr z, l_0a65 ldh a, [rSB] ldi [hl], a inc b jr nz, l_0a5c l_0a70: call WASTE_TIME xor a ldh [$ff00 + $cc], a ld a, $56 ldh [rSB], a ld a, $80 ldh [rSC], a l_0a7e: ldh a, [$ff00 + $cc] and a jr z, l_0a7e ldh a, [rSB] cp $30 jr nz, l_0a70 jp l_09c6 func_0a8c: ld hl, $ca42 ld a, $80 ld b, $0a l_0a93: ldi [hl], a dec b jr nz, l_0a93 ret WASTE_TIME:: push bc ld b, $fa l_0a9b: ld b, b dec b jr nz, l_0a9b pop bc ret func_0aa1: push hl push bc ldh a, [$ff00 + $fc] and $fc ld c, a ld h, $03 l_0aaa: ldh a, [$ff00 + $04] ld b, a l_0aad: xor a l_0aae: dec b jr z, l_0abb inc a inc a inc a inc a cp $1c jr z, l_0aad jr l_0aae l_0abb: ld d, a ldh a, [$ff00 + $ae] ld e, a dec h jr z, l_0ac9 or d or c and $fc cp c jr z, l_0aaa l_0ac9: ld a, d ldh [$ff00 + $ae], a ld a, e ldh [$ff00 + $fc], a pop bc pop hl ret ld a, $01 ldh [$ff00 + $ff], a ldh a, [rROW_UPDATE] and a jr nz, l_0b02 ld b, $44 ld c, $20 call func_113f ld a, $02 ldh [$ff00 + $cd], a ld a, [$c0de] and a jr z, l_0af1 ld a, $80 ld [rNEXT_BLOCK_VISIBILITY], a l_0af1: call func_2683 call func_2696 call func_1517 xor a ldh [$ff00 + $d6], a ld a, $1a ldh [rGAME_STATUS], a ret l_0b02: cp $05 ret nz ld hl, $c030 ld b, $12 l_0b0a: ld [hl], $f0 inc hl ld [hl], $10 inc hl ld [hl], $b6 inc hl ld [hl], $80 inc hl dec b jr nz, l_0b0a ld a, [$c3ff] l_0b1c: ld b, $0a ld hl, $c400 l_0b21: dec a jr z, l_0b2a inc l dec b jr nz, l_0b21 jr l_0b1c l_0b2a: ld [hl], $2f ld a, $03 ldh [rREQUEST_SERIAL_TRANSFER], a ret ld a, $01 ldh [$ff00 + $ff], a ld hl, $c09c xor a ldi [hl], a ld [hl], $50 inc l ld [hl], $27 inc l ld [hl], $00 call START_SELECT_HANDLER call func_1c88 call func_24bb call func_209c call func_213e call func_25a1 call func_224d call func_0b9b ldh a, [$ff00 + $d5] and a jr z, l_0b73 ld a, $77 ldh [rSB_DATA], a ldh [$ff00 + $b1], a ld a, $aa ldh [$ff00 + $d1], a ld a, $1b ldh [rGAME_STATUS], a ld a, $05 ldh [rCOUNTDOWN2], a jr l_0b83 l_0b73: ldh a, [rGAME_STATUS] cp $01 jr nz, l_0b94 ld a, $aa ldh [rSB_DATA], a ldh [$ff00 + $b1], a ld a, $77 ldh [$ff00 + $d1], a l_0b83: xor a ldh [$ff00 + $dc], a ldh [$ff00 + $d2], a ldh [$ff00 + $d3], a ldh [$ff00 + $d4], a ldh a, [$ff00 + $cb] cp $29 jr nz, l_0b94 ldh [rREQUEST_SERIAL_TRANSFER], a l_0b94: call func_0bf0 call func_0c8c ret func_0b9b: ld de, $0020 ld hl, $c802 ld a, $2f ld c, $12 l_0ba5: ld b, $0a push hl l_0ba8: cp [hl] jr nz, l_0bb5 inc hl dec b jr nz, l_0ba8 pop hl add hl, de dec c jr nz, l_0ba5 push hl l_0bb5: pop hl ld a, c ldh [$ff00 + $b1], a cp $0c ld a, [$dfe9] jr nc, l_0bc7 cp $08 ret nz call func_1517 ret l_0bc7: cp $08 ret z ld a, [$dff0] cp $02 ret z ld a, $08 ld [$dfe8], a ret l_0bd6: ldh a, [$ff00 + $cb] cp $29 jr z, l_0c2e ld a, $01 ld [rPAUSED], a ldh [$ff00 + $ab], a ldh a, [rSB_DATA] ldh [$ff00 + $f1], a xor a ldh [$ff00 + $f2], a ldh [rSB_DATA], a call func_1ccb ret func_0bf0: ldh a, [$ff00 + $cc] and a ret z ld hl, $c030 ld de, $0004 xor a ldh [$ff00 + $cc], a ldh a, [$ff00 + $d0] cp $aa jr z, l_0c64 cp $77 jr z, l_0c50 cp $94 jr z, l_0bd6 ld b, a and a jr z, l_0c60 bit 7, a jr nz, l_0c82 cp $13 jr nc, l_0c2e ld a, $12 sub a, b ld c, a inc c l_0c1c: ld a, $98 l_0c1e: ld [hl], a add hl, de sub a, $08 dec b jr nz, l_0c1e l_0c25: ld a, $f0 l_0c27: dec c jr z, l_0c2e ld [hl], a add hl, de jr l_0c27 l_0c2e: ldh a, [$ff00 + $dc] and a jr z, l_0c3a or $80 ldh [$ff00 + $b1], a xor a ldh [$ff00 + $dc], a l_0c3a: ld a, $ff ldh [$ff00 + $d0], a ldh a, [$ff00 + $cb] cp $29 ldh a, [$ff00 + $b1] jr nz, l_0c4d ldh [rSB_DATA], a ld a, $01 ldh [rREQUEST_SERIAL_TRANSFER], a ret l_0c4d: ldh [rSB_DATA], a ret l_0c50: ldh a, [$ff00 + $d1] cp $aa jr z, l_0c7c ld a, $77 ldh [$ff00 + $d1], a ld a, $01 ldh [rGAME_STATUS], a jr l_0c2e l_0c60: ld c, $13 jr l_0c25 l_0c64: ldh a, [$ff00 + $d1] cp $77 jr z, l_0c7c ld a, $aa ldh [$ff00 + $d1], a ld a, $1b ldh [rGAME_STATUS], a ld a, $05 ldh [rCOUNTDOWN2], a ld c, $01 ld b, $12 jr l_0c1c l_0c7c: ld a, $01 ldh [$ff00 + $ef], a jr l_0c2e l_0c82: and $7f cp $05 jr nc, l_0c2e ldh [$ff00 + $d2], a jr l_0c3a func_0c8c: ldh a, [$ff00 + $d3] and a jr z, l_0c98 bit 7, a ret z and $07 jr l_0ca2 l_0c98: ldh a, [$ff00 + $d2] and a ret z ldh [$ff00 + $d3], a xor a ldh [$ff00 + $d2], a ret l_0ca2: ld c, a push bc ld hl, $c822 ld de, $ffe0 l_0caa: add hl, de dec c jr nz, l_0caa ld de, $c822 ld c, $11 l_0cb3: ld b, $0a l_0cb5: ld a, [de] ldi [hl], a inc e dec b jr nz, l_0cb5 push de ld de, $0016 add hl, de pop de push hl ld hl, $0016 add hl, de push hl pop de pop hl dec c jr nz, l_0cb3 pop bc l_0ccd: ld de, $c400 ld b, $0a l_0cd2: ld a, [de] ldi [hl], a inc de dec b jr nz, l_0cd2 push de ld de, $0016 add hl, de pop de dec c jr nz, l_0ccd ld a, $02 ldh [rROW_UPDATE], a ldh [$ff00 + $d4], a xor a ldh [$ff00 + $d3], a ret ldh a, [rCOUNTDOWN] and a ret nz ld a, $01 ldh [$ff00 + $ff], a ld a, $03 ldh [$ff00 + $cd], a ldh a, [$ff00 + $d1] cp $77 jr nz, l_0d09 ldh a, [$ff00 + $d0] cp $aa jr nz, l_0d13 l_0d03: ld a, $01 ldh [$ff00 + $ef], a jr l_0d13 l_0d09: cp $aa jr nz, l_0d13 ldh a, [$ff00 + $d0] cp $77 jr z, l_0d03 l_0d13: ld b, $34 ld c, $43 call func_113f xor a ldh [rROW_UPDATE], a ldh a, [$ff00 + $d1] cp $aa ld a, $1e jr nz, l_0d27 ld a, $1d l_0d27: ldh [rGAME_STATUS], a ld a, $28 ldh [rCOUNTDOWN], a ld a, $1d ldh [$ff00 + $c6], a ret ldh a, [rCOUNTDOWN] and a ret nz ldh a, [$ff00 + $ef] and a jr nz, l_0d40 ldh a, [$ff00 + $d7] inc a ldh [$ff00 + $d7], a l_0d40: call func_0f6f ld de, $26f9 ldh a, [$ff00 + $cb] cp $29 jr z, l_0d4f ld de, $270b l_0d4f: ld hl, rBLOCK_VISIBILITY ld c, $03 call func_1776 ld a, $19 ldh [rCOUNTDOWN], a ldh a, [$ff00 + $ef] and a jr z, l_0d65 ld hl, $c220 ld [hl], $80 l_0d65: ld a, $03 call func_2673 ld a, $20 ldh [rGAME_STATUS], a ld a, $09 ld [$dfe8], a ldh a, [$ff00 + $d7] cp $05 ret nz ld a, $11 ld [$dfe8], a ret l_0d7e: ldh a, [$ff00 + $d7] cp $05 jr nz, l_0d8b ldh a, [$ff00 + $c6] and a jr z, l_0d91 jr l_0dad l_0d8b: ldh a, [rBUTTON_HIT] bit 3, a jr z, l_0dad l_0d91: ld a, $60 ldh [rSB_DATA], a ldh [rREQUEST_SERIAL_TRANSFER], a jr l_0db6 ld a, $01 ldh [$ff00 + $ff], a ldh a, [$ff00 + $cc] jr z, l_0dad ldh a, [$ff00 + $cb] cp $29 jr z, l_0d7e ldh a, [$ff00 + $d0] cp $60 jr z, l_0db6 l_0dad: call func_0dbd ld a, $03 call func_2673 ret l_0db6: ld a, $1f ldh [rGAME_STATUS], a ldh [$ff00 + $cc], a ret func_0dbd: ldh a, [rCOUNTDOWN] and a jr nz, l_0de5 ld hl, $ffc6 dec [hl] ld a, $19 ldh [rCOUNTDOWN], a call func_0f60 ld hl, rBLOCK_Y ld a, [hl] xor $30 ldi [hl], a cp $60 call z, func_0f17 inc l push af ld a, [hl] xor $01 ld [hl], a ld l, $13 ldd [hl], a pop af dec l ld [hl], a l_0de5: ldh a, [$ff00 + $d7] cp $05 jr nz, l_0e13 ldh a, [$ff00 + $c6] ld hl, $c221 cp $06 jr z, l_0e0f cp $08 jr nc, l_0e13 ld a, [hl] cp $72 jr nc, l_0e03 cp $69 ret z inc [hl] inc [hl] ret l_0e03: ld [hl], $69 inc l inc l ld [hl], $57 ld a, $06 ld [$dfe0], a ret l_0e0f: dec l ld [hl], $80 ret l_0e13: ldh a, [rCOUNTDOWN2] and a ret nz ld a, $0f ldh [rCOUNTDOWN2], a ld hl, $c223 ld a, [hl] xor $01 ld [hl], a ret ldh a, [rCOUNTDOWN] and a ret nz ldh a, [$ff00 + $ef] and a jr nz, l_0e31 ldh a, [$ff00 + $d8] inc a ldh [$ff00 + $d8], a l_0e31: call func_0f6f ld de, $271d ldh a, [$ff00 + $cb] cp $29 jr z, l_0e40 ld de, $2729 l_0e40: ld hl, rBLOCK_VISIBILITY ld c, $02 call func_1776 ld a, $19 ldh [rCOUNTDOWN], a ldh a, [$ff00 + $ef] and a jr z, l_0e56 ld hl, rNEXT_BLOCK_VISIBILITY ld [hl], $80 l_0e56: ld a, $02 call func_2673 ld a, $21 ldh [rGAME_STATUS], a ld a, $09 ld [$dfe8], a ldh a, [$ff00 + $d8] cp $05 ret nz ld a, $11 ld [$dfe8], a ret l_0e6f: ldh a, [$ff00 + $d8] cp $05 jr nz, l_0e7c ldh a, [$ff00 + $c6] and a jr z, l_0e82 jr l_0e9e l_0e7c: ldh a, [rBUTTON_HIT] bit 3, a jr z, l_0e9e l_0e82: ld a, $60 ldh [rSB_DATA], a ldh [rREQUEST_SERIAL_TRANSFER], a jr l_0ea7 ld a, $01 ldh [$ff00 + $ff], a ldh a, [$ff00 + $cc] jr z, l_0e9e ldh a, [$ff00 + $cb] cp $29 jr z, l_0e6f ldh a, [$ff00 + $d0] cp $60 jr z, l_0ea7 l_0e9e: call func_0eae ld a, $02 call func_2673 ret l_0ea7: ld a, $1f ldh [rGAME_STATUS], a ldh [$ff00 + $cc], a ret func_0eae: ldh a, [rCOUNTDOWN] and a jr nz, l_0ecf ld hl, $ffc6 dec [hl] ld a, $19 ldh [rCOUNTDOWN], a call func_0f60 ld hl, rNEXT_BLOCK_Y ld a, [hl] xor $08 ldi [hl], a cp $68 call z, func_0f17 inc l ld a, [hl] xor $01 ld [hl], a l_0ecf: ldh a, [$ff00 + $d8] cp $05 jr nz, l_0f07 ldh a, [$ff00 + $c6] ld hl, rBLOCK_Y cp $05 jr z, l_0f03 cp $06 jr z, l_0ef3 cp $08 jr nc, l_0f07 ld a, [hl] cp $72 jr nc, l_0f03 cp $61 ret z inc [hl] inc [hl] inc [hl] inc [hl] ret l_0ef3: dec l ld [hl], $00 inc l ld [hl], $61 inc l inc l ld [hl], $56 ld a, $06 ld [$dfe0], a ret l_0f03: dec l ld [hl], $80 ret l_0f07: ldh a, [rCOUNTDOWN2] and a ret nz ld a, $0f ldh [rCOUNTDOWN2], a ld hl, rBLOCK_TYPE ld a, [hl] xor $01 ld [hl], a ret func_0f17: push af push hl ldh a, [$ff00 + $d7] cp $05 jr z, l_0f39 ldh a, [$ff00 + $d8] cp $05 jr z, l_0f39 ldh a, [$ff00 + $cb] cp $29 jr nz, l_0f39 ld hl, $c060 ld b, $24 ld de, $0f3c l_0f33: ld a, [de] ldi [hl], a inc de dec b jr nz, l_0f33 l_0f39: pop hl pop af ret db $42, $30, $0D, $00, $42, $38, $B2, $00, $42, $40, $0E, $00 db $42, $48, $1C, $00, $42, $58, $0E, $00, $42, $60, $1D, $00 db $42, $68, $B5, $00, $42, $70, $BB, $00, $42, $78, $1D, $00 func_0f60: ld hl, $c060 ld de, $0004 ld b, $09 xor a l_0f69: ld [hl], a add hl, de dec b jr nz, l_0f69 ret func_0f6f: call WAIT_FOR_VBLANK ld hl, $55ac ld bc, $1000 call func_27e4 call Flush_BG1 ld hl, $9800 ld de, $54e4 ld b, $04 call COPY_TILEMAP_FEWER_ROWS ld hl, $9980 ld b, $06 call COPY_TILEMAP_FEWER_ROWS ldh a, [$ff00 + $cb] cp $29 jr nz, l_0fb9 ld hl, $9841 ld [hl], $bd inc l ld [hl], $b2 inc l ld [hl], $2e inc l ld [hl], $be inc l ld [hl], $2e ld hl, $9a01 ld [hl], $b4 inc l ld [hl], $b5 inc l ld [hl], $bb inc l ld [hl], $2e inc l ld [hl], $bc l_0fb9: ldh a, [$ff00 + $ef] and a jr nz, l_0fc1 call func_1085 l_0fc1: ldh a, [$ff00 + $d7] and a jr z, l_100f cp $05 jr nz, l_0fe0 ld hl, $98a5 ld b, $0b ldh a, [$ff00 + $cb] cp $29 ld de, $10f3 jr z, l_0fdb ld de, $10fe l_0fdb: call func_10d8 ld a, $04 l_0fe0: ld c, a ldh a, [$ff00 + $cb] cp $29 ld a, $93 jr nz, l_0feb ld a, $8f l_0feb: ldh [$ff00 + $a0], a ld hl, $99e7 call func_106a ldh a, [$ff00 + $d9] and a jr z, l_100f ld a, $ac ldh [$ff00 + $a0], a ld hl, $99f0 ld c, $01 call func_106a ld hl, $98a6 ld de, $1109 ld b, $09 call func_10d8 l_100f: ldh a, [$ff00 + $d8] and a jr z, l_1052 cp $05 jr nz, l_102e ld hl, $98a5 ld b, $0b ldh a, [$ff00 + $cb] cp $29 ld de, $10fe jr z, l_1029 ld de, $10f3 l_1029: call func_10d8 ld a, $04 l_102e: ld c, a ldh a, [$ff00 + $cb] cp $29 ld a, $8f jr nz, l_1039 ld a, $93 l_1039: ldh [$ff00 + $a0], a ld hl, $9827 call func_106a ldh a, [$ff00 + $da] and a jr z, l_1052 ld a, $ac ldh [$ff00 + $a0], a ld hl, $9830 ld c, $01 call func_106a l_1052: ldh a, [$ff00 + $db] and a jr z, l_1062 ld hl, $98a7 ld de, $10ed ld b, $06 call func_10d8 l_1062: ld a, $d3 ldh [$ff00 + $40], a call CLEAR_OAM_DATA ret func_106a: ldh a, [$ff00 + $a0] push hl ld de, $0020 ld b, $02 l_1072: push hl ldi [hl], a inc a ld [hl], a inc a pop hl add hl, de dec b jr nz, l_1072 pop hl ld de, $0003 add hl, de dec c jr nz, $106a ret func_1085: ld hl, $ffd7 ld de, $ffd8 ldh a, [$ff00 + $d9] and a jr nz, l_10ca ldh a, [$ff00 + $da] and a jr nz, l_10d1 ldh a, [$ff00 + $db] and a jr nz, l_10bb ld a, [hl] cp $04 jr z, l_10b0 ld a, [de] cp $04 ret nz l_10a3: ld a, $05 ld [de], a jr l_10b2 ld a, [de] cp $03 ret nz l_10ac: ld a, $03 jr l_10b5 l_10b0: ld [hl], $05 l_10b2: xor a ldh [$ff00 + $db], a l_10b5: xor a ldh [$ff00 + $d9], a ldh [$ff00 + $da], a ret l_10bb: ld a, [hl] cp $04 jr nz, l_10c6 ldh [$ff00 + $d9], a l_10c2: xor a ldh [$ff00 + $db], a ret l_10c6: ldh [$ff00 + $da], a jr l_10c2 l_10ca: ld a, [hl] cp $05 jr z, l_10b0 jr l_10ac l_10d1: ld a, [de] cp $05 jr z, l_10a3 jr l_10ac func_10d8: push bc push hl l_10da: ld a, [de] ldi [hl], a inc de dec b jr nz, l_10da pop hl ld de, $0020 add hl, de pop bc ld a, $b6 l_10e8: ldi [hl], a dec b jr nz, l_10e8 ret or b or c or d or e or c ld a, $b4 or l cp e ld l, $bc cpl dec l ld l, $3d ld c, $3e cp l or d ld l, $be ld l, $2f dec l ld l, $3d ld c, $3e or l or b ld b, c or l dec a dec e or l cp [hl] or c ld a, $01 ldh [$ff00 + $ff], a ldh a, [rCOUNTDOWN] and a ret nz call CLEAR_OAM_DATA xor a ldh [$ff00 + $ef], a ld b, $27 ld c, $79 call func_113f call Sound_Init ldh a, [$ff00 + $d7] cp $05 jr z, l_113a ldh a, [$ff00 + $d8] cp $05 jr z, l_113a ld a, $01 ldh [$ff00 + $d6], a l_113a: ld a, $16 ldh [rGAME_STATUS], a ret func_113f: ldh a, [$ff00 + $cc] and a jr z, l_1158 xor a ldh [$ff00 + $cc], a ldh a, [$ff00 + $cb] cp $29 ldh a, [$ff00 + $d0] jr nz, l_1160 cp b jr z, l_115a ld a, $02 ldh [rSB_DATA], a ldh [rREQUEST_SERIAL_TRANSFER], a l_1158: pop hl ret l_115a: ld a, c ldh [rSB_DATA], a ldh [rREQUEST_SERIAL_TRANSFER], a ret l_1160: cp c ret z ld a, b ldh [rSB_DATA], a pop hl ret call func_11b2 ld hl, $9ce6 ld de, $141b ld b, $07 call func_1437 ld hl, $9ce7 ld de, $1422 ld b, $07 call func_1437 ld hl, $9d08 ld [hl], $72 inc l ld [hl], $c4 ld hl, $9d28 ld [hl], $b7 inc l ld [hl], $b8 ld de, $2771 ld hl, rBLOCK_VISIBILITY ld c, $03 call func_1776 ld a, $03 call func_2673 ld a, $db ldh [$ff00 + $40], a ld a, $bb ldh [rCOUNTDOWN], a ld a, $27 ldh [rGAME_STATUS], a ld a, $10 ld [$dfe8], a ret func_11b2: call WAIT_FOR_VBLANK ld hl, $55ac ld bc, $1000 call func_27e4 ld hl, $9fff call func_2798 ld hl, $9dc0 ld de, $51c4 ld b, $04 call COPY_TILEMAP_FEWER_ROWS ld hl, $9cec ld de, $1429 ld b, $07 call func_1437 ld hl, $9ced ld de, $1430 ld b, $07 call func_1437 ret ldh a, [rCOUNTDOWN] and a ret nz ld hl, rNEXT_BLOCK_VISIBILITY ld [hl], $00 ld l, $20 ld [hl], $00 ld a, $ff ldh [rCOUNTDOWN], a ld a, $28 ldh [rGAME_STATUS], a ret ldh a, [rCOUNTDOWN] and a jr z, l_1205 call func_13fa ret l_1205: ld a, $29 ldh [rGAME_STATUS], a ld hl, rNEXT_BLOCK_TYPE ld [hl], $35 ld l, $23 ld [hl], $35 ld a, $ff ldh [rCOUNTDOWN], a ld a, $2f call func_1fd7 ret ldh a, [rCOUNTDOWN] and a jr z, l_1225 call func_13fa ret l_1225: ld a, $02 ldh [rGAME_STATUS], a ld hl, $9d08 ld b, $2f call func_19ff ld hl, $9d09 call func_19ff ld hl, $9d28 call func_19ff ld hl, $9d29 call func_19ff ret lbl_MENU_ROCKET_1D:: ldh a, [rCOUNTDOWN] and a jr nz, l_1277 ld a, $0a ldh [rCOUNTDOWN], a ld hl, rBLOCK_Y dec [hl] ld a, [hl] cp $58 jr nz, l_1277 ld hl, rNEXT_BLOCK_VISIBILITY ld [hl], $00 inc l add a, $20 ldi [hl], a ld [hl], $4c inc l ld [hl], $40 ld l, $20 ld [hl], $80 ld a, $03 call func_2673 ld a, $03 ldh [rGAME_STATUS], a ld a, $04 ld [$dff8], a ret l_1277: call func_13fa ret lbl_MENU_ROCKET_1E:: ldh a, [rCOUNTDOWN] and a jr nz, l_129d ld a, $0a ldh [rCOUNTDOWN], a ld hl, rNEXT_BLOCK_Y dec [hl] ld l, $01 dec [hl] ld a, [hl] cp $d0 jr nz, l_129d ld a, $9c ldh [$ff00 + $c9], a ld a, $82 ldh [$ff00 + $ca], a ld a, $2c ldh [rGAME_STATUS], a ret l_129d: ldh a, [rCOUNTDOWN2] and a jr nz, l_12ad ld a, $06 ldh [rCOUNTDOWN2], a ld hl, rNEXT_BLOCK_TYPE ld a, [hl] xor $01 ld [hl], a l_12ad: ld a, $03 call func_2673 ret ldh a, [rCOUNTDOWN] and a ret nz ld a, $06 ldh [rCOUNTDOWN], a ldh a, [$ff00 + $ca] sub a, $82 ld e, a ld d, $00 ld hl, $12f5 add hl, de push hl pop de ldh a, [$ff00 + $c9] ld h, a ldh a, [$ff00 + $ca] ld l, a ld a, [de] call func_19fe push hl ld de, $0020 add hl, de ld b, $b6 call func_19ff pop hl inc hl ld a, $02 ld [$dfe0], a ld a, h ldh [$ff00 + $c9], a ld a, l ldh [$ff00 + $ca], a cp $92 ret nz ld a, $ff ldh [rCOUNTDOWN], a ld a, $2d ldh [rGAME_STATUS], a ret or e cp h dec a cp [hl] cp e or l dec e or d cp l or l dec e ld l, $bc dec a ld c, $3e ldh a, [rCOUNTDOWN] and a ret nz call WAIT_FOR_VBLANK call COPY_IN_GAME_TILES call func_2293 ld a, $93 ldh [$ff00 + $40], a ld a, $05 ldh [rGAME_STATUS], a ret ldh a, [rCOUNTDOWN] and a ret nz ld a, $2e ldh [rGAME_STATUS], a ret call func_11b2 ld de, $2783 ld hl, rBLOCK_VISIBILITY ld c, $03 call func_1776 ldh a, [$ff00 + $f3] ld [rBLOCK_TYPE], a ld a, $03 call func_2673 xor a ldh [$ff00 + $f3], a ld a, $db ldh [$ff00 + $40], a ld a, $bb ldh [rCOUNTDOWN], a ld a, $2f ldh [rGAME_STATUS], a ld a, $10 ld [$dfe8], a ret ldh a, [rCOUNTDOWN] and a ret nz ld hl, rNEXT_BLOCK_VISIBILITY ld [hl], $00 ld l, $20 ld [hl], $00 ld a, $a0 ldh [rCOUNTDOWN], a ld a, $30 ldh [rGAME_STATUS], a ret ldh a, [rCOUNTDOWN] and a jr z, l_1370 call func_13fa ret l_1370: ld a, $31 ldh [rGAME_STATUS], a ld a, $80 ldh [rCOUNTDOWN], a ld a, $2f call func_1fd7 ret ldh a, [rCOUNTDOWN] and a jr nz, l_13b1 ld a, $0a ldh [rCOUNTDOWN], a ld hl, rBLOCK_Y dec [hl] ld a, [hl] cp $6a jr nz, l_13b1 ld hl, rNEXT_BLOCK_VISIBILITY ld [hl], $00 inc l add a, $10 ldi [hl], a ld [hl], $54 inc l ld [hl], $5c ld l, $20 ld [hl], $80 ld a, $03 call func_2673 ld a, $32 ldh [rGAME_STATUS], a ld a, $04 ld [$dff8], a ret l_13b1: call func_13fa ret ldh a, [rCOUNTDOWN] and a jr nz, l_13cf ld a, $0a ldh [rCOUNTDOWN], a ld hl, rNEXT_BLOCK_Y dec [hl] ld l, $01 dec [hl] ld a, [hl] cp $e0 jr nz, l_13cf ld a, $33 ldh [rGAME_STATUS], a ret l_13cf: ldh a, [rCOUNTDOWN2] and a jr nz, l_13df ld a, $06 ldh [rCOUNTDOWN2], a ld hl, rNEXT_BLOCK_TYPE ld a, [hl] xor $01 ld [hl], a l_13df: ld a, $03 call func_2673 ret call WAIT_FOR_VBLANK call COPY_IN_GAME_TILES call Sound_Init call func_2293 ld a, $93 ldh [$ff00 + $40], a ld a, $10 ldh [rGAME_STATUS], a ret func_13fa: ldh a, [rCOUNTDOWN2] and a ret nz ld a, $0a ldh [rCOUNTDOWN2], a ld a, $03 ld [$dff8], a ld b, $02 ld hl, rNEXT_BLOCK_VISIBILITY l_140c: ld a, [hl] xor $80 ld [hl], a ld l, $20 dec b jr nz, l_140c ld a, $03 call func_2673 ret db $C2, $CA, $CA, $CA, $CA, $CA, $CA, $C3, $CB, $58, $48, $48 db $48, $48, $C8, $73, $73, $73, $73, $73, $73, $C9, $74, $74 db $74, $74, $74, $74 func_1437: ld a, [de] ld [hl], a inc de push de ld de, $0020 add hl, de pop de dec b jr nz, $1437 ret ld a, $01 ldh [$ff00 + $ff], a xor a ldh [rSB], a ldh [rSC], a ldh [$ff00 + $0f], a func_144f: call WAIT_FOR_VBLANK call COPY_IN_GAME_TILES ld de, $4cd7 call COPY_TILEMAP call CLEAR_OAM_DATA ld hl, rBLOCK_VISIBILITY ld de, $26cf ld c, $02 call func_1776 ld de, rBLOCK_Y call func_148d ldh a, [$ff00 + $c0] ld e, $12 ld [de], a inc de cp $37 ld a, $1c jr z, l_147d ld a, $1d l_147d: ld [de], a call func_2671 call func_1517 ld a, $d3 ldh [$ff00 + $40], a ld a, $0e ldh [rGAME_STATUS], a ret func_148d: ld a, $01 ld [$dfe0], a func_1492: ldh a, [$ff00 + $c1] push af sub a, $1c add a, a ld c, a ld b, $00 ld hl, $14a8 add hl, bc ldi a, [hl] ld [de], a inc de ld a, [hl] ld [de], a inc de pop af ld [de], a ret ld [hl], b scf ld [hl], b ld [hl], a add a, b scf add a, b ld [hl], a func_14b0: ld de, rBLOCK_VISIBILITY call func_1766 ld hl, $ffc1 ld a, [hl] bit 3, b jp nz, l_1563 bit 0, b jp nz, l_1563 bit 1, b jr nz, l_1509 l_14c8: inc e bit 4, b jr nz, l_14f3 bit 5, b jr nz, l_14fe bit 6, b jr nz, l_14eb bit 7, b jp z, l_155f cp $1e jr nc, l_14e7 add a, $02 l_14e0: ld [hl], a call func_148d call func_1517 l_14e7: call func_2671 ret l_14eb: cp $1e jr c, l_14e7 sub a, $02 jr l_14e0 l_14f3: cp $1d jr z, l_14e7 cp $1f jr z, l_14e7 inc a jr l_14e0 l_14fe: cp $1c jr z, l_14e7 cp $1e jr z, l_14e7 dec a jr l_14e0 l_1509: push af ldh a, [rPLAYERS] and a jr z, l_1512 pop af jr l_14c8 l_1512: pop af ld a, $0e jr l_1572 func_1517: ldh a, [$ff00 + $c1] sub a, $17 cp $08 jr nz, l_1521 ld a, $ff l_1521: ld [$dfe8], a ret ld de, rNEXT_BLOCK_VISIBILITY call func_1766 ld hl, $ffc0 ld a, [hl] bit 3, b jr nz, l_1563 bit 0, b jr nz, l_1577 inc e inc e bit 4, b jr nz, l_154b bit 5, b jr z, l_155f cp $37 jr z, l_155f ld a, $37 ld b, $1c jr l_1553 l_154b: cp $77 jr z, l_155f ld a, $77 ld b, $1d l_1553: ld [hl], a push af ld a, $01 ld [$dfe0], a pop af ld [de], a inc de ld a, b l_155e: ld [de], a l_155f: call func_2671 ret l_1563: ld a, $02 ld [$dfe0], a ldh a, [$ff00 + $c0] cp $37 ld a, $10 jr z, l_1572 ld a, $12 l_1572: ldh [rGAME_STATUS], a xor a jr l_155e l_1577: ld a, $0f jr l_1572 call WAIT_FOR_VBLANK ld de, $4e3f call COPY_TILEMAP call func_18fc call CLEAR_OAM_DATA ld hl, rBLOCK_VISIBILITY ld de, $26db ld c, $01 call func_1776 ld de, rBLOCK_Y ldh a, [rLEVEL_A] ld hl, $1615 call func_174e call func_2671 call func_1795 call func_18ca ld a, $d3 ldh [$ff00 + $40], a ld a, $11 ldh [rGAME_STATUS], a ldh a, [$ff00 + $c7] and a jr nz, l_15ba call func_1517 ret l_15ba: ld a, $15 l_15bc: ldh [rGAME_STATUS], a ret ld de, rBLOCK_VISIBILITY call func_1766 ld hl, $ffc2 ld a, $0a bit 3, b jr nz, l_15bc bit 0, b jr nz, l_15bc ld a, $08 bit 1, b jr nz, l_15bc ld a, [hl] bit 4, b jr nz, l_15f1 bit 5, b jr nz, l_1607 bit 6, b jr nz, l_160d bit 7, b jr z, l_1603 cp $05 jr nc, l_1603 add a, $05 jr l_15f6 l_15f1: cp $09 jr z, l_1603 inc a l_15f6: ld [hl], a ld de, rBLOCK_Y ld hl, $1615 call func_174e call func_1795 l_1603: call func_2671 ret l_1607: and a jr z, l_1603 dec a jr l_15f6 l_160d: cp $05 jr c, l_1603 sub a, $05 jr l_15f6 db $40, $30, $40, $40, $40, $50, $40, $60, $40, $70, $50, $30, db $50, $40, $50, $50, $50, $60, $50, $70 call WAIT_FOR_VBLANK ld de, $4fa7 call COPY_TILEMAP call CLEAR_OAM_DATA ld hl, rBLOCK_VISIBILITY ld de, $26e1 ld c, $02 call func_1776 ld de, rBLOCK_Y ldh a, [$ff00 + $c3] ld hl, $16d2 call func_174e ld de, rNEXT_BLOCK_Y ldh a, [rINITIAL_HEIGHT] ld hl, $1741 call func_174e call func_2671 call func_17af call func_18ca ld a, $d3 ldh [$ff00 + $40], a ld a, $13 ldh [rGAME_STATUS], a ldh a, [$ff00 + $c7] and a jr nz, l_1670 call func_1517 ret l_1670: ld a, $15 l_1672: ldh [rGAME_STATUS], a ret l_1675: ldh [rGAME_STATUS], a xor a ld [de], a ret ld de, rBLOCK_VISIBILITY call func_1766 ld hl, $ffc3 ld a, $0a bit 3, b jr nz, l_1675 ld a, $14 bit 0, b jr nz, l_1675 ld a, $08 bit 1, b jr nz, l_1675 ld a, [hl] bit 4, b jr nz, l_16ae bit 5, b jr nz, l_16c4 bit 6, b jr nz, l_16ca bit 7, b jr z, l_16c0 cp $05 jr nc, l_16c0 add a, $05 jr l_16b3 l_16ae: cp $09 jr z, l_16c0 inc a l_16b3: ld [hl], a ld de, rBLOCK_Y ld hl, $16d2 call func_174e call func_17af l_16c0: call func_2671 ret l_16c4: and a jr z, l_16c0 dec a jr l_16b3 l_16ca: cp $05 jr c, l_16c0 sub a, $05 jr l_16b3 db $40, $18, $40, $28, $40, $38, $40, $48, $40, $58, $50, $18 db $50, $28, $50, $38, $50, $48, $50, $58 l_16e6: ldh [rGAME_STATUS], a xor a ld [de], a ret ld de, rNEXT_BLOCK_VISIBILITY call func_1766 ld hl, $ffc4 ld a, $0a bit 3, b jr nz, l_16e6 bit 0, b jr nz, l_16e6 ld a, $13 bit 1, b jr nz, l_16e6 ld a, [hl] bit 4, b jr nz, l_171d bit 5, b jr nz, l_1733 bit 6, b jr nz, l_1739 bit 7, b jr z, l_172f l_1715: cp $03 l_1717: jr nc, l_172f l_1719: add a, $03 jr l_1722 l_171d: cp $05 jr z, l_172f inc a l_1722: ld [hl], a ld de, rNEXT_BLOCK_Y ld hl, $1741 call func_174e call func_17af l_172f: call func_2671 l_1731: ret l_1733: and a jr z, l_172f dec a jr l_1722 l_1739: cp $03 jr c, l_172f sub a, $03 jr l_1722 ld b, b ld [hl], b ld b, b add a, b ld b, b sub a, b ld d, b ld [hl], b ld d, b add a, b ld d, b sub a, b nop func_174e: push af ld a, $01 ld [$dfe0], a pop af func_1755: push af add a, a ld c, a ld b, $00 add hl, bc ldi a, [hl] ld [de], a inc de ld a, [hl] ld [de], a inc de pop af add a, $20 ld [de], a ret func_1766: ldh a, [rBUTTON_HIT] ld b, a ldh a, [rCOUNTDOWN] and a ret nz ld a, $10 ldh [rCOUNTDOWN], a ld a, [de] xor $80 ld [de], a ret func_1776: push hl ld b, $06 l_1779: ld a, [de] ldi [hl], a inc de dec b jr nz, l_1779 pop hl ld a, $10 add a, l ld l, a dec c jr nz, $1776 ld [hl], $80 ret CLEAR_OAM_DATA:: xor a ld hl, $c000 ld b, $a0 .loop_16: ldi [hl], a dec b jr nz, .loop_16 ret func_1795: call func_18fc ldh a, [rLEVEL_A] ld hl, $d654 ld de, $001b l_17a0: and a jr z, l_17a7 dec a add hl, de jr l_17a0 l_17a7: inc hl inc hl push hl pop de call func_1800 ret func_17af: call func_18fc ldh a, [$ff00 + $c3] ld hl, $d000 ld de, $00a2 l_17ba: and a jr z, l_17c1 dec a add hl, de jr l_17ba l_17c1: ldh a, [rINITIAL_HEIGHT] ld de, $001b l_17c6: and a jr z, l_17cd dec a add hl, de jr l_17c6 l_17cd: inc hl inc hl push hl pop de call func_1800 ret func_17d5: ld b, $03 l_17d7: ld a, [hl] and $f0 jr nz, l_17e7 inc e ldd a, [hl] and $0f jr nz, l_17f1 inc e dec b jr nz, l_17d7 ret l_17e7: ld a, [hl] and $f0 swap a ld [de], a inc e ldd a, [hl] and $0f l_17f1: ld [de], a inc e dec b jr nz, l_17e7 ret func_17f7: ld b, $03 func_17f9: ldd a, [hl] ld [de], a dec de dec b jr nz, $17f9 ret func_1800: ld a, d ldh [$ff00 + $fb], a ld a, e ldh [$ff00 + $fc], a ld c, $03 l_1808: ld hl, $c0a2 push de ld b, $03 l_180e: ld a, [de] sub a, [hl] jr c, l_1822 jr nz, l_1819 dec l dec de dec b jr nz, l_180e l_1819: pop de inc de inc de inc de dec c jr nz, l_1808 jr l_1880 l_1822: pop de ldh a, [$ff00 + $fb] ld d, a ldh a, [$ff00 + $fc] ld e, a push de push bc ld hl, $0006 add hl, de push hl pop de dec hl dec hl dec hl l_1834: dec c jr z, l_183c call func_17f7 jr l_1834 l_183c: ld hl, $c0a2 ld b, $03 l_1841: ldd a, [hl] ld [de], a dec e dec b jr nz, l_1841 pop bc pop de ld a, c ldh [$ff00 + $c8], a ld hl, $0012 add hl, de push hl ld de, $0006 add hl, de push hl pop de pop hl l_1858: dec c jr z, l_1862 ld b, $06 call func_17f9 jr l_1858 l_1862: ld a, $60 ld b, $05 l_1866: ld [de], a dec de dec b jr nz, l_1866 ld a, $0a ld [de], a ld a, d ldh [$ff00 + $c9], a ld a, e ldh [$ff00 + $ca], a xor a ldh [rCLEAR_PROGRESS], a ldh [$ff00 + $c6], a ld a, $01 ld [$dfe8], a ldh [$ff00 + $c7], a l_1880: ld de, $c9ac ldh a, [$ff00 + $fb] ld h, a ldh a, [$ff00 + $fc] ld l, a ld b, $03 l_188b: push hl push de push bc call func_17d5 pop bc pop de ld hl, $0020 add hl, de push hl pop de pop hl push de ld de, $0003 add hl, de pop de dec b jr nz, l_188b dec hl dec hl ld b, $03 ld de, $c9a4 l_18aa: push de ld c, $06 l_18ad: ldi a, [hl] and a jr z, l_18b6 ld [de], a inc de dec c jr nz, l_18ad l_18b6: pop de push hl ld hl, $0020 add hl, de push hl pop de pop hl dec b jr nz, l_18aa call func_2651 ld a, $01 ldh [$ff00 + $e8], a ret func_18ca: ldh a, [$ff00 + $e8] and a ret z ld hl, $99a4 ld de, $c9a4 ld c, $06 l_18d6: push hl l_18d7: ld b, $06 l_18d9: ld a, [de] ldi [hl], a inc e dec b jr nz, l_18d9 inc e inc l inc e inc l dec c jr z, l_18f7 bit 0, c jr nz, l_18d7 pop hl ld de, $0020 add hl, de push hl pop de ld a, $30 add a, d ld d, a jr l_18d6 l_18f7: pop hl func_18f8: xor a ldh [$ff00 + $e8], a ret func_18fc: ld hl, $c9a4 ld de, $0020 ld a, $60 ld c, $03 l_1906: ld b, $0e push hl l_1909: ldi [hl], a dec b jr nz, l_1909 pop hl add hl, de dec c jr nz, l_1906 ret ldh a, [$ff00 + $c8] ld hl, $99e4 ld de, $ffe0 l_191b: dec a jr z, l_1921 add hl, de jr l_191b l_1921: ldh a, [$ff00 + $c6] ld e, a ld d, $00 add hl, de ldh a, [$ff00 + $c9] ld d, a ldh a, [$ff00 + $ca] ld e, a ldh a, [rCOUNTDOWN] and a jr nz, l_1944 ld a, $07 ldh [rCOUNTDOWN], a ldh a, [rCLEAR_PROGRESS] xor $01 ldh [rCLEAR_PROGRESS], a ld a, [de] jr z, l_1941 ld a, $2f l_1941: call func_19fe l_1944: ldh a, [rBUTTON_HIT] ld b, a ldh a, [rBUTTON_DOWN] ld c, a ld a, $17 bit 6, b jr nz, l_1987 bit 6, c jr nz, l_197f bit 7, b jr nz, l_19b0 bit 7, c jr nz, l_19a8 bit 0, b jr nz, l_19cc bit 1, b jp nz, l_19ee bit 3, b ret z l_1968: ld a, [de] call func_19fe call func_1517 xor a ldh [$ff00 + $c7], a ldh a, [$ff00 + $c0] cp $37 ld a, $11 jr z, l_197c ld a, $13 l_197c: ldh [rGAME_STATUS], a ret l_197f: ldh a, [$ff00 + $aa] dec a ldh [$ff00 + $aa], a ret nz ld a, $09 l_1987: ldh [$ff00 + $aa], a ld b, $26 ldh a, [rHARD_MODE] and a jr z, l_1992 ld b, $27 l_1992: ld a, [de] cp b jr nz, l_19a0 ld a, $2e l_1998: inc a l_1999: ld [de], a ld a, $01 ld [$dfe0], a ret l_19a0: cp $2f jr nz, l_1998 ld a, $0a jr l_1999 l_19a8: ldh a, [$ff00 + $aa] dec a ldh [$ff00 + $aa], a ret nz ld a, $09 l_19b0: ldh [$ff00 + $aa], a ld b, $26 ldh a, [rHARD_MODE] and a jr z, l_19bb ld b, $27 l_19bb: ld a, [de] cp $0a jr nz, l_19c5 ld a, $30 l_19c2: dec a jr l_1999 l_19c5: cp $2f jr nz, l_19c2 ld a, b jr l_1999 l_19cc: ld a, [de] call func_19fe ld a, $02 ld [$dfe0], a ldh a, [$ff00 + $c6] inc a cp $06 jr z, l_1968 ldh [$ff00 + $c6], a inc de ld a, [de] cp $60 jr nz, l_19e7 ld a, $0a ld [de], a l_19e7: ld a, d ldh [$ff00 + $c9], a ld a, e ldh [$ff00 + $ca], a ret l_19ee: ldh a, [$ff00 + $c6] and a ret z ld a, [de] call func_19fe ldh a, [$ff00 + $c6] dec a ldh [$ff00 + $c6], a dec de jr l_19e7 func_19fe: ld b, a func_19ff: ldh a, [$ff00 + $41] and $03 jr nz, $19ff ld [hl], b ret call WAIT_FOR_VBLANK xor a ld [rNEXT_BLOCK_VISIBILITY], a ldh [rBLOCK_STATUS], a ldh [rCLEAR_PROGRESS], a ldh [$ff00 + $9b], a ldh [$ff00 + $fb], a ldh [rLINES_CLEARED2], a ld a, $2f call func_1fd7 call func_1ff2 call func_2651 xor a ldh [rROW_UPDATE], a call CLEAR_OAM_DATA ldh a, [$ff00 + $c0] ld de, $3ff7 ld hl, $ffc3 cp $77 ld a, $50 jr z, l_1a3f ld a, $f1 ld hl, $ffc2 ld de, $3e8f l_1a3f: push de ldh [$ff00 + $e6], a ld a, [hl] ldh [$ff00 + $a9], a call COPY_TILEMAP pop de ld hl, $9c00 call COPY_TILEMAP_B ld de, $2839 ld hl, $9c63 ld c, $0a call func_1f7d ld h, $98 ldh a, [$ff00 + $e6] ld l, a ldh a, [$ff00 + $a9] ld [hl], a ld h, $9c ld [hl], a ldh a, [rHARD_MODE] and a jr z, l_1a71 inc hl ld [hl], $27 ld h, $98 ld [hl], $27 l_1a71: ld hl, rBLOCK_VISIBILITY ld de, $26bf call func_26b6 ld hl, rNEXT_BLOCK_VISIBILITY ld de, $26c7 call func_26b6 ld hl, $9951 ldh a, [$ff00 + $c0] cp $77 ld a, $25 jr z, l_1a8f xor a l_1a8f: ldh [rLINES_CLEARED1], a and $0f ldd [hl], a jr z, l_1a98 ld [hl], $02 l_1a98: call func_1ae8 ld a, [rHIDE_NEXT_BLOCK] and a jr z, l_1aa6 ld a, $80 ld [rNEXT_BLOCK_VISIBILITY], a l_1aa6: call func_2007 call func_2007 call func_2007 call func_2683 xor a ldh [$ff00 + $a0], a ldh a, [rGAME_TYPE] cp GAME_TYPE_B jr nz, l_1ae0 ld a, $34 ldh [rGRAVITY], a ldh a, [rINITIAL_HEIGHT] ld hl, $98b0 ld [hl], a ld h, $9c ld [hl], a and a jr z, l_1ae0 ld b, a ldh a, [rDEMO_GAME] and a jr z, l_1ad6 call func_1b1b jr l_1ae0 l_1ad6: ld a, b ld de, $ffc0 ld hl, $9a02 call func_1b68 l_1ae0: ld a, $d3 ldh [$ff00 + $40], a xor a ldh [rGAME_STATUS], a ret func_1ae8: ldh a, [$ff00 + $a9] ld e, a ldh a, [rHARD_MODE] and a jr z, l_1afa ld a, $0a add a, e cp $15 jr c, l_1af9 ld a, $14 l_1af9: ld e, a l_1afa: ld hl, $1b06 ld d, $00 add hl, de ld a, [hl] ldh [rGRAVITY], a ldh [$ff00 + $9a], a ret db $34, $30, $2C, $28, $24, $20, $1B, $15, $10, $0A, $09, $08 db $07, $06, $05, $05, $04, $04, $03, $03, $02 func_1b1b: ld hl, $99c2 ld de, $1b40 ld c, $04 l_1b23: ld b, $0a push hl l_1b26: ld a, [de] ld [hl], a l_1b28: push hl ld a, h add a, $30 ld h, a ld a, [de] ld [hl], a l_1b2f: pop hl inc l inc de dec b jr nz, l_1b26 l_1b35: pop hl push de ld de, $0020 add hl, de pop de dec c jr nz, l_1b23 ret db $85, $2F, $82, $86, $83, $2F, $2F, $80, $82, $85, $2F, $82 db $84, $82, $83, $2F, $83, $2F, $87, $2F, $2F, $85, $2F, $83 db $2F, $86, $82, $80, $81, $2F, $83, $2F, $86, $83, $2F, $85 db $2F, $85, $2F, $2F func_1b68: ld b, a l_1b69: dec b jr z, l_1b6f add hl, de jr l_1b69 l_1b6f: ldh a, [$ff00 + $04] ld b, a l_1b72: ld a, $80 l_1b74: dec b jr z, l_1b7f cp $80 jr nz, l_1b72 ld a, $2f jr l_1b74 l_1b7f: cp $2f jr z, l_1b8b ldh a, [$ff00 + $04] and $07 or $80 jr l_1b8d l_1b8b: ldh [$ff00 + $a0], a l_1b8d: push af ld a, l and $0f cp $0b jr nz, l_1ba0 ldh a, [$ff00 + $a0] cp $2f jr z, l_1ba0 pop af ld a, $2f jr l_1ba1 l_1ba0: pop af l_1ba1: ld [hl], a push hl push af ldh a, [rPLAYERS] and a jr nz, l_1bad ld de, $3000 add hl, de l_1bad: pop af ld [hl], a pop hl inc hl ld a, l and $0f cp $0c jr nz, l_1b6f xor a ldh [$ff00 + $a0], a ld a, h and $0f cp $0a jr z, l_1bc8 l_1bc2: ld de, $0016 add hl, de jr l_1b6f l_1bc8: ld a, l cp $2c jr nz, l_1bc2 ret SECTION "MENU_IN_GAME", ROM0 [$1BCE] lbl_MENU_IN_GAME:: call START_SELECT_HANDLER ; check if start or select was pressed ldh a, [rPAUSE_MENU] and a ret nz ; return if in pause menu call CHECK_DEMO_GAME_FINISHED call SIMULATE_BUTTON_PRESSES call USELESS_FUNCTION ; does nothing b/c depending on unused variable call func_24bb call func_209c call func_213e call func_25a1 call func_224d call func_1f91 call RESTORE_BUTTON_PRESSES ret toggle_next_block_hidden: bit 2, a ret z ld a, [rHIDE_NEXT_BLOCK] xor $01 ld [rHIDE_NEXT_BLOCK], a jr z, l_1c0a ld a, $80 l_1c03: ld [rNEXT_BLOCK_VISIBILITY], a call func_2696 ret l_1c0a: xor a jr l_1c03 START_SELECT_HANDLER:: ldh a, [rBUTTON_DOWN] and $0f cp $0f jp z, Screen_Setup ; if buttons A, B, Select and Start are all pressed, reset game ldh a, [rDEMO_GAME] and a ret nz ; return now, if it is only a demo game ldh a, [rBUTTON_HIT] bit BTN_START, a jr z, toggle_next_block_hidden ; if Start is NOT pressed, check if Select is pressed ; start button was pressed: ldh a, [rPLAYERS] and a jr nz, l_1c6a ; jump if 2 player mode ld hl, rLCDC ldh a, [rPAUSE_MENU] xor $01 ; toggle start menu flag ldh [rPAUSE_MENU], a jr z, .unpausing ; jump if now unpausing ; pausing now: set 3, [hl] ; select second background tile map at $9c00 (already contains the pause menu text) ld a, $01 ld [rPAUSED], a ; set "just paused" flag ld hl, $994e ; start of line tiles on BG tile map 1 ld de, $9d4e ; start of line tiles on BG tile map 2 ld b, $04 ; length of line tiles (4 numbers max, 9999 is highest line number) .loop_18: ldh a, [rLCDC_STAT] and $03 jr nz, .loop_18 ; Loop until H-Blank reached (bits 0 and 1 of rLCDC_STAT not set) ldi a, [hl] ld [de], a ; Copy score tile from BG tile map 1 to BG tile map 2 inc de dec b jr nz, .loop_18 ; loop while there are still tiles left (and wait for H-Blank again) ld a, $80 .set_next_block_display: ld [rHIDE_NEXT_BLOCK_DISPLAY], a ; set the actual visibility of the next block display .l_1c50: ld [rBLOCK_VISIBILITY], a call func_2683 call func_2696 ret .unpausing: res 3, [hl] ; select first background tile map at $9800 (still contains the fallen blocks) ld a, $02 ld [rPAUSED], a ; set the "just unpaused" flag ld a, [rHIDE_NEXT_BLOCK] and a jr z, .set_next_block_display ; jump if next block was not hidden before pausing xor a jr .l_1c50 ; jump if next block was hidden before pausing l_1c6a: ldh a, [$ff00 + $cb] cp $29 ret nz ldh a, [$ff00 + $ab] xor $01 ldh [$ff00 + $ab], a jr z, l_1caa ld a, $01 ld [rPAUSED], a ldh a, [$ff00 + $d0] ldh [$ff00 + $f2], a ldh a, [rSB_DATA] ldh [$ff00 + $f1], a call func_1ccb ret func_1c88: ldh a, [$ff00 + $ab] and a ret z ldh a, [$ff00 + $cc] jr z, l_1cc9 xor a ldh [$ff00 + $cc], a ldh a, [$ff00 + $cb] cp $29 jr nz, l_1ca1 ld a, $94 ldh [rSB_DATA], a ldh [rREQUEST_SERIAL_TRANSFER], a pop hl ret l_1ca1: xor a ldh [rSB_DATA], a ldh a, [$ff00 + $d0] cp $94 jr z, l_1cc9 l_1caa: ldh a, [$ff00 + $f2] ldh [$ff00 + $d0], a ldh a, [$ff00 + $f1] ldh [rSB_DATA], a ld a, $02 ld [rPAUSED], a xor a ldh [$ff00 + $ab], a ld hl, $98ee ld b, $8e ld c, $05 l_1cc1: call func_19ff inc l dec c jr nz, l_1cc1 ret l_1cc9: pop hl ret func_1ccb: ld hl, $98ee ld c, $05 ld de, $1cdd l_1cd3: ld a, [de] call func_19fe inc de inc l dec c jr nz, l_1cd3 ret add hl, de ld a, [bc] ld e, $1c db $0E lbl_MENU_GAME_OVER_INIT:: ld a, $80 ld [rBLOCK_VISIBILITY], a ld [rNEXT_BLOCK_VISIBILITY], a call func_2683 call func_2696 xor a ldh [rBLOCK_STATUS], a ldh [rCLEAR_PROGRESS], a call func_2293 ld a, $87 call func_1fd7 ld a, $46 ldh [rCOUNTDOWN], a ld a, $0d ldh [rGAME_STATUS], a ret lbl_MENU_GAME_OVER:: ldh a, [rBUTTON_HIT] bit 0, a jr nz, l_1d0f bit 3, a ret z l_1d0f: xor a ldh [rROW_UPDATE], a ldh a, [rPLAYERS] and a ld a, $16 jr nz, l_1d23 ldh a, [$ff00 + $c0] cp $37 ld a, $10 jr z, l_1d23 ld a, $12 l_1d23: ldh [rGAME_STATUS], a ret lbl_MENU_TYPE_B_WON:: ldh a, [rCOUNTDOWN] and a ret nz ld hl, $c802 ld de, $2889 call func_2804 ldh a, [$ff00 + $c3] and a jr z, l_1d66 ld de, $0040 ld hl, $c827 call func_1d83 ld de, $0100 ld hl, $c887 call func_1d83 ld de, $0300 ld hl, $c8e7 call func_1d83 ld de, $1200 ld hl, $c947 call func_1d83 ld hl, $c0a0 ld b, $03 xor a l_1d62: ldi [hl], a dec b jr nz, l_1d62 l_1d66: ld a, $80 ldh [rCOUNTDOWN], a ld a, $80 ld [rBLOCK_VISIBILITY], a ld [rNEXT_BLOCK_VISIBILITY], a call func_2683 call func_2696 call Sound_Init ld a, $25 ldh [rLINES_CLEARED1], a ld a, $0b ldh [rGAME_STATUS], a ret func_1d83: push hl ld hl, $c0a0 ld b, $03 xor a l_1d8b: ldi [hl], a dec b jr nz, l_1d8b ldh a, [$ff00 + $c3] ld b, a inc b l_1d93: ld hl, $c0a0 call func_0166 dec b jr nz, l_1d93 pop hl ld b, $03 ld de, $c0a2 l_1da2: ld a, [de] and $f0 jr nz, l_1db1 ld a, [de] and $0f jr nz, l_1db7 dec e dec b jr nz, l_1da2 ret l_1db1: ld a, [de] and $f0 swap a ldi [hl], a l_1db7: ld a, [de] and $0f ldi [hl], a dec e dec b jr nz, l_1db1 ret ldh a, [rCOUNTDOWN] and a ret nz ld a, $01 ld [$c0c6], a ld a, $05 ldh [rCOUNTDOWN], a ret ldh a, [rCOUNTDOWN] and a ret nz ld hl, $c802 ld de, $510f call func_2804 call CLEAR_OAM_DATA ld hl, rBLOCK_VISIBILITY ld de, $2735 ld c, $0a call func_1776 ld a, $10 ld hl, $c266 ld [hl], a ld l, $76 ld [hl], a ld hl, $c20e ld de, $1e31 ld b, $0a l_1dfa: ld a, [de] ldi [hl], a ldi [hl], a inc de push de ld de, $000e add hl, de pop de dec b jr nz, l_1dfa ldh a, [rINITIAL_HEIGHT] cp $05 jr nz, l_1e0f ld a, $09 l_1e0f: inc a ld b, a ld hl, rBLOCK_VISIBILITY ld de, $0010 xor a l_1e18: ld [hl], a add hl, de dec b jr nz, l_1e18 ldh a, [rINITIAL_HEIGHT] add a, $0a ld [$dfe8], a ld a, $25 ldh [rLINES_CLEARED1], a ld a, $1b ldh [rCOUNTDOWN], a ld a, $23 ldh [rGAME_STATUS], a ret inc e rrca ld e, $32 jr nz, l_1e4f ld h, $1d jr z, l_1e66 l_1e3b: ld a, $0a call func_2673 ret ldh a, [rCOUNTDOWN] cp $14 jr z, l_1e3b and a ret nz ld hl, $c20e ld de, $0010 l_1e4f: ld b, $0a l_1e51: push hl dec [hl] jr nz, l_1e6a inc l ldd a, [hl] ld [hl], a ld a, l and $f0 or $03 ld l, a ld a, [hl] xor $01 ld [hl], a cp $50 jr z, l_1e89 l_1e66: cp $51 jr z, l_1e8f l_1e6a: pop hl add hl, de dec b jr nz, l_1e51 ld a, $0a call func_2673 ld a, [$dfe9] and a ret nz call CLEAR_OAM_DATA ldh a, [rINITIAL_HEIGHT] cp $05 ld a, $26 jr z, l_1e86 ld a, $05 l_1e86: ldh [rGAME_STATUS], a ret l_1e89: dec l dec l ld [hl], $67 jr l_1e6a l_1e8f: dec l dec l ld [hl], $5d jr l_1e6a l_1e95: xor a ld [$c0c6], a ld de, $c0c0 ld a, [de] ld l, a inc de ld a, [de] ld h, a or l jp z, l_263a dec hl ld a, h ld [de], a dec de ld a, l ld [de], a ld de, $0001 ld hl, $c0c2 push de call func_0166 ld de, $c0c4 ld hl, $99a5 call func_2a36 xor a ldh [rCOUNTDOWN], a pop de ld hl, $c0a0 call func_0166 ld de, $c0a2 ld hl, $9a25 call func_2a3a ld a, $02 ld [$dfe0], a ret func_1ed7: ld a, [$c0c6] and a ret z ld a, [$c0c5] cp $04 jr z, l_1e95 ld de, $0040 ld bc, $9823 ld hl, $c0ac and a jr z, l_1f12 ld de, $0100 ld bc, $9883 ld hl, $c0b1 cp $01 jr z, l_1f12 ld de, $0300 ld bc, $98e3 ld hl, $c0b6 cp $02 jr z, l_1f12 ld de, $1200 ld bc, $9943 ld hl, $c0bb l_1f12: call func_25d9 ret ldh a, [rBUTTON_HIT] and a ret z ld a, $02 ldh [rGAME_STATUS], a ret ldh a, [rCOUNTDOWN] and a ret nz ld a, $04 ld [$dfe8], a ldh a, [rPLAYERS] and a jr z, l_1f37 ld a, $3f ldh [rCOUNTDOWN], a ld a, $1b ldh [$ff00 + $cc], a jr l_1f6e l_1f37: ld a, $2f call func_1fd7 ld hl, $c843 ld de, $293e ld c, $07 call func_1f7d ld hl, $c983 ld de, $2976 ld c, $06 call func_1f7d ldh a, [$ff00 + $c0] cp $37 jr nz, l_1f6c ld hl, $c0a2 ld a, [hl] ld b, $58 cp $20 jr nc, l_1f71 inc b cp $15 jr nc, l_1f71 inc b cp $10 jr nc, l_1f71 l_1f6c: ld a, $04 l_1f6e: ldh [rGAME_STATUS], a ret l_1f71: ld a, b ldh [$ff00 + $f3], a ld a, $90 ldh [rCOUNTDOWN], a ld a, $34 ldh [rGAME_STATUS], a ret func_1f7d: ld b, $08 push hl l_1f80: ld a, [de] ldi [hl], a inc de dec b jr nz, l_1f80 pop hl push de ld de, $0020 add hl, de pop de dec c jr nz, $1f7d ret func_1f91: ldh a, [$ff00 + $c0] cp $37 ret nz ldh a, [rGAME_STATUS] and a ret nz ldh a, [rROW_UPDATE] cp $05 ret nz ld hl, $c0ac ld bc, $0005 ld a, [hl] ld de, $0040 and a jr nz, l_1fc3 add hl, bc ld a, [hl] ld de, $0100 and a jr nz, l_1fc3 add hl, bc ld a, [hl] ld de, $0300 and a jr nz, l_1fc3 add hl, bc ld de, $1200 ld a, [hl] and a ret z l_1fc3: ld [hl], $00 ldh a, [$ff00 + $a9] ld b, a inc b l_1fc9: push bc push de ld hl, $c0a0 call func_0166 pop de pop bc dec b jr nz, l_1fc9 ret func_1fd7: push af ld a, $02 ldh [rROW_UPDATE], a pop af func_1fdd: ld hl, $c802 ld c, $12 ld de, $0020 l_1fe5: push hl ld b, $0a l_1fe8: ldi [hl], a dec b jr nz, l_1fe8 pop hl add hl, de dec c jr nz, l_1fe5 ret func_1ff2: ld hl, $cbc2 ld de, $0016 ld c, $02 ld a, $2f l_1ffc: ld b, $0a l_1ffe: ldi [hl], a dec b jr nz, l_1ffe add hl, de dec c jr nz, l_1ffc ret func_2007: ld hl, rBLOCK_VISIBILITY ld [hl], $00 inc l ld [hl], $18 inc l ld [hl], $3f inc l ld a, [rNEXT_BLOCK_TYPE] ld [hl], a and $fc ld c, a ldh a, [rDEMO_GAME] and a jr nz, l_2024 ldh a, [rPLAYERS] and a jr z, l_2041 l_2024: ld h, $c3 ldh a, [rDEMO_STATUS] ld l, a ld e, [hl] inc hl ld a, h cp $c4 jr nz, l_2033 ld hl, $c300 l_2033: ld a, l ldh [rDEMO_STATUS], a ldh a, [$ff00 + $d3] and a jr z, l_2065 or $80 ldh [$ff00 + $d3], a jr l_2065 l_2041: ld h, $03 l_2043: ldh a, [rDIV] ld b, a l_2046: xor a l_2047: dec b jr z, l_2054 inc a inc a inc a inc a cp $1c jr z, l_2046 jr l_2047 l_2054: ld d, a ldh a, [$ff00 + $ae] ld e, a dec h jr z, l_2062 or d or c and $fc cp c jr z, l_2043 l_2062: ld a, d ldh [$ff00 + $ae], a l_2065: ld a, e ld [rNEXT_BLOCK_TYPE], a call func_2696 ldh a, [$ff00 + $9a] ldh [rGRAVITY], a ret l_2071: ld a, [$c0c7] and a jr z, l_2083 ldh a, [rBUTTON_HIT] and $b0 cp $80 jr nz, l_20a4 xor a ld [$c0c7], a l_2083: ldh a, [rCOUNTDOWN2] and a jr nz, l_20b1 ldh a, [rBLOCK_STATUS] and a jr nz, l_20b1 ldh a, [rROW_UPDATE] and a jr nz, l_20b1 ld a, $03 ldh [$ff00 + $a7], a ld hl, $ffe5 inc [hl] jr l_20c2 func_209c: ldh a, [rBUTTON_DOWN] and $b0 cp $80 jr z, l_2071 l_20a4: ld hl, $ffe5 ld [hl], $00 ldh a, [rGRAVITY] and a jr z, l_20b5 dec a ldh [rGRAVITY], a l_20b1: call func_2683 ret l_20b5: ldh a, [rBLOCK_STATUS] cp $03 ret z ldh a, [rROW_UPDATE] and a ret nz ldh a, [$ff00 + $9a] ldh [rGRAVITY], a l_20c2: ld hl, rBLOCK_Y ld a, [hl] ldh [$ff00 + $a0], a add a, $08 ld [hl], a call func_2683 call func_2573 and a ret z ldh a, [$ff00 + $a0] ld hl, rBLOCK_Y ld [hl], a call func_2683 ld a, $01 ldh [rBLOCK_STATUS], a ld [$c0c7], a ldh a, [$ff00 + $e5] and a jr z, l_2103 ld c, a ldh a, [$ff00 + $c0] cp $37 jr z, l_2126 ld de, $c0c0 ld a, [de] ld l, a inc de ld a, [de] ld h, a ld b, $00 dec c add hl, bc ld a, h ld [de], a ld a, l dec de ld [de], a l_2100: xor a ldh [$ff00 + $e5], a l_2103: ld a, [rBLOCK_Y] cp $18 ret nz ld a, [rBLOCK_X] cp $3f ret nz ld hl, $fffb ld a, [hl] cp $01 jr nz, l_2124 call Sound_Init ld a, $01 ldh [rGAME_STATUS], a ld a, $02 ld [$dff0], a ret l_2124: inc [hl] ret l_2126: xor a l_2127: dec c jr z, l_212e inc a daa jr l_2127 l_212e: ld e, a ld d, $00 ld hl, $c0a0 call func_0166 ld a, $01 ld [$c0ce], a jr l_2100 func_213e: ldh a, [rBLOCK_STATUS] cp $02 ret nz ld a, $02 ld [$dff8], a xor a ldh [$ff00 + $a0], a ld de, rLINE_CLEAR_START ld hl, $c842 ld b, $10 l_2153: ld c, $0a push hl l_2156: ldi a, [hl] cp $2f jp z, l_21d8 dec c jr nz, l_2156 pop hl ld a, h ld [de], a inc de ld a, l ld [de], a inc de ldh a, [$ff00 + $a0] inc a ldh [$ff00 + $a0], a l_216b: push de ld de, $0020 add hl, de pop de dec b jr nz, l_2153 ld a, $03 ldh [rBLOCK_STATUS], a dec a ldh [rCOUNTDOWN], a ldh a, [$ff00 + $a0] and a ret z ld b, a ld hl, $ff9e ldh a, [$ff00 + $c0] cp $77 jr z, l_219b ld a, b add a, [hl] daa ldi [hl], a ld a, $00 adc a, [hl] daa ld [hl], a jr nc, l_21aa ld [hl], $99 dec hl ld [hl], $99 jr l_21aa l_219b: ld a, [hl] or a sub a, b jr z, l_21db jr c, l_21db daa ld [hl], a and $f0 cp $90 jr z, l_21db l_21aa: ld a, b ld c, $06 ld hl, $c0ac ld b, $00 cp $01 jr z, l_21cf ld hl, $c0b1 ld b, $01 cp $02 jr z, l_21cf ld hl, $c0b6 ld b, $02 cp $03 jr z, l_21cf ld hl, $c0bb ld b, $04 ld c, $07 l_21cf: inc [hl] ld a, b ldh [$ff00 + $dc], a ld a, c ld [$dfe0], a ret l_21d8: pop hl jr l_216b l_21db: xor a ldh [rLINES_CLEARED1], a jr l_21aa ; When rows are completed (and RAM values $c0a3 to $c0aa are set to indicate where) ; - Between every state change a countdown of 10 draw cycles (~ 0.15 secs) is run. ; - Function kicks off with rBLOCK_STATUS set to 3 ; - rCLEAR_PROGRESS starts with 0 and is increased by 1 every run, until 7 ; - on odd numbers the original blocks are displayed, ; - on even numbers dark blocks replace them ; - on 6, blocks are replaced by white blocks ; - when it reaches 7, rBLOCK_STATUS and rCLEAR_PROGRESS are set to 0, rROW_UPDATE is set to 1 ; - Countdown is set to 13 clear_row_animation:: ldh a, [rBLOCK_STATUS] cp $03 ret nz ; Return if not right at end of block placement handling ldh a, [rCOUNTDOWN] and a ret nz ; Return if there is a countdown running ld de, rLINE_CLEAR_START ldh a, [rCLEAR_PROGRESS] bit 0, a ; Check if lowest bit of rCLEAR_PROGRESS is set jr nz, .unfill_block_rows ; Jump if rCLEAR_PROGRESS = 1,3,5 or 7 ld a, [de] and a jr z, .nothing_to_clear ; Jump if line is clear ; At RAM addresses $c0a3 to $c0aa lie the VRAM starting map addresses for the ; to be removed block lines. (The higher byte needs to be reduced by $30 first) ; i.e.: The second to last line is to be cleared, the first block on that row has ; the map address of $9A02. ; It is therefore saved at $c0a3 as $ca02. .fill_block_rows: sub a, $30 ld h, a ; Get the first block's address' high byte inc de ld a, [de] ld l, a ; Get the first block's address' low byte ldh a, [rCLEAR_PROGRESS] cp $06 ld a, $8c jr nz, .dark_blocks ; if the clearing progress is in state 6 (= almost done) ld a, $2f ; fill line with white blocks (tile 2f) .dark_blocks: ; otherwise use dark blocks (tile 8c) ld c, $0a ; 10 = width of tetris block line .loop_10: ldi [hl], a ; fill whole line of tile map with chosen block dec c jr nz, .loop_10 inc de ld a, [de] and a jr nz, .fill_block_rows ; check if another line needs to be cleared, then loop .increase_clear_progress: ldh a, [rCLEAR_PROGRESS] inc a ldh [rCLEAR_PROGRESS], a ; go to next clearing state (different block filling) cp $07 jr z, .fill_state_7 ld a, $0a ldh [rCOUNTDOWN], a ret .fill_state_7: xor a ldh [rCLEAR_PROGRESS], a ld a, $0d ldh [rCOUNTDOWN], a ld a, $01 ldh [rROW_UPDATE], a .clear_block_status: xor a ldh [rBLOCK_STATUS], a ret .unfill_block_rows: ld a, [de] ; ([de] still points to the first block of the first line to be removed) ld h, a sub a, $30 ld c, a ; set bc to the correct RAM location (where all tiles are saved) inc de ld a, [de] ld l, a ; set hl to the correct VRAM location (where the displayed tilemap is saved) ld b, $0a ; 10 = number of rows .loop_11: ld a, [hl] push hl ld h, c ld [hl], a ; move all ten tiles from RAM to VRAM pop hl inc hl dec b jr nz, .loop_11 inc de ld a, [de] and a jr nz, .unfill_block_rows ; check if another line needs to be restored, then loop jr .increase_clear_progress .nothing_to_clear: call func_2007 jr .clear_block_status func_224d: ldh a, [rCOUNTDOWN] and a ret nz ldh a, [rROW_UPDATE] cp $01 ret nz ld de, rLINE_CLEAR_START ld a, [de] l_225a: ld h, a inc de ld a, [de] ld l, a push de push hl ld bc, $ffe0 add hl, bc pop de l_2265: push hl ld b, $0a l_2268: ldi a, [hl] ld [de], a inc de dec b jr nz, l_2268 pop hl push hl pop de ld bc, $ffe0 add hl, bc ld a, h cp $c7 jr nz, l_2265 pop de inc de ld a, [de] and a jr nz, l_225a ld hl, $c802 ld a, $2f ld b, $0a l_2287: ldi [hl], a dec b jr nz, l_2287 call func_2293 ld a, $02 ldh [rROW_UPDATE], a ret func_2293: ld hl, rLINE_CLEAR_START xor a ld b, $09 l_2299: ldi [hl], a dec b jr nz, l_2299 ret func_229e: ldh a, [rROW_UPDATE] cp $02 ret nz ld hl, $9a22 ld de, $ca22 call COPY_ROW ret func_22ad: ldh a, [rROW_UPDATE] cp $03 ret nz ld hl, $9a02 ld de, $ca02 call COPY_ROW ret func_22bc: ldh a, [rROW_UPDATE] cp $04 ret nz ld hl, $99e2 ld de, $c9e2 call COPY_ROW ret func_22cb: ldh a, [rROW_UPDATE] cp $05 ret nz ld hl, $99c2 ld de, $c9c2 call COPY_ROW ret func_22da: ldh a, [rROW_UPDATE] cp $06 ret nz ld hl, $99a2 ld de, $c9a2 call COPY_ROW ret func_22e9: ldh a, [rROW_UPDATE] cp $07 ret nz ld hl, $9982 ld de, $c982 call COPY_ROW ret func_22f8: ldh a, [rROW_UPDATE] cp $08 ret nz ld hl, $9962 ld de, $c962 call COPY_ROW ldh a, [rPLAYERS] and a ldh a, [rGAME_STATUS] jr nz, l_2315 and a ret nz l_230f: ld a, $01 ld [$dff8], a ret l_2315: cp $1a ret nz ldh a, [$ff00 + $d4] and a jr z, l_230f ld a, $05 ld [$dfe0], a ret func_2323: ldh a, [rROW_UPDATE] cp $09 ret nz ld hl, $9942 ld de, $c942 call COPY_ROW ret func_2332: ldh a, [rROW_UPDATE] cp $0a ret nz ld hl, $9922 ld de, $c922 call COPY_ROW ret func_2341: ldh a, [rROW_UPDATE] cp $0b ret nz ld hl, $9902 ld de, $c902 call COPY_ROW ret func_2350: ldh a, [rROW_UPDATE] cp $0c ret nz ld hl, $98e2 ld de, $c8e2 call COPY_ROW ret func_235f: ldh a, [rROW_UPDATE] cp $0d ret nz ld hl, $98c2 ld de, $c8c2 call COPY_ROW ret func_236e: ldh a, [rROW_UPDATE] cp $0e ret nz ld hl, $98a2 ld de, $c8a2 call COPY_ROW ret func_237d: ldh a, [rROW_UPDATE] cp $0f ret nz ld hl, $9882 ld de, $c882 call COPY_ROW ret func_238c: ldh a, [rROW_UPDATE] cp $10 ret nz ld hl, $9862 ld de, $c862 call COPY_ROW call func_244b ret func_239e: ldh a, [rROW_UPDATE] cp $11 ret nz ld hl, $9842 ld de, $c842 call COPY_ROW ld hl, $9c6d call func_243b ld a, $01 ldh [$ff00 + $e0], a ret func_23b7: ldh a, [rROW_UPDATE] cp $12 ret nz ; Return if not row 12 is to be copied ld hl, $9822 ld de, $c822 call COPY_ROW ld hl, $986d call func_243b ret func_23cc: ldh a, [rROW_UPDATE] cp $13 ret nz ld [$c0c7], a ld hl, $9802 ld de, $c802 call COPY_ROW xor a ldh [rROW_UPDATE], a ldh a, [rPLAYERS] and a ldh a, [rGAME_STATUS] jr nz, l_242f and a ret nz l_23e9: ld hl, $994e ld de, $ff9f ld c, $02 ldh a, [rGAME_TYPE] cp GAME_TYPE_A jr z, l_23ff ld hl, $9950 ld de, $ff9e ld c, $01 l_23ff: call func_2a3c ldh a, [rGAME_TYPE] cp GAME_TYPE_A jr z, l_242b ldh a, [rLINES_CLEARED1] and a jr nz, l_242b ld a, $64 ldh [rCOUNTDOWN], a ld a, $02 ld [$dfe8], a ldh a, [rPLAYERS] and a jr z, l_241e ldh [$ff00 + $d5], a ret l_241e: ldh a, [$ff00 + $c3] cp $09 ld a, $05 jr nz, l_2428 ld a, $22 l_2428: ldh [rGAME_STATUS], a ret l_242b: call func_2007 ret l_242f: cp $1a ret nz ldh a, [$ff00 + $d4] and a jr z, l_23e9 xor a ldh [$ff00 + $d4], a ret func_243b: ldh a, [rGAME_STATUS] and a ret nz ; return if not in-game ldh a, [rGAME_TYPE] cp GAME_TYPE_A ret nz ; return if type B game ld de, $c0a2 call func_2a36 ret func_244b: ldh a, [rGAME_STATUS] and a ret nz ldh a, [$ff00 + $c0] cp $37 ret nz ld hl, $ffa9 ld a, [hl] cp $14 ret z call func_249d ldh a, [rLINES_CLEARED2] ld d, a and $f0 ret nz ld a, d and $0f swap a ld d, a ldh a, [rLINES_CLEARED1] and $f0 swap a or d cp b ret c ret z inc [hl] call func_249d and $0f ld c, a ld hl, $98f1 l_247e: ld [hl], c ld h, $9c ld [hl], c ld a, b and $f0 jr z, l_2494 swap a ld c, a ld a, l cp $f0 jr z, l_2494 ld hl, $98f0 jr l_247e l_2494: ld a, $08 ld [$dfe0], a call func_1ae8 ret func_249d: ld a, [hl] ld b, a and a ret z xor a l_24a2: or a inc a daa dec b jr z, l_24aa jr l_24a2 l_24aa: ld b, a ret COPY_ROW:: ld b, $0a .loop_17: ld a, [de] ld [hl], a inc l inc e dec b jr nz, .loop_17 ldh a, [rROW_UPDATE] inc a ldh [rROW_UPDATE], a ret func_24bb: ld hl, rBLOCK_VISIBILITY ld a, [hl] cp $80 ret z ; return if there is no falling block (visible) ld l, $03 ld a, [hl] ; = rBLOCK_TYPE ldh [$ff00 + $a0], a ; store current block type ldh a, [rBUTTON_HIT] ld b, a bit BTN_B, b jr nz, .rotate_B_button ; jump if button B was pressed bit BTN_A, b jr z, l_2509 ; jump if anything BUT button A was pressed ; Button A pressed: ld a, [hl] and $03 jr z, .block_variation_low_end ; jump if block type MOD 4 = 0 (lowest variation of block) dec [hl] ; change to lower variation (rotate clockwise) jr .rotation_finished .block_variation_low_end: ld a, [hl] or $03 ld [hl], a ; add 3 to the block variation (starting back at the highest variation) jr .rotation_finished .rotate_B_button: ld a, [hl] and $03 cp $03 jr z, .block_variation_high_end ; jump if block type MOD 4 = 3 (highest variation of block) inc [hl] ; change to higher variation (rotate counter-clockwise) jr .rotation_finished .block_variation_high_end: ld a, [hl] and $fc ; subtract 3 from block variation (starting back at lowest variation) ld [hl], a .rotation_finished: ld a, $03 ld [$dfe0], a call func_2683 call func_2573 and a jr z, l_2509 xor a ld [$dfe0], a ld hl, rBLOCK_TYPE ldh a, [$ff00 + $a0] ld [hl], a call func_2683 l_2509: ld hl, rBLOCK_X ldh a, [rBUTTON_HIT] ld b, a ldh a, [rBUTTON_DOWN] ld c, a ld a, [hl] ldh [$ff00 + $a0], a bit 4, b ld a, $17 jr nz, l_2527 bit 4, c jr z, l_254c ldh a, [$ff00 + $aa] dec a ldh [$ff00 + $aa], a ret nz ld a, $09 l_2527: ldh [$ff00 + $aa], a ld a, [hl] add a, $08 ld [hl], a call func_2683 ld a, $04 ld [$dfe0], a call func_2573 and a ret z l_253a: ld hl, rBLOCK_X xor a ld [$dfe0], a ldh a, [$ff00 + $a0] ld [hl], a call func_2683 ld a, $01 l_2549: ldh [$ff00 + $aa], a ret l_254c: bit 5, b ld a, $17 jr nz, l_255e bit 5, c jr z, l_2549 ldh a, [$ff00 + $aa] dec a ldh [$ff00 + $aa], a ret nz ld a, $09 l_255e: ldh [$ff00 + $aa], a ld a, [hl] sub a, $08 ld [hl], a ld a, $04 ld [$dfe0], a call func_2683 call func_2573 and a ret z jr l_253a func_2573: ld hl, $c010 ld b, $04 l_2578: ldi a, [hl] ldh [$ff00 + $b2], a ldi a, [hl] and a jr z, l_2596 ldh [$ff00 + $b3], a push hl push bc call func_29e3 ld a, h add a, $30 ld h, a ld a, [hl] cp $2f jr nz, l_259a pop bc pop hl inc l inc l dec b jr nz, l_2578 l_2596: xor a ldh [$ff00 + $9b], a ret l_259a: pop bc pop hl ld a, $01 ldh [$ff00 + $9b], a ret func_25a1: ldh a, [rBLOCK_STATUS] cp $01 ret nz ld hl, $c010 ld b, $04 l_25ab: ldi a, [hl] ldh [$ff00 + $b2], a ldi a, [hl] and a jr z, l_25cf ldh [$ff00 + $b3], a push hl push bc call func_29e3 push hl pop de pop bc pop hl l_25bd: ldh a, [$ff00 + $41] and $03 jr nz, l_25bd ld a, [hl] ld [de], a ld a, d add a, $30 ld d, a ldi a, [hl] ld [de], a inc l dec b jr nz, l_25ab l_25cf: ld a, $02 ldh [rBLOCK_STATUS], a ld hl, rBLOCK_VISIBILITY ld [hl], $80 ret func_25d9: ld a, [$c0c6] cp $02 jr z, l_2626 push de ld a, [hl] or a jr z, l_2639 dec a ldi [hl], a ld a, [hl] inc a daa ld [hl], a and $0f ld [bc], a dec c ldi a, [hl] swap a and $0f jr z, l_25f7 ld [bc], a l_25f7: push bc ldh a, [$ff00 + $c3] ld b, a inc b l_25fc: push hl call func_0166 pop hl dec b jr nz, l_25fc pop bc inc hl inc hl push hl ld hl, $0023 add hl, bc pop de call func_2a3a pop de ldh a, [$ff00 + $c3] ld b, a inc b ld hl, $c0a0 l_2618: push hl call func_0166 pop hl dec b jr nz, l_2618 ld a, $02 ld [$c0c6], a ret l_2626: ld de, $c0a2 ld hl, $9a25 call func_2a3a ld a, $02 ld [$dfe0], a xor a ld [$c0c6], a ret l_2639: pop de l_263a: ld a, $21 ldh [rCOUNTDOWN], a xor a ld [$c0c6], a ld a, [$c0c5] inc a ld [$c0c5], a cp $05 ret nz ld a, $04 ldh [rGAME_STATUS], a ret func_2651: ld hl, $c0ac ld b, $1b xor a l_2657: ldi [hl], a dec b jr nz, l_2657 ld hl, $c0a0 ld b, $03 l_2660: ldi [hl], a dec b jr nz, l_2660 ret ld a, [hl] and $f0 swap a ld [de], a ld a, [hl] and $0f inc e ld [de], a ret func_2671: ld a, $02 func_2673: ldh [rAMOUNT_SPRITES_TO_DRAW], a xor a ldh [rOAM_TILE_ADDRESS_2], a ld a, $c0 ldh [rOAM_TILE_ADDRESS_1], a ld hl, rBLOCK_VISIBILITY call func_2a89 ret func_2683: ld a, $01 ldh [rAMOUNT_SPRITES_TO_DRAW], a ld a, $10 ldh [rOAM_TILE_ADDRESS_2], a ld a, $c0 ldh [rOAM_TILE_ADDRESS_1], a ld hl, rBLOCK_VISIBILITY call func_2a89 ret func_2696: ld a, $01 ldh [rAMOUNT_SPRITES_TO_DRAW], a ld a, $20 ldh [rOAM_TILE_ADDRESS_2], a ld a, $c0 ldh [rOAM_TILE_ADDRESS_1], a ld hl, rNEXT_BLOCK_VISIBILITY call func_2a89 ret func_26a9: ld b, $20 ld a, $8e ld de, $0020 l_26b0: ld [hl], a add hl, de dec b jr nz, l_26b0 ret func_26b6: ld a, [de] cp $ff ret z ldi [hl], a inc de jr $26b6 HBlank_Timer:: reti ;data $26BF - $2794 (incl.) db $00, $18, $3F, $00, $80, $00, $00, $FF, $00, $80, $8F, $00 db $80, $00, $00, $FF, $00, $70, $37, $1C, $00, $00, $00, $38 db $37, $1C, $00, $00, $00, $40, $34, $20, $00, $00, $00, $40 db $1C, $20, $00, $00, $00, $40, $74, $20, $00, $00, $00, $40 db $68, $21, $00, $00, $00, $78, $68, $21, $00, $00, $00, $60 db $60, $2A, $80, $00, $00, $60, $72, $2A, $80, $20, $00, $68 db $38, $3E, $80, $00, $00, $60, $60, $36, $80, $00, $00, $60 db $72, $36, $80, $20, $00, $68, $38, $32, $80, $00, $00, $60 db $60, $2E, $80, $00, $00, $68, $38, $3C, $80, $00, $00, $60 db $60, $3A, $80, $00, $00, $68, $38, $30, $80, $00, $80, $3F db $40, $44, $00, $00, $80, $3F, $20, $4A, $00, $00, $80, $3F db $30, $46, $00, $00, $80, $77, $20, $48, $00, $00, $80, $87 db $48, $4C, $00, $00, $80, $87, $58, $4E, $00, $00, $80, $67 db $4D, $50, $00, $00, $80, $67, $5D, $52, $00, $00, $80, $8F db $88, $54, $00, $00, $80, $8F, $98, $55, $00, $00, $00, $5F db $57, $2C, $00, $00, $80, $80, $50, $34, $00, $00, $80, $80 db $60, $34, $00, $20, $00, $6F, $57, $58, $00, $00, $80, $80 db $55, $34, $00, $00, $80, $80, $5B, $34, $00, $20 Flush_BG1:: ; Fill BG Map 1 entirely with value $2F ld hl, $9bff ; End of BG Map Data 1 func_2798: ld bc, $0400 ; Size of BG Map Data 1 .loop_9: ld a, $2f ldd [hl], a dec bc ld a, b or c jr nz, .loop_9 ret ; copy all tiles as specified in registers de (target), hl (source) and bc (length) COPY_TILES:: ldi a, [hl] ld [de], a inc de dec bc ld a, b or c jr nz, COPY_TILES ret COPY_IN_GAME_TILES:: call COPY_CHARACTERS ld bc, $00a0 call COPY_TILES ; continue copying right after characters ld hl, $323f ; address of in-game tiles in memory ld de, $8300 ; not starting at $8000 -> Keeping character tiles ld bc, $0d00 call COPY_TILES ; Copy in-game tiles (blocks, walls, GUI, celebration screens) ret ; copy characters such as numbers, letters and .,-" COPY_CHARACTERS:: ld hl, $415f ; address of (black-white) character set in ROM ld bc, $0138 ; length of data set ld de, $8000 ; Starting address of tile data in VRAM .loop_14: ldi a, [hl] ld [de], a inc de ; copy each byte at $415f twice into $8000, ld [de], a ; because characters are stored as only black and white inc de ; but the GB uses two bytes per character to allow for 4 colors dec bc ld a, b or c jr nz, .loop_14 ret COPY_TITLE_TILES:: call COPY_CHARACTERS ld bc, $0da0 ; length of symbol data set (starting right after characters) call COPY_TILES ; copy all title image tiles (picture of Moscow cathedral) ret ld bc, $1000 func_27e4: ld de, $8000 call COPY_TILES ret ; Takes a ROM address (de) and copies the full tilemap into Tilemap A (starting at $9800) COPY_TILEMAP:: ld hl, $9800 ; Allows for a unique tilemap starting address - is only ever used for Tilemap B (starting at $9C00) COPY_TILEMAP_B:: ld b, $12 ; = full 18 rows of tiles ; Allows for unique tilemap and a custom number of rows (less than the full 18) COPY_TILEMAP_FEWER_ROWS:: push hl ld c, $14 ; = full 20 columns of tiles .loop_15: ld a, [de] ldi [hl], a inc de dec c jr nz, .loop_15 pop hl push de ld de, $0020 add hl, de ; Add $20 to target address, to skip area of tile map outside the window pop de dec b jr nz, COPY_TILEMAP_FEWER_ROWS ret func_2804: ld b, $0a push hl l_2807: ld a, [de] cp $ff jr z, l_281a ldi [hl], a inc de dec b jr nz, l_2807 pop hl push de ld de, $0020 add hl, de pop de jr $2804 l_281a: pop hl ld a, $02 ldh [rROW_UPDATE], a ret WAIT_FOR_VBLANK:: ldh a, [rIE] ldh [rIE_TEMP], a res 0, a ldh [rIE], a ; turn off V-Blank interrupt .loop_13: ldh a, [rLY] ; loop until in V-Blank area cp SCREEN_HEIGHT + 1 jr nz, .loop_13 ldh a, [rLCDC] and $7f ldh [rLCDC], a ; turn off LCDC (keep other settings in rLCDC) ldh a, [rIE_TEMP] ldh [rIE], a ret ; data section $2839 - $29a5 incl. data: db $2F, $2F, $11, $12, $1D, $2F, $2F, $2F, $2F, $2F, $29, $29 db $29, $2F, $2F, $2F, $2F, $1C, $1D, $0A, $1B, $1D, $2F, $2F db $2F, $29, $29, $29, $29, $29, $2F, $2F, $2F, $2F, $2F, $1D db $18, $2F, $2F, $2F, $2F, $2F, $2F, $29, $29, $2F, $2F, $2F db $0C, $18, $17, $1D, $12, $17, $1E, $0E, $29, $29, $29, $29 db $29, $29, $29, $29, $2F, $2F, $10, $0A, $16, $0E, $2F, $2F db $2F, $2F, $29, $29, $29, $29, $2F, $2F, $1C, $12, $17, $10 db $15, $0E, $2F, $2F, $2F, $2F, $2F, $00, $2F, $26, $2F, $04 db $00, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $00, $2F, $0D, $18, $1E, $0B, $15, $0E, $2F, $2F, $2F, $2F db $2F, $00, $2F, $26, $2F, $01, $00, $00, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $00, $2F, $1D, $1B, $12, $19 db $15, $0E, $2F, $2F, $2F, $2F, $2F, $00, $2F, $26, $2F, $03 db $00, $00, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $00, $2F, $1D, $0E, $1D, $1B, $12, $1C, $2F, $2F, $2F, $2F db $2F, $00, $2F, $26, $2F, $01, $02, $00, $00, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $00, $2F, $0D, $1B, $18, $19 db $1C, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $00, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $29, $29, $29, $29, $29, $29, $29, $29, $29, $29 db $1D, $11, $12, $1C, $2F, $1C, $1D, $0A, $10, $0E, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $00, $2F, $FF, $61, $62, $62 db $62, $62, $62, $62, $63, $64, $2F, $2F, $2F, $2F, $2F, $2F db $65, $64, $2F, $10, $0A, $16, $0E, $2F, $65, $64, $2F, $AD db $AD, $AD, $AD, $2F, $65, $64, $2F, $18, $1F, $0E, $1B, $2F db $65, $64, $2F, $AD, $AD, $AD, $AD, $2F, $65, $66, $69, $69 db $69, $69, $69, $69, $6A, $19, $15, $0E, $0A, $1C, $0E, $2F db $2F, $29, $29, $29, $29, $29, $29, $2F, $2F, $2F, $1D, $1B db $22, $2F, $2F, $2F, $2F, $2F, $29, $29, $29, $2F, $2F, $2F db $2F, $2F, $2F, $0A, $10, $0A, $12, $17, $27, $2F, $2F, $29 db $29, $29, $29, $29, $2F Read_Joypad:: ld a, 1 << 5 ; select direction keys ldh [rJOYP], a rept 4 ldh a, [rJOYP] ; poll buttons multiple times endr cpl ; reverse bits (as pressed buttons are shown as 0's) and $0f ; mask lower nibble swap a ; move it to higher nibble ld b, a ld a, 1 << 4 ; select button keys ldh [rJOYP], a rept 10 ldh a, [rJOYP] endr cpl and $0f or b ; In register A: lower nibble = buttons, higher nibble = directional keys ld c, a ldh a, [rBUTTON_DOWN] xor c ; XOR+AND gate (only true, if "false -> true", and c ; i.e. button pressed now, but wasn't pressed before) ldh [rBUTTON_HIT], a ld a, c ldh [rBUTTON_DOWN], a ld a, 1 << 5 | 1 << 4 ; deselect both directional and button keys ldh [$ff00 + $00], a ret func_29e3: ; Shutdown routine? ldh a, [$ff00 + $b2] sub a, $10 srl a srl a srl a ld de, $0000 ld e, a ld hl, $9800 ld b, $20 l_29f6: add hl, de dec b jr nz, l_29f6 ldh a, [$ff00 + $b3] sub a, $08 srl a srl a srl a ld de, $0000 ld e, a add hl, de ld a, h ldh [$ff00 + $b5], a ld a, l ldh [$ff00 + $b4], a ret ldh a, [$ff00 + $b5] ld d, a ldh a, [$ff00 + $b4] ld e, a ld b, $04 l_2a18: rr d rr e dec b jr nz, l_2a18 ld a, e sub a, $84 and $fe rlca rlca add a, $08 ldh [$ff00 + $b2], a ldh a, [$ff00 + $b4] and $1f rla rla rla add a, $08 ldh [$ff00 + $b3], a ret func_2a36: ldh a, [$ff00 + $e0] ; is $01 before the first block and shortly after a line clear and a ret z func_2a3a: ld c, $03 func_2a3c: xor a ldh [$ff00 + $e0], a l_2a3f: ld a, [de] ld b, a swap a and $0f jr nz, l_2a6f ldh a, [$ff00 + $e0] and a ld a, $00 jr nz, l_2a50 ld a, $2f l_2a50: ldi [hl], a ld a, b and $0f jr nz, l_2a77 ldh a, [$ff00 + $e0] and a ld a, $00 jr nz, l_2a66 ld a, $01 cp c ld a, $00 jr z, l_2a66 ld a, $2f l_2a66: ldi [hl], a dec e dec c jr nz, l_2a3f xor a ldh [$ff00 + $e0], a ret l_2a6f: push af ld a, $01 ldh [$ff00 + $e0], a pop af jr l_2a50 l_2a77: push af ld a, $01 ldh [$ff00 + $e0], a pop af jr l_2a66 ld a, $c0 ldh [$ff00 + $46], a ld a, $28 l_2a85: dec a jr nz, l_2a85 ret func_2a89: ld a, h ldh [rSPRITE_ORIGINAL_ADDRESS_1], a ld a, l ldh [rSPRITE_ORIGINAL_ADDRESS_2], a ld a, [hl] and a jr z, l_2ab0 ; jmp if sprite is (supposed to be) visible cp $80 jr z, l_2aae ; jmp if sprite is (supposed to be) invisible l_2a97: ldh a, [rSPRITE_ORIGINAL_ADDRESS_1] ld h, a ldh a, [rSPRITE_ORIGINAL_ADDRESS_2] ld l, a ld de, $0010 add hl, de ldh a, [rAMOUNT_SPRITES_TO_DRAW] dec a ldh [rAMOUNT_SPRITES_TO_DRAW], a ret z jr $2a89 l_2aa9: xor a ldh [rOAM_VISIBLE], a jr l_2a97 l_2aae: ldh [rOAM_VISIBLE], a l_2ab0: ld b, $07 ld de, $ff86 l_2ab5: ldi a, [hl] ; store current sprite info into $ff86 - $ff8d ld [de], a inc de dec b jr nz, l_2ab5 ldh a, [rOAM_TILE_NO] ; = sprite index (block type) ld hl, $2b64 ; list of addresses rlca ld e, a ld d, $00 add hl, de ; add sprite index * 2 to $2b64 ld e, [hl] inc hl ld d, [hl] ; retrieve a memory address dependent on current sprite index (smallest is $2c20) ld a, [de] ld l, a inc de ld a, [de] ld h, a ; retrieve a new memory address at the previously retrieved address (smallest is $2d58) inc de ld a, [de] ldh [$ff00 + $90], a inc de ld a, [de] ldh [$ff00 + $91], a ; store also two further values in each $ff00 + $90 and $ff00 + $91 ld e, [hl] inc hl ld d, [hl] ; retrieve a new memory address at the previously retrieved address (smallest is $31a9) read_next_design_element: inc hl ; retrieve the sprite design of the sprite index, using tile numbers, $fe for nothing and $ff for end of block ldh a, [$ff00 + $8c] ; ? ldh [$ff00 + $94], a ld a, [hl] cp $ff jr z, l_2aa9 ; jump if end of this sprite's design found cp $fd ; (there is $fd during congratulation animation.) jr nz, l_2af4 ; jump if not $fd ldh a, [$ff00 + $8c] xor $20 ldh [$ff00 + $94], a inc hl ld a, [hl] ; read input byte after the $fd jr l_2af8 is_empty_design_element: inc de inc de ; skip two de bytes and read next design element jr read_next_design_element l_2af4: cp $fe jr z, is_empty_design_element l_2af8: ldh [rOAM_TILE_NO], a ldh a, [$ff00 + $87] ld b, a ld a, [de] ld c, a ldh a, [$ff00 + $8b] bit 6, a jr nz, l_2b0b ldh a, [$ff00 + $90] add a, b adc a, c jr l_2b15 l_2b0b: ld a, b push af ldh a, [$ff00 + $90] ld b, a pop af sub a, b sbc a, c sbc a, $08 l_2b15: ldh [rOAM_Y_POS], a ldh a, [$ff00 + $88] ld b, a inc de ld a, [de] inc de ld c, a ldh a, [$ff00 + $8b] bit 5, a jr nz, l_2b2a ldh a, [$ff00 + $91] add a, b adc a, c jr l_2b34 l_2b2a: ld a, b push af ldh a, [$ff00 + $91] ld b, a pop af sub a, b sbc a, c sbc a, $08 l_2b34: ldh [rOAM_X_POS], a push hl ldh a, [rOAM_TILE_ADDRESS_1] ld h, a ldh a, [rOAM_TILE_ADDRESS_2] ld l, a ldh a, [rOAM_VISIBLE] and a jr z, l_2b46 ; jump if sprite is (supposed to be) visible ld a, $ff jr l_2b48 l_2b46: ldh a, [rOAM_Y_POS] l_2b48: ldi [hl], a ldh a, [rOAM_X_POS] ldi [hl], a ldh a, [rOAM_TILE_NO] ldi [hl], a ldh a, [$ff00 + $94] ; ld b, a ; ldh a, [$ff00 + $8b] ; or b ; ld b, a ; ldh a, [rOAM_ATTRIBUTE_NO] ; or b ; "or" both 8b and 9f into the attribute ldi [hl], a ld a, h ldh [rOAM_TILE_ADDRESS_1], a ld a, l ldh [rOAM_TILE_ADDRESS_2], a pop hl jp read_next_design_element ; start of data section (see above): starting at $2b64 SECTION "Data", ROM0 [$2B64] db $20, $2C, $24, $2C, $28, $2C, $2C, $2C, $30, $2C, $34, $2C db $38, $2C, $3C, $2C, $40, $2C, $44, $2C, $48, $2C, $4C, $2C db $50, $2C, $54, $2C, $58, $2C, $5C, $2C, $60, $2C, $64, $2C db $68, $2C, $6C, $2C, $70, $2C, $74, $2C, $78, $2C, $7C, $2C db $80, $2C, $84, $2C, $88, $2C, $8C, $2C, $90, $2C, $94, $2C db $98, $2C, $9C, $2C, $A0, $2C, $A4, $2C, $A8, $2C, $AC, $2C db $B0, $2C, $B4, $2C, $B8, $2C, $BC, $2C, $C0, $2C, $C4, $2C db $C8, $2C, $CC, $2C, $C7, $30, $CC, $2C, $D0, $2C, $D4, $2C db $D8, $2C, $DC, $2C, $E0, $2C, $E4, $2C, $EA, $30, $EE, $30 db $E8, $2C, $EC, $2C, $F2, $30, $F6, $30, $F0, $2C, $F4, $2C db $F8, $2C, $FC, $2C, $00, $2D, $04, $2D, $FA, $30, $FE, $30 db $04, $2D, $08, $2D, $08, $2D, $0C, $2D, $10, $2D, $14, $2D db $18, $2D, $1C, $2D, $20, $2D, $24, $2D, $28, $2D, $2C, $2D db $30, $2D, $34, $2D, $38, $2D, $3C, $2D, $40, $2D, $44, $2D db $48, $2D, $4C, $2D, $50, $2D, $54, $2D, $0A, $31, $0E, $31 db $12, $31, $12, $31, $02, $31, $06, $31, $58, $2D, $EF, $F0 db $68, $2D, $EF, $F0, $7A, $2D, $EF, $F0, $89, $2D, $EF, $F0 db $9A, $2D, $EF, $F0, $AC, $2D, $EF, $F0, $BD, $2D, $EF, $F0 db $CB, $2D, $EF, $F0, $DC, $2D, $EF, $F0, $EB, $2D, $EF, $F0 db $FC, $2D, $EF, $F0, $0B, $2E, $EF, $F0, $1C, $2E, $EF, $F0 db $2E, $2E, $EF, $F0, $40, $2E, $EF, $F0, $52, $2E, $EF, $F0 db $64, $2E, $EF, $F0, $76, $2E, $EF, $F0, $86, $2E, $EF, $F0 db $98, $2E, $EF, $F0, $A8, $2E, $EF, $F0, $B9, $2E, $EF, $F0 db $CA, $2E, $EF, $F0, $DB, $2E, $EF, $F0, $0B, $2F, $EF, $F0 db $1C, $2F, $EF, $F0, $EC, $2E, $EF, $F0, $FA, $2E, $EF, $F0 db $2D, $2F, $00, $E8, $36, $2F, $00, $E8, $3F, $2F, $00, $E8 db $48, $2F, $00, $E8, $51, $2F, $00, $00, $55, $2F, $00, $00 db $59, $2F, $00, $00, $5D, $2F, $00, $00, $61, $2F, $00, $00 db $65, $2F, $00, $00, $69, $2F, $00, $00, $6D, $2F, $00, $00 db $71, $2F, $00, $00, $75, $2F, $00, $00, $79, $2F, $F0, $F8 db $84, $2F, $F0, $F8, $8F, $2F, $F0, $F0, $A3, $2F, $F0, $F0 db $B8, $2F, $F8, $F8, $C1, $2F, $F8, $F8, $CA, $2F, $F8, $F8 db $D1, $2F, $F8, $F8, $D8, $2F, $F0, $F8, $E3, $2F, $F0, $F8 db $EE, $2F, $F0, $F0, $03, $30, $F0, $F0, $19, $30, $F8, $F8 db $22, $30, $F8, $F8, $2B, $30, $F8, $F8, $32, $30, $F8, $F8 db $39, $30, $F8, $F8, $40, $30, $F8, $F8, $47, $30, $F8, $F8 db $4E, $30, $F8, $F8, $55, $30, $F8, $F8, $5C, $30, $F8, $F8 db $67, $30, $F8, $F8, $6E, $30, $F8, $F8, $75, $30, $F8, $F8 db $7C, $30, $F8, $F8, $83, $30, $F8, $F8, $8C, $30, $F8, $F8 db $95, $30, $F8, $F8, $9E, $30, $F8, $F8, $A7, $30, $F8, $F8 db $B0, $30, $F8, $F8, $B9, $30, $F8, $F8, $C0, $30, $F8, $F8 db $46, $31, $F0, $F0, $5D, $31, $F8, $F8, $A9, $31, $FE, $FE db $FE, $FE, $FE, $FE, $FE, $FE, $84, $84, $84, $FE, $84, $FF db $A9, $31, $FE, $FE, $FE, $FE, $FE, $84, $FE, $FE, $FE, $84 db $FE, $FE, $FE, $84, $84, $FF, $A9, $31, $FE, $FE, $FE, $FE db $FE, $FE, $84, $FE, $84, $84, $84, $FE, $FF, $A9, $31, $FE db $FE, $FE, $FE, $84, $84, $FE, $FE, $FE, $84, $FE, $FE, $FE db $84, $FF, $A9, $31, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE db $81, $81, $81, $FE, $FE, $FE, $81, $FF, $A9, $31, $FE, $FE db $FE, $FE, $FE, $81, $81, $FE, $FE, $81, $FE, $FE, $FE, $81 db $FF, $A9, $31, $FE, $FE, $FE, $FE, $81, $FE, $FE, $FE, $81 db $81, $81, $FF, $A9, $31, $FE, $FE, $FE, $FE, $FE, $81, $FE db $FE, $FE, $81, $FE, $FE, $81, $81, $FF, $A9, $31, $FE, $FE db $FE, $FE, $FE, $FE, $FE, $FE, $8A, $8B, $8B, $8F, $FF, $A9 db $31, $FE, $80, $FE, $FE, $FE, $88, $FE, $FE, $FE, $88, $FE db $FE, $FE, $89, $FF, $A9, $31, $FE, $FE, $FE, $FE, $FE, $FE db $FE, $FE, $8A, $8B, $8B, $8F, $FF, $A9, $31, $FE, $80, $FE db $FE, $FE, $88, $FE, $FE, $FE, $88, $FE, $FE, $FE, $89, $FF db $A9, $31, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $83 db $83, $FE, $FE, $83, $83, $FF, $A9, $31, $FE, $FE, $FE, $FE db $FE, $FE, $FE, $FE, $FE, $83, $83, $FE, $FE, $83, $83, $FF db $A9, $31, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $83 db $83, $FE, $FE, $83, $83, $FF, $A9, $31, $FE, $FE, $FE, $FE db $FE, $FE, $FE, $FE, $FE, $83, $83, $FE, $FE, $83, $83, $FF db $A9, $31, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $82, $82 db $FE, $FE, $FE, $82, $82, $FF, $A9, $31, $FE, $FE, $FE, $FE db $FE, $82, $FE, $FE, $82, $82, $FE, $FE, $82, $FF, $A9, $31 db $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $82, $82, $FE, $FE db $FE, $82, $82, $FF, $A9, $31, $FE, $FE, $FE, $FE, $FE, $82 db $FE, $FE, $82, $82, $FE, $FE, $82, $FF, $A9, $31, $FE, $FE db $FE, $FE, $FE, $FE, $FE, $FE, $FE, $86, $86, $FE, $86, $86 db $FF, $A9, $31, $FE, $FE, $FE, $FE, $86, $FE, $FE, $FE, $86 db $86, $FE, $FE, $FE, $86, $FF, $A9, $31, $FE, $FE, $FE, $FE db $FE, $FE, $FE, $FE, $FE, $86, $86, $FE, $86, $86, $FF, $A9 db $31, $FE, $FE, $FE, $FE, $86, $FE, $FE, $FE, $86, $86, $FE db $FE, $FE, $86, $FF, $A9, $31, $FE, $FE, $FE, $FE, $FE, $85 db $FE, $FE, $85, $85, $85, $FF, $A9, $31, $FE, $FE, $FE, $FE db $FE, $85, $FE, $FE, $85, $85, $FE, $FE, $FE, $85, $FF, $A9 db $31, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $85, $85, $85 db $FE, $FE, $85, $FF, $A9, $31, $FE, $FE, $FE, $FE, $FE, $85 db $FE, $FE, $FE, $85, $85, $FE, $FE, $85, $FF, $C9, $31, $0A db $25, $1D, $22, $19, $0E, $FF, $C9, $31, $0B, $25, $1D, $22 db $19, $0E, $FF, $C9, $31, $0C, $25, $1D, $22, $19, $0E, $FF db $C9, $31, $2F, $18, $0F, $0F, $2F, $2F, $FF, $C9, $31, $00 db $FF, $C9, $31, $01, $FF, $C9, $31, $02, $FF, $C9, $31, $03 db $FF, $C9, $31, $04, $FF, $C9, $31, $05, $FF, $C9, $31, $06 db $FF, $C9, $31, $07, $FF, $C9, $31, $08, $FF, $C9, $31, $09 db $FF, $D9, $31, $2F, $01, $2F, $11, $20, $21, $30, $31, $FF db $D9, $31, $2F, $03, $12, $13, $22, $23, $32, $33, $FF, $A9 db $31, $2F, $05, $FD, $05, $2F, $2F, $15, $04, $17, $24, $25 db $26, $27, $34, $35, $36, $2F, $FF, $A9, $31, $08, $37, $FD db $37, $FD, $08, $18, $19, $14, $1B, $28, $29, $2A, $2B, $60 db $70, $36, $2F, $FF, $D9, $31, $B9, $FD, $B9, $BA, $FD, $BA db $FF, $D9, $31, $82, $FD, $82, $83, $FD, $83, $FF, $D9, $31 db $09, $0A, $3A, $3B, $FF, $D9, $31, $0B, $40, $7C, $6F, $FF db $D9, $31, $2F, $0F, $2F, $1F, $5F, $2C, $2F, $3F, $FF, $D9 db $31, $6C, $3C, $4B, $4C, $5B, $5C, $6B, $2F, $FF, $A9, $31 db $2F, $4D, $FD, $4D, $2F, $2F, $5D, $5E, $4E, $5F, $6D, $6E db $2F, $2F, $7D, $FD, $7D, $2F, $FF, $A9, $31, $08, $77, $FD db $77, $FD, $08, $18, $78, $43, $53, $7A, $7B, $50, $2F, $2F db $02, $FD, $7D, $2F, $FF, $D9, $31, $B9, $FD, $B9, $BA, $FD db $BA, $FF, $D9, $31, $82, $FD, $82, $83, $FD, $83, $FF, $D9 db $31, $09, $0A, $3A, $3B, $FF, $D9, $31, $0B, $40, $7C, $6F db $FF, $D9, $31, $DC, $DD, $E0, $E1, $FF, $D9, $31, $DE, $DF db $E0, $E1, $FF, $D9, $31, $DE, $E2, $E0, $E4, $FF, $D9, $31 db $DC, $EE, $E0, $E3, $FF, $D9, $31, $E5, $E6, $E7, $E8, $FF db $D9, $31, $FD, $E6, $FD, $E5, $FD, $E8, $FD, $E7, $FF, $D9 db $31, $E9, $EA, $EB, $EC, $FF, $D9, $31, $ED, $EA, $EB, $EC db $FF, $D9, $31, $F2, $F4, $F3, $BF, $FF, $D9, $31, $F4, $F2 db $BF, $F3, $FF, $D9, $31, $C2, $FD, $C2, $C3, $FD, $C3, $FF db $D9, $31, $C4, $FD, $C4, $C5, $FD, $C5, $FF, $D9, $31, $DC db $FD, $DC, $EF, $FD, $EF, $FF, $D9, $31, $F0, $FD, $F0, $F1 db $FD, $F1, $FF, $D9, $31, $DC, $FD, $F0, $F1, $FD, $EF, $FF db $D9, $31, $F0, $FD, $DC, $EF, $FD, $F1, $FF, $D9, $31, $BD db $BE, $BB, $BC, $FF, $D9, $31, $B9, $BA, $DA, $DB, $FF, $CB db $30, $E0, $F0, $F5, $31, $C0, $C1, $C5, $C6, $CC, $CD, $75 db $76, $A4, $A5, $A6, $A7, $54, $55, $56, $57, $44, $45, $46 db $47, $A0, $A1, $A2, $A3, $9C, $9D, $9E, $9F, $FF, $16, $31 db $F8, $E8, $1C, $31, $F0, $E8, $25, $31, $00, $00, $2B, $31 db $00, $00, $31, $31, $00, $00, $3A, $31, $00, $00, $9D, $31 db $00, $00, $A3, $31, $00, $00, $64, $31, $D8, $F8, $7C, $31 db $E8, $F8, $8E, $31, $F0, $F8, $2D, $32, $63, $64, $65, $FF db $2D, $32, $63, $64, $65, $66, $67, $68, $FF, $2D, $32, $41 db $41, $41, $FF, $2D, $32, $42, $42, $42, $FF, $2D, $32, $52 db $52, $52, $62, $62, $62, $FF, $2D, $32, $51, $51, $51, $61 db $61, $61, $71, $71, $71, $FF, $A9, $31, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $63, $64, $FD, $64, $FD, $63, $66, $67 db $FD, $67, $FD, $66, $FF, $D9, $31, $2F, $2F, $63, $64, $FF db $D9, $31, $00, $FD, $00, $10, $FD, $10, $4F, $FD, $4F, $80 db $FD, $80, $80, $FD, $80, $81, $FD, $81, $97, $FD, $97, $FF db $D9, $31, $98, $FD, $98, $99, $FD, $99, $80, $FD, $80, $9A db $FD, $9A, $9B, $FD, $9B, $FF, $D9, $31, $A8, $FD, $A8, $A9 db $FD, $A9, $AA, $FD, $AA, $AB, $FD, $AB, $FF, $D9, $31, $41 db $2F, $2F, $FF, $D9, $31, $52, $2F, $62, $FF, $00, $00, $00 db $08, $00, $10, $00, $18, $08, $00, $08, $08, $08, $10, $08 db $18, $10, $00, $10, $08, $10, $10, $10, $18, $18, $00, $18 db $08, $18, $10, $18, $18, $00, $00, $00, $08, $00, $10, $00 db $18, $00, $20, $00, $28, $00, $30, $00, $38, $00, $00, $00 db $08, $08, $00, $08, $08, $10, $00, $10, $08, $18, $00, $18 db $08, $20, $00, $20, $08, $28, $00, $28, $08, $30, $00, $30 db $08, $00, $08, $00, $10, $08, $08, $08, $10, $10, $00, $10 db $08, $10, $10, $10, $18, $18, $00, $18, $08, $18, $10, $18 db $18, $20, $00, $20, $08, $20, $10, $20, $18, $28, $00, $28 db $08, $28, $10, $28, $18, $30, $00, $30, $08, $30, $10, $30 db $18, $38, $00, $38, $08, $38, $10, $38, $18, $00, $00, $00 db $08, $00, $10, $08, $00, $08, $08, $08, $10, $10, $00, $10 db $08, $10, $10, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F db $7F, $7C, $7C, $78, $79, $78, $7B, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $00, $00, $00, $FF, $00, $00, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $3F, $3F, $1F db $9F, $1F, $DF, $78, $7B, $78, $79, $7C, $7C, $7F, $7F, $7F db $7F, $7F, $7F, $7F, $7F, $7F, $7F, $00, $00, $00, $FF, $00 db $00, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $1F db $DF, $1F, $9F, $3F, $3F, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $78, $7A, $78, $7A, $78, $7A, $78, $7A, $78 db $7A, $78, $7A, $78, $7A, $78, $7A, $1F, $5F, $1F, $5F, $1F db $5F, $1F, $5F, $1F, $5F, $1F, $5F, $1F, $5F, $1F, $5F, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $F8, $F8, $F0, $F2, $E1, $F5 db $E3, $F2, $E6, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $00, $00 db $00, $00, $FF, $FF, $FF, $00, $00, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $1F, $1F, $0F, $4F, $87, $AF, $C7, $4F, $67, $F2 db $E6, $F2, $E6, $F2, $E6, $F2, $E6, $F2, $E6, $F2, $E6, $F2 db $E6, $F2, $E6, $4F, $67, $4F, $67, $4F, $67, $4F, $67, $4F db $67, $4F, $67, $4F, $67, $4F, $67, $F2, $E6, $F5, $E3, $F2 db $E1, $F8, $F0, $FF, $F8, $FF, $FF, $FF, $FF, $FF, $FF, $00 db $00, $FF, $FF, $00, $FF, $00, $00, $FF, $00, $FF, $FF, $FF db $FF, $FF, $FF, $4F, $67, $AF, $C7, $4F, $87, $1F, $0F, $FF db $1F, $FF, $FF, $FF, $FF, $FF, $FF, $78, $7B, $78, $79, $7C db $7C, $7F, $7F, $7F, $7F, $7C, $7C, $78, $79, $78, $7B, $1F db $DF, $1F, $9F, $3F, $3F, $FF, $FF, $FF, $FF, $3F, $3F, $1F db $9F, $1F, $DF, $00, $00, $00, $FF, $00, $00, $FF, $FF, $FF db $FF, $00, $00, $00, $FF, $00, $00, $00, $00, $00, $7F, $00 db $00, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $78 db $7A, $78, $7A, $78, $7A, $78, $7A, $78, $7A, $00, $02, $00 db $7A, $00, $7A, $1F, $5F, $1F, $5F, $1F, $5F, $1F, $5F, $1F db $5F, $00, $40, $00, $5F, $00, $5F, $00, $00, $00, $FF, $00 db $00, $00, $FF, $00, $FF, $00, $00, $00, $FF, $00, $00, $00 db $00, $00, $00, $3F, $3F, $3F, $3F, $30, $30, $30, $30, $33 db $32, $33, $30, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00 db $00, $00, $00, $FF, $02, $FF, $20, $00, $00, $00, $00, $FC db $FC, $FC, $FC, $0C, $0C, $0C, $0C, $CC, $0C, $CC, $0C, $33 db $30, $33, $30, $33, $30, $33, $30, $33, $30, $33, $30, $33 db $32, $33, $30, $CC, $0C, $CC, $4C, $CC, $0C, $CC, $0C, $CC db $0C, $CC, $8C, $CC, $0C, $CC, $0C, $33, $30, $33, $30, $30 db $30, $30, $30, $3F, $3F, $3F, $3F, $00, $00, $00, $00, $FF db $04, $FF, $40, $00, $00, $00, $00, $FF, $FF, $FF, $FF, $00 db $00, $00, $00, $CC, $0C, $CC, $4C, $0C, $0C, $0C, $0C, $FC db $FC, $FC, $FC, $00, $00, $00, $00, $00, $00, $FF, $FF, $FF db $00, $FF, $02, $FF, $20, $FF, $00, $FF, $04, $FF, $00, $FF db $00, $FF, $02, $FF, $40, $FF, $00, $FF, $08, $FF, $01, $FF db $43, $FF, $07, $FF, $04, $FF, $40, $FF, $02, $FF, $00, $FF db $00, $FF, $FF, $FF, $FF, $00, $00, $FF, $00, $FF, $40, $FF db $02, $FF, $00, $FF, $10, $FF, $80, $FF, $C2, $FF, $E0, $FE db $06, $FE, $46, $FE, $06, $FE, $06, $FE, $16, $FE, $86, $FE db $06, $FE, $06, $7F, $64, $7F, $60, $7F, $62, $7F, $60, $7F db $60, $7F, $68, $7F, $62, $7F, $60, $FF, $02, $FF, $40, $FF db $00, $FF, $00, $FF, $08, $FF, $80, $FF, $1F, $F0, $10, $FF db $02, $FF, $20, $FF, $00, $FF, $00, $FF, $04, $FF, $00, $FF db $FF, $00, $00, $FF, $07, $FF, $13, $FF, $01, $FF, $00, $FF db $40, $FF, $00, $FF, $FF, $08, $08, $00, $00, $FF, $FF, $FF db $FF, $FF, $00, $FF, $02, $FF, $20, $FF, $FF, $00, $00, $FF db $E0, $FF, $C8, $FF, $80, $FF, $00, $FF, $02, $FF, $00, $FF db $FF, $08, $08, $FF, $00, $FF, $02, $FF, $40, $FF, $00, $FF db $02, $FF, $00, $FF, $F8, $0F, $08, $F0, $10, $F0, $10, $F0 db $10, $F0, $50, $F0, $10, $F0, $10, $F0, $10, $F0, $10, $0F db $08, $0F, $0A, $0F, $08, $0F, $08, $0F, $08, $0F, $08, $0F db $09, $0F, $08, $00, $00, $00, $7F, $00, $00, $7F, $7F, $7F db $7F, $7C, $7C, $78, $79, $78, $7B, $00, $00, $00, $FF, $00 db $00, $FF, $FF, $FF, $FF, $3F, $3F, $1F, $9F, $1F, $DF, $7F db $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $00, $00, $00 db $7F, $00, $00, $00, $00, $00, $00, $00, $00, $AA, $AA, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $0F db $0F, $1F, $1F, $38, $38, $33, $30, $36, $30, $34, $30, $00 db $00, $00, $00, $FF, $FF, $FF, $FF, $00, $00, $FF, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $F0, $F0, $F8, $F8, $1C db $1C, $CC, $0C, $6C, $0C, $2C, $0C, $34, $30, $34, $30, $34 db $30, $34, $30, $34, $30, $34, $30, $34, $30, $34, $30, $2C db $0C, $2C, $0C, $2C, $0C, $2C, $0C, $2C, $0C, $2C, $0C, $2C db $0C, $2C, $0C, $34, $30, $36, $30, $33, $30, $38, $38, $1F db $1F, $0F, $0F, $00, $00, $00, $00, $00, $7B, $00, $79, $00 db $7C, $00, $7F, $00, $7F, $00, $00, $00, $7F, $00, $00, $00 db $DF, $00, $9F, $00, $3F, $00, $FF, $00, $FF, $00, $00, $00 db $FF, $00, $00, $00, $00, $00, $00, $FF, $00, $00, $00, $FF db $FF, $FF, $FF, $00, $00, $00, $00, $2C, $0C, $6C, $0C, $CC db $0C, $1C, $1C, $F8, $F8, $F0, $F0, $00, $00, $00, $00, $08 db $08, $FF, $FF, $FF, $02, $FF, $00, $FF, $20, $FF, $00, $FF db $02, $FF, $00, $00, $00, $FF, $FF, $FF, $FF, $FF, $00, $FF db $02, $FF, $20, $FF, $FF, $08, $08, $FF, $07, $FF, $13, $FF db $01, $FF, $00, $FF, $40, $FF, $00, $FF, $FF, $00, $00, $FF db $E0, $FF, $C8, $FF, $80, $FF, $00, $FF, $02, $FF, $00, $FF db $FF, $00, $00, $08, $08, $08, $08, $08, $08, $08, $08, $08 db $08, $08, $08, $08, $08, $08, $08, $FF, $00, $FF, $02, $FF db $00, $FF, $20, $FF, $02, $FF, $00, $FF, $FF, $08, $08, $F0 db $10, $FF, $1F, $F0, $1F, $F0, $1F, $F0, $1F, $F0, $1F, $FF db $5F, $F0, $10, $00, $00, $FF, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $FF, $FF, $00, $00, $08, $08, $FF, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $FF, $FF, $08, $08, $0F db $08, $FF, $F8, $0F, $F8, $0F, $F8, $0F, $F8, $0F, $F8, $FF db $FA, $0F, $08, $FF, $07, $FF, $43, $FF, $01, $FF, $00, $FF db $00, $FF, $80, $FF, $1F, $F0, $10, $FF, $E0, $FF, $C2, $FF db $80, $FF, $00, $FF, $22, $FF, $00, $FF, $F8, $0F, $08, $00 db $00, $00, $00, $00, $00, $3C, $00, $3C, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $3C, $00, $4E, $00, $4E, $00, $7E db $00, $4E, $00, $4E, $00, $00, $00, $00, $00, $7C, $00, $66 db $00, $7C, $00, $66, $00, $66, $00, $7C, $00, $00, $00, $00 db $00, $3C, $00, $66, $00, $60, $00, $60, $00, $66, $00, $3C db $00, $00, $00, $DD, $44, $FF, $44, $FF, $FF, $77, $11, $FF db $11, $FF, $FF, $DD, $44, $FF, $44, $FF, $FF, $77, $11, $FF db $11, $FF, $FF, $DD, $44, $FF, $44, $FF, $FF, $77, $11, $FF db $11, $FF, $FF, $DD, $44, $FF, $44, $FF, $FF, $77, $11, $FF db $11, $FF, $FF, $00, $00, $7E, $00, $18, $00, $18, $00, $18 db $00, $18, $00, $18, $00, $00, $00, $00, $00, $66, $00, $66 db $00, $3C, $00, $18, $00, $18, $00, $18, $00, $00, $00, $FF db $FF, $F7, $89, $DD, $A3, $FF, $81, $B7, $C9, $FD, $83, $D7 db $A9, $FF, $81, $FF, $FF, $FF, $81, $FF, $BD, $E7, $A5, $E7 db $A5, $FF, $BD, $FF, $81, $FF, $FF, $FF, $FF, $FF, $81, $FF db $81, $FF, $99, $FF, $99, $FF, $81, $FF, $81, $FF, $FF, $FF db $FF, $81, $81, $BD, $BD, $BD, $BD, $BD, $BD, $BD, $BD, $81 db $81, $FF, $FF, $FF, $FF, $81, $FF, $81, $FF, $81, $FF, $81 db $FF, $81, $FF, $81, $FF, $FF, $FF, $FF, $FF, $FF, $81, $C3 db $81, $DF, $85, $DF, $85, $FF, $BD, $FF, $81, $FF, $FF, $FF db $FF, $81, $FF, $BD, $FF, $A5, $E7, $A5, $E7, $BD, $FF, $81 db $FF, $FF, $FF, $FF, $FF, $81, $81, $BD, $83, $BD, $83, $BD db $83, $BD, $83, $81, $FF, $FF, $FF, $ED, $93, $BF, $C1, $F5 db $8B, $DF, $A1, $FD, $83, $AF, $D1, $FB, $85, $DF, $A1, $FD db $83, $EF, $91, $BB, $C5, $EF, $91, $BD, $C3, $F7, $89, $DF db $A1, $FF, $FF, $FF, $FF, $DB, $A4, $FF, $80, $B5, $CA, $FF db $80, $DD, $A2, $F7, $88, $FF, $FF, $FF, $FF, $57, $A8, $FD db $02, $DF, $20, $7B, $84, $EE, $11, $BB, $44, $FF, $FF, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $77, $89, $DF, $21, $FB, $05, $AF, $51, $FD, $03, $D7 db $29, $FF, $FF, $00, $00, $3C, $00, $66, $00, $66, $00, $66 db $00, $66, $00, $3C, $00, $00, $00, $00, $00, $18, $00, $38 db $00, $18, $00, $18, $00, $18, $00, $3C, $00, $00, $00, $00 db $00, $3C, $00, $4E, $00, $0E, $00, $3C, $00, $70, $00, $7E db $00, $00, $00, $00, $00, $7C, $00, $0E, $00, $3C, $00, $0E db $00, $0E, $00, $7C, $00, $00, $00, $00, $00, $3C, $00, $6C db $00, $4C, $00, $4E, $00, $7E, $00, $0C, $00, $00, $00, $00 db $00, $7C, $00, $60, $00, $7C, $00, $0E, $00, $4E, $00, $3C db $00, $00, $00, $00, $00, $3C, $00, $60, $00, $7C, $00, $66 db $00, $66, $00, $3C, $00, $00, $00, $00, $00, $7E, $00, $06 db $00, $0C, $00, $18, $00, $38, $00, $38, $00, $00, $00, $00 db $00, $3C, $00, $4E, $00, $3C, $00, $4E, $00, $4E, $00, $3C db $00, $00, $00, $00, $00, $3C, $00, $4E, $00, $4E, $00, $3E db $00, $0E, $00, $3C, $00, $00, $00, $00, $00, $7C, $00, $66 db $00, $66, $00, $7C, $00, $60, $00, $60, $00, $00, $00, $00 db $00, $7E, $00, $60, $00, $7C, $00, $60, $00, $60, $00, $7E db $00, $00, $00, $00, $00, $7E, $00, $60, $00, $60, $00, $7C db $00, $60, $00, $60, $00, $00, $00, $00, $00, $3C, $00, $66 db $00, $66, $00, $66, $00, $66, $00, $3C, $00, $00, $00, $00 db $00, $3C, $00, $66, $00, $60, $00, $6E, $00, $66, $00, $3E db $00, $00, $00, $00, $00, $46, $00, $6E, $00, $7E, $00, $56 db $00, $46, $00, $46, $00, $00, $00, $00, $00, $46, $00, $46 db $00, $46, $00, $46, $00, $4E, $00, $3C, $00, $00, $00, $00 db $00, $3C, $00, $60, $00, $3C, $00, $0E, $00, $4E, $00, $3C db $00, $00, $00, $00, $00, $3C, $00, $18, $00, $18, $00, $18 db $00, $18, $00, $3C, $00, $00, $00, $00, $00, $60, $00, $60 db $00, $60, $00, $60, $00, $60, $00, $7E, $00, $00, $00, $00 db $00, $46, $00, $46, $00, $46, $00, $46, $00, $2C, $00, $18 db $00, $00, $00, $00, $00, $7C, $00, $66, $00, $66, $00, $7C db $00, $68, $00, $66, $00, $00, $00, $00, $00, $46, $00, $66 db $00, $76, $00, $5E, $00, $4E, $00, $46, $00, $00, $00, $00 db $00, $7C, $00, $4E, $00, $4E, $00, $4E, $00, $4E, $00, $7C db $00, $00, $00, $FF, $FF, $FF, $00, $FF, $00, $FF, $00, $FF db $10, $FF, $80, $FF, $02, $FF, $00, $00, $00, $FF, $FF, $FF db $FF, $FF, $00, $FF, $02, $FF, $20, $FF, $FF, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $FF, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $FF, $FF, $80, $80, $80, $80, $FF, $FF, $FF db $00, $FF, $02, $FF, $20, $FF, $00, $FF, $00, $FF, $00, $FF db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $07, $07, $18, $1F, $21, $3E, $47, $7F, $5F db $7F, $39, $30, $7B, $62, $FB, $B2, $FF, $A0, $FF, $C2, $7F db $54, $7F, $5C, $3F, $2E, $7F, $63, $BF, $F8, $37, $FF, $01 db $01, $01, $01, $01, $01, $01, $01, $01, $01, $01, $01, $01 db $01, $83, $83, $01, $01, $01, $01, $01, $01, $01, $01, $01 db $01, $01, $01, $01, $01, $FF, $FF, $FF, $FF, $01, $01, $01 db $01, $01, $01, $01, $01, $01, $01, $01, $01, $83, $83, $FF db $FF, $D9, $87, $D9, $87, $D9, $87, $D9, $87, $D9, $87, $D9 db $87, $D9, $87, $D9, $87, $D9, $87, $D9, $87, $D9, $87, $D9 db $87, $D9, $87, $D9, $87, $FF, $FF, $D9, $87, $D9, $87, $D9 db $87, $D9, $87, $D9, $87, $D9, $87, $D9, $87, $D9, $87, $00 db $38, $00, $38, $00, $38, $00, $38, $00, $38, $00, $38, $00 db $38, $00, $38, $7C, $00, $7C, $00, $7C, $00, $7C, $00, $7C db $00, $7C, $00, $7F, $00, $FF, $00, $00, $00, $00, $00, $08 db $00, $08, $00, $08, $00, $08, $00, $1C, $00, $1C, $00, $00 db $00, $00, $0E, $01, $1D, $1E, $06, $2A, $2A, $27, $27, $10 db $13, $0C, $0D, $00, $00, $C0, $C0, $20, $20, $10, $D0, $D0 db $10, $F0, $30, $C8, $E8, $08, $E8, $04, $07, $03, $03, $0C db $0C, $10, $10, $35, $20, $2A, $20, $3F, $3F, $0C, $0C, $28 db $E8, $D8, $C0, $40, $40, $20, $20, $50, $10, $B0, $10, $F0 db $F0, $C0, $C0, $00, $E0, $01, $71, $32, $42, $34, $35, $55 db $54, $4F, $4E, $21, $27, $18, $1B, $00, $00, $80, $80, $40 db $40, $20, $A0, $A0, $20, $E0, $60, $90, $F0, $08, $C8, $B8 db $B8, $84, $84, $84, $84, $FC, $FC, $92, $92, $92, $92, $6C db $6C, $EE, $EE, $07, $07, $1F, $18, $3E, $20, $7F, $4F, $7F db $5F, $70, $70, $A2, $A2, $B0, $B0, $B4, $B4, $64, $64, $3C db $3C, $2E, $2E, $27, $27, $10, $10, $6C, $7C, $CF, $B3, $03 db $03, $03, $03, $03, $02, $07, $06, $09, $09, $16, $17, $12 db $11, $0E, $0F, $08, $09, $08, $08, $0F, $0F, $08, $08, $09 db $09, $0A, $0A, $06, $06, $0E, $0E, $03, $03, $03, $03, $03 db $02, $1F, $1E, $21, $21, $4A, $55, $4A, $75, $0A, $35, $0A db $15, $08, $08, $0F, $0F, $08, $08, $09, $09, $0A, $0A, $06 db $06, $0E, $0E, $00, $00, $66, $00, $6C, $00, $78, $00, $78 db $00, $6C, $00, $66, $00, $00, $00, $00, $00, $46, $00, $2C db $00, $18, $00, $38, $00, $64, $00, $42, $00, $00, $00, $FD db $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD, $FD db $FD, $FD, $FD, $F8, $00, $E0, $00, $C0, $00, $80, $00, $80 db $00, $00, $00, $00, $00, $00, $00, $7F, $00, $1F, $00, $0F db $00, $07, $00, $07, $00, $03, $00, $03, $00, $03, $00, $00 db $00, $80, $00, $80, $00, $C0, $00, $E0, $00, $F8, $00, $FF db $00, $FF, $00, $03, $00, $07, $00, $07, $00, $0F, $00, $1F db $00, $7F, $00, $FF, $00, $FF, $00, $FF, $FF, $FF, $FF, $00 db $FF, $FF, $FF, $00, $FF, $FF, $00, $00, $FF, $FF, $00, $FF db $00, $FF, $00, $FF, $01, $FE, $02, $FE, $02, $FC, $04, $FC db $04, $FC, $04, $FF, $02, $FF, $01, $FF, $01, $01, $01, $FF db $01, $01, $01, $FF, $01, $01, $01, $02, $02, $02, $02, $03 db $03, $04, $05, $08, $09, $11, $12, $21, $26, $43, $4C, $00 db $00, $01, $01, $02, $02, $04, $04, $08, $09, $10, $13, $20 db $27, $20, $2F, $87, $98, $06, $39, $0E, $71, $1E, $E1, $3C db $C3, $3C, $C3, $78, $87, $78, $87, $40, $4F, $40, $4F, $80 db $9F, $80, $9F, $80, $9F, $80, $9F, $80, $9F, $80, $9F, $F8 db $07, $F0, $0F, $F0, $0F, $F0, $0F, $F0, $0F, $F0, $0F, $F0 db $0F, $F8, $07, $40, $5F, $40, $4F, $20, $2F, $20, $27, $10 db $11, $0F, $0F, $04, $04, $07, $07, $78, $87, $7C, $83, $3C db $C3, $1E, $E1, $0F, $F0, $FF, $FF, $FF, $00, $FF, $FF, $FF db $00, $FF, $00, $FF, $00, $00, $00, $FF, $00, $00, $00, $FF db $00, $00, $00, $02, $00, $02, $00, $02, $00, $02, $00, $02 db $00, $02, $00, $02, $00, $02, $00, $10, $00, $38, $00, $7C db $00, $FE, $00, $FE, $00, $FE, $00, $7C, $00, $00, $00, $02 db $03, $01, $01, $02, $02, $04, $04, $0D, $08, $0A, $08, $0F db $0F, $03, $03, $28, $E8, $F0, $D0, $30, $30, $08, $08, $54 db $04, $AC, $04, $FC, $FC, $30, $30, $00, $00, $03, $03, $03 db $03, $03, $02, $07, $06, $09, $09, $08, $08, $0B, $0B, $00 db $00, $C0, $C0, $C4, $C4, $E8, $68, $90, $F0, $A8, $F8, $48 db $78, $F8, $B8, $00, $00, $07, $07, $07, $07, $07, $04, $07 db $04, $0B, $0B, $10, $10, $17, $17, $00, $00, $80, $80, $80 db $80, $E0, $E0, $90, $F0, $A8, $F8, $48, $78, $B8, $B8, $08 db $08, $0F, $0F, $08, $08, $0F, $0F, $09, $09, $09, $09, $06 db $06, $0E, $0E, $E4, $E4, $22, $22, $20, $20, $E0, $E0, $20 db $20, $20, $20, $C0, $C0, $E0, $E0, $18, $18, $98, $98, $98 db $98, $F8, $F8, $9C, $98, $3C, $3C, $3C, $3C, $7E, $7E, $7F db $00, $FE, $FE, $7E, $7E, $FE, $DA, $7E, $5A, $7E, $7E, $FC db $FC, $F8, $F8, $FE, $0E, $FE, $FE, $7E, $7E, $FE, $DA, $7E db $5A, $7E, $7E, $FC, $FC, $F8, $F8, $80, $80, $83, $83, $83 db $83, $C3, $02, $EF, $2E, $97, $97, $47, $44, $24, $24, $00 db $00, $C0, $C0, $C0, $C0, $C0, $40, $E0, $60, $F8, $F8, $E4 db $24, $34, $34, $17, $14, $17, $14, $17, $14, $1C, $1F, $17 db $17, $0F, $0F, $1E, $1E, $00, $00, $F4, $24, $F8, $28, $E8 db $28, $38, $F8, $E8, $E8, $90, $90, $70, $70, $78, $78, $03 db $03, $03, $03, $03, $02, $0F, $0E, $11, $11, $37, $37, $71 db $52, $7D, $4E, $C0, $C0, $C0, $C0, $C0, $40, $C0, $40, $A0 db $A0, $10, $10, $FF, $FF, $CF, $33, $7F, $40, $3F, $3F, $08 db $08, $0F, $0F, $09, $09, $09, $09, $06, $06, $0E, $0E, $FC db $FC, $20, $20, $20, $20, $E0, $E0, $20, $20, $20, $20, $C0 db $C0, $E0, $E0, $03, $03, $03, $03, $03, $02, $07, $06, $09 db $09, $33, $33, $77, $54, $73, $4C, $18, $18, $D8, $D8, $D8 db $D8, $F8, $78, $DC, $58, $BC, $BC, $3C, $3C, $7E, $7E, $09 db $0E, $07, $07, $08, $0F, $08, $0F, $09, $0F, $0A, $0E, $06 db $06, $0E, $0E, $00, $00, $03, $03, $03, $03, $03, $02, $FF db $7E, $C9, $3F, $78, $7F, $09, $0F, $04, $04, $07, $07, $B8 db $BF, $C0, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00, $00 db $00, $78, $78, $78, $78, $7B, $48, $60, $5F, $B6, $B0, $84 db $84, $B8, $B8, $84, $84, $84, $84, $84, $84, $FA, $FA, $92 db $92, $9E, $9E, $67, $67, $E0, $E0, $00, $00, $00, $00, $78 db $78, $78, $78, $78, $48, $40, $7E, $B4, $B0, $84, $84, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7B db $30, $31, $31, $31, $31, $31, $32, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $44, $1C, $0C, $18 db $1B, $0E, $45, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $67, $46, $46, $46, $46, $46, $68, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7B db $2F, $2F, $2F, $2F, $2F, $00, $2F, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $43, $34, $34, $34 db $34, $34, $34, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $30, $31, $31, $31, $31, $31, $32, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7B db $36, $15, $0E, $1F, $0E, $15, $37, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $36, $2F, $2F, $2F db $2F, $2F, $37, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $40, $42, $42, $42, $42, $42, $41, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7B db $36, $15, $12, $17, $0E, $1C, $37, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $36, $2F, $2F, $2F db $2F, $2F, $37, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $33, $34, $34, $34, $34, $34, $35, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7B db $2B, $38, $39, $39, $39, $39, $3A, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $2B, $3B, $2F, $2F db $2F, $2F, $3C, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $2B, $3B, $2F, $2F, $2F, $2F, $3C, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7B db $2B, $3B, $2F, $2F, $2F, $2F, $3C, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $2B, $3B, $2F, $2F db $2F, $2F, $3C, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $2B, $3D, $3E, $3E, $3E, $3E, $3F, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F SECTION "Data2", romx db $2F, $2F, $2F, $7B db $30, $31, $31, $31, $31, $31, $32, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $36, $15, $0E, $1F db $0E, $15, $37, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $36, $2F, $2F, $2F, $2F, $2F, $37, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7B db $40, $42, $42, $42, $42, $42, $41, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $36, $11, $12, $10 db $11, $2F, $37, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $36, $2F, $2F, $2F, $2F, $2F, $37, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7B db $33, $34, $34, $34, $34, $34, $35, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $2B, $8E, $8E, $8E db $8E, $8E, $8E, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $30, $31, $31, $31, $31, $31, $32, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7B db $36, $15, $12, $17, $0E, $1C, $37, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $36, $2F, $2F, $02 db $05, $2F, $37, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $33, $34, $34, $34, $34, $34, $35, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7B db $2B, $38, $39, $39, $39, $39, $3A, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $2B, $3B, $2F, $2F db $2F, $2F, $3C, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $2B, $3B, $2F, $2F, $2F, $2F, $3C, $2A db $7B, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7B db $2B, $3B, $2F, $2F, $2F, $2F, $3C, $2A, $7C, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $7C, $2B, $3B, $2F, $2F db $2F, $2F, $3C, $2A, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $7D, $2B, $3D, $3E, $3E, $3E, $3E, $3F, $00 db $3C, $66, $66, $66, $66, $3C, $00, $00, $18, $38, $18, $18 db $18, $3C, $00, $00, $3C, $4E, $0E, $3C, $70, $7E, $00, $00 db $7C, $0E, $3C, $0E, $0E, $7C, $00, $00, $3C, $6C, $4C, $4E db $7E, $0C, $00, $00, $7C, $60, $7C, $0E, $4E, $3C, $00, $00 db $3C, $60, $7C, $66, $66, $3C, $00, $00, $7E, $06, $0C, $18 db $38, $38, $00, $00, $3C, $4E, $3C, $4E, $4E, $3C, $00, $00 db $3C, $4E, $4E, $3E, $0E, $3C, $00, $00, $3C, $4E, $4E, $7E db $4E, $4E, $00, $00, $7C, $66, $7C, $66, $66, $7C, $00, $00 db $3C, $66, $60, $60, $66, $3C, $00, $00, $7C, $4E, $4E, $4E db $4E, $7C, $00, $00, $7E, $60, $7C, $60, $60, $7E, $00, $00 db $7E, $60, $60, $7C, $60, $60, $00, $00, $3C, $66, $60, $6E db $66, $3E, $00, $00, $46, $46, $7E, $46, $46, $46, $00, $00 db $3C, $18, $18, $18, $18, $3C, $00, $00, $1E, $0C, $0C, $6C db $6C, $38, $00, $00, $66, $6C, $78, $78, $6C, $66, $00, $00 db $60, $60, $60, $60, $60, $7E, $00, $00, $46, $6E, $7E, $56 db $46, $46, $00, $00, $46, $66, $76, $5E, $4E, $46, $00, $00 db $3C, $66, $66, $66, $66, $3C, $00, $00, $7C, $66, $66, $7C db $60, $60, $00, $00, $3C, $62, $62, $6A, $64, $3A, $00, $00 db $7C, $66, $66, $7C, $68, $66, $00, $00, $3C, $60, $3C, $0E db $4E, $3C, $00, $00, $7E, $18, $18, $18, $18, $18, $00, $00 db $46, $46, $46, $46, $4E, $3C, $00, $00, $46, $46, $46, $46 db $2C, $18, $00, $00, $46, $46, $56, $7E, $6E, $46, $00, $00 db $46, $2C, $18, $38, $64, $42, $00, $00, $66, $66, $3C, $18 db $18, $18, $00, $00, $7E, $0E, $1C, $38, $70, $7E, $00, $00 db $00, $00, $00, $00, $60, $60, $00, $00, $00, $00, $3C, $3C db $00, $00, $00, $00, $00, $22, $14, $08, $14, $22, $00, $00 db $00, $36, $36, $5F, $49, $5F, $41, $7F, $41, $3E, $22, $1C db $14, $08, $08, $FF, $FF, $FF, $81, $C1, $BF, $C1, $BF, $C1 db $BF, $C1, $BF, $81, $FF, $FF, $FF, $AA, $AA, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $FE db $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE db $FE, $FE, $FE, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F db $7F, $7F, $7F, $7F, $7F, $7F, $7F, $FF, $00, $FF, $40, $FF db $02, $FF, $00, $FF, $10, $FF, $80, $FF, $02, $FF, $00, $F0 db $10, $FF, $1F, $FF, $00, $FF, $40, $FF, $00, $FF, $02, $FF db $40, $FF, $00, $0F, $08, $FF, $F8, $FF, $00, $FF, $02, $FF db $00, $FF, $40, $FF, $02, $FF, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $18, $18, $38, $38, $18, $18, $18, $18, $18 db $18, $3C, $3C, $00, $00, $00, $00, $3C, $3C, $4E, $4E, $4E db $4E, $3E, $3E, $0E, $0E, $3C, $3C, $00, $00, $00, $00, $3C db $3C, $4E, $4E, $3C, $3C, $4E, $4E, $4E, $4E, $3C, $3C, $00 db $00, $38, $38, $44, $44, $BA, $BA, $A2, $A2, $BA, $BA, $44 db $44, $38, $38, $C6, $C6, $E6, $E6, $E6, $E6, $D6, $D6, $D6 db $D6, $CE, $CE, $CE, $CE, $C6, $C6, $C0, $C0, $C0, $C0, $00 db $00, $DB, $DB, $DD, $DD, $D9, $D9, $D9, $D9, $D9, $D9, $00 db $00, $30, $30, $78, $78, $33, $33, $B6, $B6, $B7, $B7, $B6 db $B6, $B3, $B3, $00, $00, $00, $00, $00, $00, $CD, $CD, $6E db $6E, $EC, $EC, $0C, $0C, $EC, $EC, $01, $01, $01, $01, $01 db $01, $8F, $8F, $D9, $D9, $D9, $D9, $D9, $D9, $CF, $CF, $80 db $80, $80, $80, $80, $80, $9E, $9E, $B3, $B3, $B3, $B3, $B3 db $B3, $9E, $9E, $FF, $00, $FF, $00, $FF, $00, $EF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF db $00, $E7, $00, $E7, $00, $FF, $00, $FF, $00, $FF, $00, $00 db $FF, $FF, $FF, $00, $FF, $00, $FF, $FF, $00, $00, $FF, $FF db $00, $FF, $00, $00, $FF, $FF, $FF, $01, $FF, $02, $FE, $FE db $02, $04, $FC, $FC, $04, $FC, $04, $00, $FF, $FF, $FF, $80 db $FF, $40, $7F, $FF, $40, $E0, $3F, $FF, $20, $BF, $60, $FF db $00, $FF, $00, $FF, $01, $FE, $02, $FE, $02, $FC, $04, $FC db $04, $FC, $04, $FF, $00, $FF, $00, $FF, $80, $7F, $40, $FF db $40, $FF, $20, $FF, $20, $BF, $60, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $FF db $02, $FF, $01, $FF, $01, $FF, $01, $FF, $01, $FF, $01, $FF db $01, $FF, $01, $7F, $C0, $FF, $80, $FF, $80, $FF, $80, $FF db $80, $FF, $80, $FF, $80, $FF, $80, $FE, $02, $FE, $02, $FF db $03, $FC, $05, $F8, $09, $F1, $12, $E1, $26, $C3, $4C, $7F db $C0, $7F, $C0, $FF, $C0, $BF, $60, $9F, $70, $AF, $58, $27 db $DC, $33, $CE, $FF, $00, $FF, $01, $FE, $02, $FC, $04, $F8 db $09, $F0, $13, $E0, $27, $E0, $2F, $87, $98, $06, $39, $0E db $71, $1E, $E1, $3C, $C3, $3C, $C3, $78, $87, $78, $87, $35 db $CB, $32, $CD, $3A, $C5, $79, $86, $78, $87, $78, $87, $7C db $83, $7C, $83, $FF, $00, $FF, $80, $7F, $C0, $3F, $E0, $9F db $70, $4F, $B8, $67, $9C, $37, $CC, $C0, $4F, $C0, $4F, $80 db $9F, $80, $9F, $80, $9F, $80, $9F, $80, $9F, $80, $9F, $F8 db $07, $F0, $0F, $F0, $0F, $F0, $0F, $F0, $0F, $F0, $0F, $F0 db $0F, $F8, $07, $7C, $83, $7E, $81, $7E, $81, $3E, $C1, $3F db $C0, $1F, $E0, $1F, $E0, $1F, $E0, $33, $CE, $1B, $E6, $09 db $F7, $0D, $F3, $0D, $F3, $0D, $F3, $0D, $F3, $09, $F7, $C0 db $5F, $C0, $4F, $E0, $2F, $E0, $27, $F0, $11, $BF, $4F, $0C db $F4, $07, $FF, $78, $87, $7C, $83, $3C, $C3, $1E, $E1, $0F db $F0, $FF, $FF, $FF, $00, $FF, $FF, $0F, $F0, $0F, $F0, $0E db $F1, $0E, $F1, $06, $F9, $FF, $FF, $C5, $3F, $FF, $FF, $1B db $E6, $13, $EE, $37, $CC, $27, $DC, $4F, $B8, $FC, $F3, $FC db $A3, $E0, $FF, $FE, $02, $FE, $02, $BF, $43, $1C, $E5, $B8 db $49, $B1, $52, $A1, $66, $43, $CC, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $EF, $10, $C7, $38, $FF db $00, $FB, $04, $FB, $04, $FB, $04, $FB, $04, $F1, $0E, $F1 db $0E, $F1, $0E, $83, $7C, $01, $FE, $01, $FE, $01, $FE, $83 db $7C, $FF, $00, $83, $7C, $83, $7C, $F1, $0E, $E0, $1F, $E0 db $1F, $E0, $1F, $E0, $1F, $E0, $1F, $80, $7F, $80, $7F, $F7 db $08, $EB, $14, $F7, $08, $F7, $08, $E3, $1C, $E3, $1C, $63 db $9C, $01, $FE, $00, $00, $60, $60, $70, $70, $78, $78, $78 db $78, $70, $70, $60, $60, $00, $00, $00, $00, $30, $30, $70 db $70, $30, $30, $30, $30, $30, $30, $78, $78, $00, $00, $E0 db $E0, $F0, $E0, $FB, $E0, $FC, $E0, $FC, $E1, $FC, $E1, $FC db $E1, $FC, $E1, $00, $00, $00, $00, $FF, $00, $00, $00, $00 db $FF, $00, $00, $00, $00, $00, $00, $07, $07, $0F, $07, $DF db $07, $3F, $07, $3F, $87, $3F, $87, $3F, $87, $3F, $87, $FC db $E1, $FC, $E1, $FC, $E1, $FC, $E1, $FC, $E1, $FC, $E1, $FC db $E1, $FC, $E1, $3F, $87, $3F, $87, $3F, $87, $3F, $87, $3F db $87, $3F, $87, $3F, $87, $3F, $87, $FC, $E1, $FC, $E1, $FC db $E1, $FC, $E1, $FC, $E0, $FF, $E7, $FF, $EF, $E0, $FF, $00 db $00, $00, $00, $00, $00, $00, $FF, $00, $00, $FF, $FF, $FF db $FF, $00, $FF, $3F, $87, $3F, $87, $3F, $87, $3F, $87, $3F db $07, $FF, $E7, $FF, $F7, $07, $FF, $F8, $00, $E0, $00, $C0 db $00, $80, $00, $80, $00, $00, $00, $00, $00, $00, $00, $7F db $00, $1F, $00, $0F, $00, $07, $00, $07, $00, $03, $00, $03 db $00, $03, $00, $00, $00, $80, $00, $80, $00, $C0, $00, $E0 db $00, $F8, $00, $FF, $00, $FF, $00, $03, $00, $07, $00, $07 db $00, $0F, $00, $1F, $00, $7F, $00, $FF, $00, $FF, $00, $01 db $01, $01, $01, $81, $81, $C1, $C1, $C1, $C1, $E1, $E1, $F1 db $F1, $F9, $F9, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE, $FE db $FE, $FE, $FE, $FE, $FE, $FE, $FE, $7E, $7E, $7F, $7F, $7F db $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F, $7F db $7F, $3F, $3F, $9F, $9F, $8F, $8F, $CF, $CF, $E7, $E7, $F3 db $F3, $F7, $F7, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0, $E0 db $E0, $C0, $C0, $C0, $C0, $80, $80, $F0, $F0, $F0, $F0, $F0 db $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $F0, $00 db $00, $7C, $7C, $47, $47, $41, $41, $40, $40, $40, $40, $40 db $40, $7F, $40, $00, $00, $01, $01, $01, $01, $81, $81, $C1 db $C1, $41, $41, $61, $61, $E1, $61, $00, $00, $FE, $FE, $06 db $06, $06, $06, $06, $06, $06, $06, $06, $06, $FE, $06, $00 db $00, $1B, $1B, $32, $32, $59, $59, $4C, $4C, $8C, $8C, $86 db $86, $FF, $83, $00, $00, $FF, $FF, $01, $01, $01, $01, $81 db $81, $41, $41, $41, $41, $3F, $21, $00, $00, $BE, $BE, $88 db $88, $88, $88, $88, $88, $88, $88, $80, $80, $80, $80, $00 db $00, $88, $88, $D8, $D8, $A8, $A8, $88, $88, $88, $88, $00 db $00, $00, $00, $7F, $40, $7F, $40, $7F, $40, $7F, $40, $7F db $40, $7F, $40, $7F, $40, $47, $7F, $E1, $61, $E1, $61, $E1 db $61, $E1, $61, $E1, $61, $C1, $C1, $C1, $C1, $81, $81, $FE db $06, $FE, $06, $FE, $06, $FE, $06, $FE, $06, $FE, $06, $FE db $06, $06, $FE, $FF, $83, $FF, $81, $7F, $40, $7F, $40, $7F db $40, $3F, $20, $3F, $20, $10, $1F, $1F, $11, $9F, $91, $CF db $C9, $C7, $C5, $E3, $63, $F3, $33, $F9, $19, $08, $F8, $80 db $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $5F, $7F, $78, $78, $60, $60, $50, $70, $50 db $70, $48, $78, $44, $7C, $7E, $7E, $01, $01, $01, $01, $01 db $01, $01, $01, $01, $01, $01, $01, $01, $01, $01, $01, $06 db $FE, $06, $FE, $06, $FE, $06, $FE, $06, $FE, $06, $FE, $06 db $FE, $FE, $FE, $08, $0F, $44, $47, $64, $67, $72, $73, $51 db $71, $59, $79, $4C, $7C, $7E, $7E, $0C, $FC, $06, $FE, $03 db $FF, $01, $FF, $01, $FF, $00, $FF, $80, $FF, $7F, $7F, $00 db $00, $00, $00, $00, $00, $80, $80, $80, $80, $C0, $C0, $C0 db $C0, $E0, $E0, $7E, $7E, $7F, $7F, $7F, $7F, $7F, $7F, $7F db $7F, $7F, $7F, $7F, $7F, $7F, $7F, $00, $00, $03, $03, $02 db $02, $02, $02, $02, $02, $02, $02, $02, $02, $03, $02, $00 db $00, $FB, $FB, $0A, $0A, $12, $12, $22, $22, $22, $22, $42 db $42, $C3, $42, $00, $00, $FD, $FD, $0D, $0D, $0C, $0C, $0C db $0C, $0C, $0C, $0C, $0C, $FC, $0C, $00, $00, $FC, $FC, $0C db $0C, $8C, $8C, $4C, $4C, $4C, $4C, $2C, $2C, $3C, $2C, $03 db $02, $03, $02, $03, $03, $03, $03, $02, $02, $00, $00, $00 db $00, $00, $00, $83, $82, $83, $82, $03, $02, $03, $02, $03 db $02, $03, $02, $03, $02, $02, $03, $FC, $0C, $FC, $0C, $FC db $0C, $FC, $0C, $FC, $0C, $FC, $0C, $FC, $0C, $0C, $FC, $1C db $1C, $1C, $1C, $0C, $0C, $0C, $0C, $04, $04, $00, $00, $00 db $00, $00, $00, $02, $03, $02, $03, $02, $03, $02, $03, $02 db $03, $02, $03, $02, $03, $03, $03, $0C, $FC, $0C, $FC, $0C db $FC, $0C, $FC, $0C, $FC, $0C, $FC, $0C, $FC, $FC, $FC, $03 db $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03, $03 db $03, $03, $03, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FC db $FC, $FC, $FC, $FC, $FC, $FC, $FC, $FF, $00, $FF, $00, $FF db $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $00 db $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $00, $00, $01, $01, $03 db $03, $07, $07, $0F, $0F, $1F, $1F, $3F, $3F, $7F, $7F, $00 db $00, $FF, $FF, $83, $83, $83, $83, $83, $83, $83, $83, $83 db $83, $FF, $83, $00, $00, $7F, $7F, $20, $20, $10, $10, $08 db $08, $04, $04, $02, $02, $01, $01, $00, $00, $F3, $F3, $32 db $32, $32, $32, $32, $32, $32, $32, $32, $32, $F3, $32, $FF db $83, $FF, $83, $FF, $83, $FF, $83, $FF, $83, $FF, $83, $FF db $83, $83, $FF, $00, $00, $00, $00, $01, $01, $03, $03, $07 db $07, $0F, $0B, $1F, $13, $23, $3F, $F3, $B2, $73, $72, $33 db $33, $13, $13, $02, $02, $00, $00, $00, $00, $00, $00, $83 db $FF, $83, $FF, $83, $FF, $83, $FF, $83, $FF, $83, $FF, $83 db $FF, $FF, $FF, $43, $7F, $23, $3F, $13, $1F, $0B, $0F, $07 db $07, $03, $03, $01, $01, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $10, $10, $30, $30, $70, $70, $00 db $00, $78, $78, $9C, $9C, $1C, $1C, $78, $78, $E0, $E0, $FC db $FC, $00, $00, $FF, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $1B, $1B, $1B, $1B, $09 db $09, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $60, $60, $60, $60, $20 db $20, $00, $00, $1B, $1B, $1B, $1B, $09, $09, $00, $00, $00 db $00, $60, $60, $60, $60, $00, $00, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $9B, $1D, $16, $2F, $0A, $17, $0D, $2F, $33 db $01, $09, $08, $07, $2F, $0E, $15, $18, $1B, $10, $9C, $2F db $1D, $0E, $1D, $1B, $12, $1C, $2F, $15, $12, $0C, $0E, $17 db $1C, $0E, $0D, $2F, $1D, $18, $2F, $2F, $2F, $2F, $2F, $0B db $1E, $15, $15, $0E, $1D, $25, $19, $1B, $18, $18, $0F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $1C, $18, $0F, $1D, $20 db $0A, $1B, $0E, $2F, $0A, $17, $0D, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $1C, $1E, $0B, $25, $15, $12, $0C, $0E, $17, $1C db $0E, $0D, $2F, $1D, $18, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $17, $12, $17, $1D, $0E, $17, $0D, $18, $24, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $33, $01, $09, $08, $09, $2F, $0B, $1E, $15, $15, $0E, $1D db $25, $19, $1B, $18, $18, $0F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $1C, $18, $0F, $1D, $20, $0A, $1B, $0E, $24, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $33, $30, $31, $32, $31, $2F db $34, $35, $36, $37, $38, $39, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $0A, $15, $15, $2F, $1B db $12, $10, $11, $1D, $1C, $2F, $1B, $0E, $1C, $0E, $1B, $1F db $0E, $0D, $24, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $18, $1B, $12, $10, $12, $17, $0A, $15, $2F, $0C, $18 db $17, $0C, $0E, $19, $1D, $9C, $2F, $2F, $0D, $0E, $1C, $12 db $10, $17, $2F, $0A, $17, $0D, $2F, $19, $1B, $18, $10, $1B db $0A, $16, $2F, $0B, $22, $2F, $0A, $15, $0E, $21, $0E, $22 db $2F, $19, $0A, $23, $11, $12, $1D, $17, $18, $1F, $9D, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $8E, $8E, $8E, $8E, $8E db $8E, $8E, $8E, $8E, $8E, $8E, $8E, $8E, $8E, $8E, $8E, $8E db $8E, $8E, $8E, $5A, $5B, $5B, $5B, $5B, $5B, $5B, $5B, $5B db $5B, $5B, $5B, $5B, $5B, $5B, $5B, $5B, $5B, $5B, $5C, $5D db $80, $81, $82, $83, $90, $91, $92, $81, $82, $83, $90, $6C db $6D, $6E, $6F, $70, $71, $72, $5E, $5D, $84, $85, $86, $87 db $93, $94, $95, $85, $86, $87, $93, $73, $74, $75, $76, $77 db $78, $2F, $5E, $5D, $2F, $88, $89, $2F, $96, $97, $98, $88 db $89, $2F, $96, $79, $7A, $7B, $7C, $7D, $7E, $2F, $5E, $5D db $2F, $8A, $8B, $2F, $8E, $8F, $6B, $8A, $8B, $2F, $8E, $7F db $66, $67, $68, $69, $6A, $2F, $5E, $5F, $60, $60, $60, $60 db $60, $60, $60, $60, $60, $60, $60, $60, $60, $60, $60, $60 db $60, $60, $61, $8E, $3C, $3C, $3C, $3C, $3C, $3C, $3C, $3C db $3C, $3C, $3C, $3C, $3C, $3D, $3E, $3C, $3C, $3C, $8E, $8E db $8C, $8C, $62, $63, $8C, $8C, $3A, $8C, $8C, $8C, $8C, $8C db $3A, $42, $43, $3B, $8C, $8C, $8E, $8E, $3A, $8C, $64, $65 db $8C, $8C, $8C, $8C, $3B, $8C, $8C, $8C, $8C, $44, $45, $8C db $8C, $8C, $8E, $8E, $8C, $8C, $8C, $8C, $8C, $8C, $8C, $8C db $8C, $8C, $8C, $8C, $46, $47, $48, $49, $3F, $40, $8E, $8E db $8C, $8C, $8C, $8C, $3A, $8C, $8C, $8C, $8C, $53, $54, $8C db $4A, $4B, $4C, $4D, $42, $43, $8E, $8E, $8C, $8C, $8C, $8C db $8C, $8C, $8C, $8C, $54, $55, $56, $57, $4E, $4F, $50, $51 db $52, $45, $8E, $41, $41, $41, $41, $41, $41, $41, $41, $41 db $41, $41, $41, $41, $41, $41, $41, $41, $41, $41, $41, $2F db $2F, $59, $19, $15, $0A, $22, $0E, $1B, $2F, $2F, $2F, $99 db $19, $15, $0A, $22, $0E, $1B, $2F, $2F, $2F, $9A, $9A, $9A db $9A, $9A, $9A, $9A, $2F, $2F, $2F, $9A, $9A, $9A, $9A, $9A db $9A, $9A, $2F, $2F, $2F, $2F, $2F, $33, $30, $31, $32, $31 db $2F, $34, $35, $36, $37, $38, $39, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $47, $48, $48, $48, $48 db $48, $48, $48, $48, $48, $48, $48, $48, $48, $48, $48, $48 db $48, $48, $49, $4A, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C db $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $4B, $4A db $2C, $2C, $2C, $50, $51, $51, $51, $51, $51, $51, $51, $51 db $51, $52, $2C, $2C, $2C, $2C, $4B, $4A, $2C, $2C, $2C, $53 db $10, $0A, $16, $0E, $2F, $1D, $22, $19, $0E, $54, $2C, $2C db $2C, $2C, $4B, $4A, $2C, $55, $56, $6D, $58, $58, $58, $58 db $58, $A9, $58, $58, $58, $6E, $56, $56, $5A, $2C, $4B, $4A db $2C, $5B, $78, $77, $7E, $7F, $9A, $9B, $2F, $AA, $79, $77 db $7E, $7F, $9A, $9B, $5C, $2C, $4B, $4A, $2C, $2D, $4F, $4F db $4F, $4F, $4F, $4F, $4F, $AC, $4F, $4F, $4F, $4F, $4F, $4F db $2E, $2C, $4B, $4A, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C db $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $4B, $4A db $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C db $2C, $2C, $2C, $2C, $2C, $2C, $4B, $4A, $2C, $2C, $2C, $50 db $51, $51, $51, $51, $51, $51, $51, $51, $51, $51, $52, $2C db $2C, $2C, $4B, $4A, $2C, $2C, $2C, $53, $16, $1E, $1C, $12 db $0C, $2F, $1D, $22, $19, $0E, $54, $2C, $2C, $2C, $4B, $4A db $2C, $55, $56, $6D, $58, $58, $58, $58, $58, $A9, $58, $58 db $58, $58, $6E, $56, $5A, $2C, $4B, $4A, $2C, $5B, $78, $77 db $7E, $7F, $9A, $9B, $2F, $AA, $79, $77, $7E, $7F, $9A, $9B db $5C, $2C, $4B, $4A, $2C, $71, $72, $72, $72, $72, $72, $72 db $72, $AB, $72, $72, $72, $72, $72, $72, $74, $2C, $4B, $4A db $2C, $5B, $7A, $77, $7E, $7F, $9A, $9B, $2F, $AA, $2F, $9D db $9C, $9C, $2F, $2F, $5C, $2C, $4B, $4A, $2C, $2D, $4F, $4F db $4F, $4F, $4F, $4F, $4F, $AC, $4F, $4F, $4F, $4F, $4F, $4F db $2E, $2C, $4B, $4A, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C db $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $4B, $4C db $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D db $4D, $4D, $4D, $4D, $4D, $4D, $4E, $47, $48, $48, $48, $48 db $48, $48, $48, $48, $48, $48, $48, $48, $48, $48, $48, $48 db $48, $48, $49, $4A, $2F, $0A, $25, $1D, $22, $19, $0E, $2F db $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $4B, $4A db $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C db $2C, $2C, $2C, $2C, $2C, $2C, $4B, $4A, $2C, $2C, $2C, $2C db $2C, $50, $51, $51, $51, $51, $51, $52, $2C, $2C, $2C, $2C db $2C, $2C, $4B, $4A, $2C, $2C, $2C, $2C, $2C, $53, $15, $0E db $1F, $0E, $15, $54, $2C, $2C, $2C, $2C, $2C, $2C, $4B, $4A db $2C, $2C, $2C, $55, $56, $57, $58, $6C, $58, $6C, $58, $59 db $56, $5A, $2C, $2C, $2C, $2C, $4B, $4A, $2C, $2C, $2C, $5B db $90, $6F, $91, $6F, $92, $6F, $93, $6F, $94, $5C, $2C, $2C db $2C, $2C, $4B, $4A, $2C, $2C, $2C, $71, $72, $73, $72, $73 db $72, $73, $72, $73, $72, $74, $2C, $2C, $2C, $2C, $4B, $4A db $2C, $2C, $2C, $5B, $95, $6F, $96, $6F, $97, $6F, $98, $6F db $99, $5C, $2C, $2C, $2C, $2C, $4B, $4A, $2C, $2C, $2C, $2D db $4F, $6B, $4F, $6B, $4F, $6B, $4F, $6B, $4F, $2E, $2C, $2C db $2C, $2C, $4B, $4A, $2C, $2C, $2C, $50, $51, $51, $51, $51 db $51, $51, $51, $51, $51, $52, $2C, $2C, $2C, $2C, $4B, $4A db $2C, $2C, $2C, $53, $1D, $18, $19, $25, $1C, $0C, $18, $1B db $0E, $54, $2C, $2C, $2C, $2C, $4B, $4A, $55, $56, $70, $6D db $58, $58, $58, $58, $58, $58, $58, $58, $58, $6E, $56, $56 db $56, $5A, $4B, $4A, $5B, $01, $6F, $60, $60, $60, $60, $60 db $60, $2F, $2F, $60, $60, $60, $60, $60, $60, $5C, $4B, $4A db $5B, $02, $6F, $60, $60, $60, $60, $60, $60, $2F, $2F, $60 db $60, $60, $60, $60, $60, $5C, $4B, $4A, $5B, $03, $6F, $60 db $60, $60, $60, $60, $60, $2F, $2F, $60, $60, $60, $60, $60 db $60, $5C, $4B, $4A, $2D, $4F, $6B, $4F, $4F, $4F, $4F, $4F db $4F, $4F, $4F, $4F, $4F, $4F, $4F, $4F, $4F, $2E, $4B, $4C db $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D db $4D, $4D, $4D, $4D, $4D, $4D, $4E, $47, $48, $48, $48, $48 db $48, $48, $48, $48, $48, $48, $48, $48, $48, $48, $48, $48 db $48, $48, $49, $4A, $2F, $0B, $25, $1D, $22, $19, $0E, $2F db $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $4B, $4A db $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C db $2C, $2C, $2C, $2C, $2C, $2C, $4B, $4A, $2C, $2C, $50, $51 db $51, $51, $51, $51, $52, $2C, $2C, $50, $51, $51, $51, $51 db $52, $2C, $4B, $4A, $2C, $2C, $53, $15, $0E, $1F, $0E, $15 db $54, $2C, $2C, $53, $11, $12, $10, $11, $54, $2C, $4B, $4A db $55, $56, $57, $58, $6C, $58, $6C, $58, $59, $56, $5A, $75 db $58, $6C, $58, $6C, $6E, $5A, $4B, $4A, $5B, $90, $6F, $91 db $6F, $92, $6F, $93, $6F, $94, $5C, $5B, $90, $6F, $91, $6F db $92, $5C, $4B, $4A, $71, $72, $73, $72, $73, $72, $73, $72 db $73, $72, $74, $71, $72, $73, $72, $73, $72, $74, $4B, $4A db $5B, $95, $6F, $96, $6F, $97, $6F, $98, $6F, $99, $5C, $5B db $93, $6F, $94, $6F, $95, $5C, $4B, $4A, $2D, $4F, $6B, $4F db $6B, $4F, $6B, $4F, $6B, $4F, $2E, $2D, $4F, $6B, $4F, $6B db $4F, $2E, $4B, $4A, $2C, $2C, $2C, $50, $51, $51, $51, $51 db $51, $51, $51, $51, $51, $52, $2C, $2C, $2C, $2C, $4B, $4A db $2C, $2C, $2C, $53, $1D, $18, $19, $25, $1C, $0C, $18, $1B db $0E, $54, $2C, $2C, $2C, $2C, $4B, $4A, $55, $56, $70, $6D db $58, $58, $58, $58, $58, $58, $58, $58, $58, $6E, $56, $56 db $56, $5A, $4B, $4A, $5B, $01, $6F, $60, $60, $60, $60, $60 db $60, $2F, $2F, $60, $60, $60, $60, $60, $60, $5C, $4B, $4A db $5B, $02, $6F, $60, $60, $60, $60, $60, $60, $2F, $2F, $60 db $60, $60, $60, $60, $60, $5C, $4B, $4A, $5B, $03, $6F, $60 db $60, $60, $60, $60, $60, $2F, $2F, $60, $60, $60, $60, $60 db $60, $5C, $4B, $4A, $2D, $4F, $6B, $4F, $4F, $4F, $4F, $4F db $4F, $4F, $4F, $4F, $4F, $4F, $4F, $4F, $4F, $2E, $4B, $4C db $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D db $4D, $4D, $4D, $4D, $4D, $4D, $4E, $CD, $CD, $CD, $CD, $CD db $CD, $CD, $CD, $CD, $CD, $8C, $C9, $CA, $8C, $8C, $8C, $8C db $8C, $8C, $8C, $8C, $CB, $CC, $8C, $8C, $8C, $8C, $8C, $8C db $CE, $D7, $D7, $D7, $D7, $D7, $D7, $D7, $D7, $D7, $CF, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $D0, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $D1, $D2, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $D3, $D4, $7C, $7C, $7C, $7C, $7C, $7C, $2F db $2F, $D5, $D6, $7D, $7D, $7D, $7D, $2F, $2F, $2F, $2F, $D8 db $2F, $7B, $7B, $7B, $7B, $2F, $2F, $2F, $2F, $D8, $2F, $7C db $7C, $7C, $7C, $2F, $2F, $2F, $2F, $D8, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $D8, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $7C, $7C, $7C, $7C, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $7C, $7D, $7D, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $7D, $2F, $2F, $2F, $D9, $2F, $2F, $2F, $2F, $2F, $7B, $B7 db $B8, $D9, $B7, $2F, $7C, $7C, $7C, $7C, $7C, $7D, $7D, $7D db $7D, $7D, $7D, $7D, $7D, $7D, $7D, $FF, $4A, $4A, $4A, $4A db $4A, $4A, $59, $69, $69, $69, $69, $69, $69, $49, $4A, $4A db $4A, $4A, $4A, $4A, $5A, $5A, $5A, $5A, $5A, $5A, $85, $85 db $85, $85, $85, $85, $85, $85, $5A, $5A, $38, $39, $38, $5A db $6A, $6A, $6A, $6A, $6A, $6A, $6A, $6A, $6A, $6A, $6A, $6A db $6A, $6A, $6A, $6A, $6A, $6A, $6A, $6A, $07, $07, $07, $07 db $07, $07, $07, $07, $07, $07, $07, $07, $07, $07, $07, $07 db $07, $07, $07, $07, $47, $48, $48, $48, $48, $48, $48, $48 db $48, $48, $48, $48, $48, $48, $48, $48, $48, $48, $48, $49 db $4A, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C db $2C, $2C, $2C, $2C, $2C, $2C, $2C, $4B, $4A, $2C, $2C, $16 db $0A, $1B, $12, $18, $2F, $1F, $1C, $24, $15, $1E, $12, $10 db $12, $2C, $2C, $4B, $4A, $2C, $2C, $2C, $2C, $2C, $2C, $2C db $2C, $2C, $50, $51, $51, $51, $51, $52, $2C, $2C, $2C, $4B db $4A, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $53, $11 db $12, $10, $11, $54, $2C, $2C, $2C, $4B, $4A, $2C, $2C, $55 db $56, $56, $5A, $2C, $2C, $2C, $75, $58, $6C, $58, $6C, $6E db $5A, $2C, $2C, $4B, $4A, $2C, $2C, $5B, $2F, $2F, $5C, $2C db $2C, $2C, $5B, $90, $6F, $91, $6F, $92, $5C, $2C, $2C, $4B db $4A, $2C, $2C, $5B, $2F, $2F, $5C, $2C, $2C, $2C, $71, $72 db $73, $72, $73, $72, $74, $2C, $2C, $4B, $4A, $2C, $2C, $2D db $4F, $4F, $2E, $2C, $2C, $2C, $5B, $93, $6F, $94, $6F, $95 db $5C, $2C, $2C, $4B, $4A, $2C, $2C, $16, $0A, $1B, $12, $18 db $2C, $2C, $2D, $4F, $6B, $4F, $6B, $4F, $2E, $2C, $2C, $4B db $4A, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $2C, $50, $51 db $51, $51, $51, $52, $2C, $2C, $2C, $4B, $4A, $2C, $2C, $2C db $2C, $2C, $2C, $2C, $2C, $2C, $53, $11, $12, $10, $11, $54 db $2C, $2C, $2C, $4B, $4A, $2C, $2C, $55, $56, $56, $5A, $2C db $2C, $2C, $75, $58, $6C, $58, $6C, $6E, $5A, $2C, $2C, $4B db $4A, $2C, $2C, $5B, $2F, $2F, $5C, $2C, $2C, $2C, $5B, $90 db $6F, $91, $6F, $92, $5C, $2C, $2C, $4B, $4A, $2C, $2C, $5B db $2F, $2F, $5C, $2C, $2C, $2C, $71, $72, $73, $72, $73, $72 db $74, $2C, $2C, $4B, $4A, $2C, $2C, $2D, $4F, $4F, $2E, $2C db $2C, $2C, $5B, $93, $6F, $94, $6F, $95, $5C, $2C, $2C, $4B db $4A, $2C, $2C, $15, $1E, $12, $10, $12, $2C, $2C, $2D, $4F db $6B, $4F, $6B, $4F, $2E, $2C, $2C, $4B, $4C, $4D, $4D, $4D db $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D, $4D db $4D, $4D, $4D, $4E, $8E, $B2, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $B3, $30, $31, $31, $31, $31, $31, $32 db $8E, $B0, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $B5, $36, $2F, $2F, $2F, $2F, $2F, $37, $8E, $B0, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $B5, $36, $2F, $2F db $2F, $2F, $2F, $37, $8E, $B0, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $B5, $40, $42, $42, $42, $42, $42, $41 db $8E, $B0, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $B5, $36, $11, $12, $10, $11, $2F, $37, $8E, $B0, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $B5, $36, $2F, $2F db $2F, $2F, $2F, $37, $8E, $B0, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $B5, $33, $34, $34, $34, $34, $34, $35 db $8E, $B0, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $B5, $2B, $8E, $8E, $8E, $8E, $8E, $8E, $8E, $B0, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $B5, $30, $31, $31 db $31, $31, $31, $32, $8E, $B0, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $B5, $36, $15, $12, $17, $0E, $1C, $37 db $8E, $B0, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $B5, $36, $2F, $2F, $2F, $2F, $2F, $37, $8E, $B0, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $B5, $33, $34, $34 db $34, $34, $34, $35, $8E, $B0, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $B5, $2B, $38, $39, $39, $39, $39, $3A db $8E, $B0, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $B5, $2B, $3B, $2F, $2F, $2F, $2F, $3C, $8E, $B0, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $B5, $2B, $3B, $2F db $2F, $2F, $2F, $3C, $8E, $B0, $2F, $2F, $2F, $2F, $2F, $2F db $2F, $2F, $2F, $2F, $B5, $2B, $3B, $2F, $2F, $2F, $2F, $3C db $8E, $B0, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F db $B5, $2B, $3B, $2F, $2F, $2F, $2F, $3C, $8E, $B1, $2F, $2F db $2F, $2F, $2F, $2F, $2F, $2F, $2F, $2F, $B4, $2B, $3D, $3E db $3E, $3E, $3E, $3F, $07, $07, $07, $07, $07, $07, $84, $87 db $87, $8C, $87, $87, $8C, $87, $87, $8C, $87, $87, $86, $07 db $07, $1E, $1E, $1E, $1E, $1E, $79, $2F, $2F, $8D, $2F, $2F db $8D, $2F, $2F, $8D, $2F, $2F, $88, $07, $07, $B4, $B5, $BB db $2E, $BC, $79, $2F, $2F, $8D, $2F, $2F, $8D, $2F, $2F, $8D db $2F, $2F, $88, $07, $07, $BF, $BF, $BF, $BF, $BF, $89, $8A db $8A, $8E, $8A, $8A, $8E, $8A, $8A, $8E, $8A, $8A, $8B, $07 db $06, $06, $06, $06, $06, $06, $06, $06, $06, $06, $06, $06 db $06, $06, $06, $06, $06, $06, $06, $06, $16, $16, $16, $16 db $16, $16, $16, $16, $16, $16, $16, $16, $16, $16, $16, $16 db $16, $16, $16, $16, $07, $07, $07, $07, $07, $07, $84, $87 db $87, $8C, $87, $87, $8C, $87, $87, $8C, $87, $87, $86, $07 db $07, $1E, $1E, $1E, $1E, $1E, $79, $2F, $2F, $8D, $2F, $2F db $8D, $2F, $2F, $8D, $2F, $2F, $88, $07, $07, $BD, $B2, $2E db $BE, $2E, $79, $2F, $2F, $8D, $2F, $2F, $8D, $2F, $2F, $8D db $2F, $2F, $88, $07, $07, $BF, $BF, $BF, $BF, $BF, $89, $8A db $8A, $8E, $8A, $8A, $8E, $8A, $8A, $8E, $8A, $8A, $8B, $07 db $01, $01, $01, $01, $01, $01, $02, $02, $03, $03, $01, $01 db $01, $01, $02, $02, $00, $00, $00, $00, $00, $00, $00, $00 db $07, $07, $18, $1F, $21, $3E, $47, $7F, $F2, $FE, $12, $1E db $12, $1E, $12, $1E, $7E, $7E, $FF, $83, $FF, $81, $FF, $FF db $00, $00, $00, $00, $00, $00, $00, $00, $07, $07, $18, $1F db $21, $3E, $47, $7F, $04, $FC, $02, $FE, $02, $FE, $07, $FD db $07, $FD, $1F, $FF, $FF, $FF, $FF, $FA, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $07, $07, $18, $1F db $FF, $FF, $77, $11, $FF, $11, $FF, $FF, $DD, $44, $FF, $44 db $FF, $FF, $77, $11, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $00, $00, $03, $03 db $05, $04, $03, $03, $00, $00, $18, $18, $2C, $24, $1A, $1A db $08, $08, $40, $40, $07, $07, $18, $1F, $A0, $BF, $3B, $3F db $7C, $44, $7C, $44, $10, $10, $02, $02, $E0, $E0, $18, $F8 db $05, $FD, $8C, $FC, $78, $48, $6C, $74, $00, $00, $07, $07 db $18, $1F, $20, $3F, $30, $3F, $1F, $1D, $3E, $22, $3E, $22 db $80, $80, $80, $80, $80, $80, $80, $80, $00, $00, $C0, $C0 db $E0, $E0, $E0, $E0, $00, $00, $7C, $7C, $66, $66, $66, $66 db $7C, $7C, $60, $60, $60, $60, $00, $00, $00, $00, $3C, $3C db $60, $60, $3C, $3C, $0E, $0E, $4E, $4E, $3C, $3C, $00, $00 db $07, $07, $1F, $18, $3E, $20, $7F, $4F, $7F, $5F, $70, $70 db $A2, $A2, $B0, $B0, $04, $04, $07, $04, $04, $04, $04, $0D db $04, $0D, $04, $04, $04, $04, $03, $02, $5F, $7F, $39, $30 db $7B, $62, $FB, $B2, $FF, $A0, $FF, $C2, $7F, $54, $7F, $5C db $00, $00, $00, $00, $00, $00, $03, $03, $04, $04, $08, $08 db $09, $09, $04, $04, $5F, $7F, $39, $30, $7B, $62, $FB, $B2 db $FF, $A0, $FF, $C2, $7F, $54, $7F, $5C, $18, $F8, $04, $FC db $02, $FE, $02, $FE, $07, $FD, $07, $FD, $FF, $FF, $FF, $FA db $20, $3F, $40, $7F, $40, $7F, $E0, $BF, $E0, $BF, $F8, $FF db $7F, $7F, $7F, $5F, $FF, $11, $FF, $FF, $DD, $44, $FF, $44 db $FF, $FF, $77, $11, $FF, $11, $FF, $FF, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $80, $80, $C0, $40 db $00, $00, $00, $00, $00, $00, $04, $04, $08, $08, $1C, $14 db $14, $14, $08, $08, $18, $1F, $20, $3F, $40, $7F, $40, $7F db $E0, $BF, $E0, $BF, $7F, $7F, $7F, $5F, $DD, $44, $FF, $44 db $FF, $FF, $77, $11, $FF, $11, $FF, $FF, $DD, $44, $FF, $44 db $00, $00, $00, $00, $00, $00, $20, $20, $10, $10, $38, $28 db $28, $28, $90, $90, $00, $00, $46, $46, $46, $46, $7E, $7E db $46, $46, $46, $46, $46, $46, $00, $00, $00, $00, $7E, $7E db $18, $18, $18, $18, $18, $18, $18, $18, $18, $18, $00, $00 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $00, $00, $00, $EE, $B4, $B4, $64, $64, $3C, $3C, $2E, $2E db $27, $27, $70, $70, $FC, $9C, $F7, $9F, $00, $00, $00, $00 db $00, $00, $01, $01, $01, $01, $02, $02, $02, $02, $02, $02 db $3F, $2E, $7F, $63, $FF, $98, $F7, $1F, $F7, $1C, $F7, $D7 db $34, $3F, $AC, $BF, $03, $03, $01, $01, $01, $01, $00, $00 db $00, $00, $06, $06, $05, $05, $07, $07, $FF, $AE, $FF, $23 db $FF, $18, $F7, $9F, $F7, $9C, $77, $57, $34, $3F, $6C, $7F db $00, $00, $00, $00, $00, $00, $01, $01, $01, $01, $02, $02 db $02, $02, $02, $02, $3F, $2F, $7F, $7C, $F7, $9C, $F3, $1F db $F0, $1F, $F0, $DF, $30, $3F, $A0, $BF, $FF, $F4, $FF, $3E db $EF, $38, $CF, $F8, $0F, $FB, $0E, $FA, $0C, $FC, $04, $FC db $E0, $20, $E0, $20, $E0, $20, $C0, $40, $80, $80, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $01, $01, $01, $01, $02, $02, $02, $02, $3F, $2F, $3F, $3C db $77, $5C, $F3, $9F, $F0, $1F, $F0, $1F, $F0, $FF, $20, $3F db $FF, $F4, $FF, $3E, $EF, $38, $CF, $F9, $0E, $FA, $0E, $FA db $0C, $FC, $04, $FC, $C0, $40, $C0, $40, $C0, $40, $80, $80 db $00, $00, $00, $00, $00, $00, $00, $00, $F7, $1C, $F7, $34 db $F7, $BF, $6C, $7F, $10, $1F, $50, $5F, $32, $3F, $F1, $FF db $00, $00, $46, $46, $46, $46, $56, $56, $7E, $7E, $6E, $6E db $46, $46, $00, $00, $00, $00, $3C, $3C, $18, $18, $18, $18 db $18, $18, $18, $18, $3C, $3C, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $02, $02, $01, $01, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $40, $7F, $C0, $FF, $20, $3F, $22, $3F db $11, $1F, $72, $7E, $BF, $BF, $FF, $FF, $07, $07, $06, $07 db $06, $07, $06, $07, $07, $07, $00, $00, $00, $00, $00, $00 db $C0, $FF, $00, $FF, $00, $FF, $02, $FF, $FF, $FF, $00, $00 db $00, $00, $00, $00, $02, $02, $01, $01, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $40, $7F, $C0, $FF db $20, $3F, $20, $3F, $11, $1F, $72, $7E, $FF, $FF, $FF, $FF db $02, $FE, $02, $FE, $04, $FC, $04, $FC, $88, $F8, $4E, $7E db $FF, $FF, $FF, $FF, $00, $00, $00, $00, $80, $80, $40, $40 db $00, $00, $00, $00, $00, $00, $07, $07, $00, $00, $00, $00 db $FF, $00, $FD, $02, $CD, $32, $09, $F6, $08, $F7, $00, $FF db $00, $00, $00, $00, $FF, $00, $FF, $00, $FF, $00, $FC, $03 db $CC, $33, $08, $F7, $7C, $44, $3F, $3F, $10, $1F, $10, $1F db $12, $1F, $19, $1F, $3F, $3F, $3E, $3E, $CE, $F2, $8E, $DA db $09, $F9, $09, $F9, $4E, $FE, $98, $F8, $FC, $FC, $7C, $7C db $07, $07, $1F, $18, $3E, $20, $7F, $4F, $7F, $5F, $70, $70 db $A2, $A2, $B0, $B0, $00, $00, $46, $46, $66, $66, $76, $76 db $5E, $5E, $4E, $4E, $46, $46, $00, $00, $00, $00, $18, $18 db $18, $18, $18, $18, $18, $18, $00, $00, $18, $18, $00, $00 db $12, $1E, $12, $1E, $12, $1E, $12, $1E, $7E, $7E, $BF, $83 db $FF, $81, $FF, $FF, $00, $00, $E0, $E0, $18, $F8, $04, $FC db $0C, $FC, $F8, $C8, $2C, $34, $2E, $32, $00, $00, $46, $46 db $46, $46, $46, $46, $46, $46, $2C, $2C, $18, $18, $00, $00 db $00, $00, $36, $36, $5F, $49, $5F, $41, $7F, $41, $3E, $22 db $1C, $14, $08, $08, $FE, $02, $FD, $05, $FD, $05, $FF, $1F db $FF, $FC, $FF, $FE, $EF, $38, $EF, $39, $00, $04, $00, $04 db $00, $04, $01, $05, $01, $05, $03, $07, $06, $06, $0C, $0C db $CA, $C0, $C8, $C0, $CA, $C0, $88, $80, $88, $87, $08, $00 db $0A, $00, $08, $00, $6F, $13, $2F, $13, $6F, $13, $2F, $11 db $2D, $D1, $2C, $10, $6C, $10, $2C, $10, $A0, $20, $A0, $20 db $A0, $20, $A0, $A0, $A0, $A0, $E0, $E0, $60, $60, $30, $30 db $08, $A8, $08, $18, $08, $A8, $08, $48, $08, $A8, $08, $18 db $08, $A8, $08, $48, $00, $FE, $00, $FF, $7F, $FF, $7F, $C1 db $7F, $C1, $7F, $EB, $7F, $C1, $01, $FF, $00, $00, $00, $00 db $00, $00, $FF, $00, $00, $00, $FF, $00, $00, $00, $FF, $00 db $10, $10, $0B, $0B, $07, $04, $07, $04, $03, $02, $01, $01 db $00, $00, $00, $00, $B4, $B4, $E4, $E4, $BC, $BC, $EE, $6E db $E7, $27, $F0, $10, $FC, $9C, $77, $5F, $00, $00, $00, $00 db $07, $07, $1F, $18, $3F, $20, $7F, $40, $7F, $40, $7F, $40 db $00, $00, $00, $00, $00, $00, $80, $80, $C0, $40, $C0, $40 db $C0, $40, $80, $80, $02, $03, $05, $04, $07, $04, $04, $07 db $04, $07, $04, $06, $04, $05, $04, $07, $CE, $FA, $0C, $FC db $08, $F8, $08, $F8, $08, $F8, $08, $F8, $08, $F8, $88, $F8 db $00, $3C, $00, $7E, $10, $67, $24, $C3, $24, $C3, $24, $C3 db $24, $C3, $34, $C3, $00, $3C, $00, $66, $00, $E7, $2C, $C3 db $3C, $C3, $3C, $C3, $3C, $42, $18, $66, $00, $00, $00, $00 db $00, $00, $20, $20, $90, $90, $B8, $A8, $A8, $A8, $10, $10 db $0A, $10, $06, $08, $02, $04, $00, $04, $00, $04, $00, $04 db $00, $04, $00, $04, $17, $50, $28, $60, $2A, $60, $28, $60 db $2A, $60, $28, $60, $28, $67, $68, $60, $DE, $2B, $2E, $17 db $6E, $17, $2E, $17, $6E, $17, $2E, $17, $2E, $D7, $2E, $17 db $98, $48, $B0, $50, $A0, $60, $A0, $20, $A0, $20, $A0, $20 db $A0, $20, $A0, $20, $08, $A8, $08, $18, $08, $A8, $08, $48 db $08, $B8, $08, $3F, $08, $BF, $09, $7F, $00, $7F, $00, $FF db $7E, $FF, $7E, $C1, $7E, $C1, $7E, $EB, $7E, $C1, $00, $FF db $00, $00, $00, $00, $FF, $00, $FF, $00, $FF, $00, $FF, $00 db $FF, $00, $FF, $00, $00, $00, $38, $38, $34, $24, $3C, $24 db $3F, $27, $3C, $27, $3C, $27, $3F, $2F, $37, $3C, $17, $14 db $17, $1F, $1C, $1F, $F0, $FF, $00, $FF, $02, $FF, $FF, $FF db $BF, $A0, $BF, $A0, $BF, $B8, $7F, $7F, $2F, $2F, $7F, $7F db $F7, $9C, $F7, $9C, $FD, $05, $FD, $05, $FD, $1D, $FF, $FF db $F7, $F4, $FF, $FE, $EF, $38, $EF, $38, $01, $01, $01, $01 db $01, $01, $02, $02, $02, $02, $02, $02, $01, $01, $00, $00 db $02, $02, $02, $02, $01, $01, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $34, $C3, $3C, $43, $3C, $43, $18, $66 db $18, $66, $08, $76, $08, $36, $08, $34, $18, $26, $18, $24 db $18, $24, $08, $34, $00, $18, $00, $08, $00, $08, $00, $08 db $00, $00, $0F, $0F, $1F, $10, $3C, $20, $70, $40, $73, $43 db $67, $4C, $3F, $28, $00, $00, $80, $80, $DC, $5C, $3E, $22 db $32, $E2, $B1, $C1, $C3, $4B, $27, $7C, $00, $00, $00, $00 db $00, $00, $00, $00, $E0, $E0, $D0, $10, $D0, $D0, $E0, $20 db $5C, $50, $7C, $50, $39, $30, $7C, $4C, $EE, $82, $C0, $84 db $60, $43, $31, $26, $1F, $3C, $BB, $62, $F1, $41, $61, $41 db $C3, $03, $F7, $04, $EE, $08, $9C, $60, $90, $10, $08, $08 db $18, $18, $3C, $64, $F2, $C2, $E3, $60, $39, $20, $F2, $00 db $00, $FF, $00, $FF, $FF, $FF, $FF, $00, $FF, $00, $FF, $00 db $00, $FF, $00, $FF, $FF, $FF, $FF, $00, $FF, $FF, $00, $FF db $00, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $38, $38, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $0E, $0E, $11, $11 db $11, $11, $12, $12, $F3, $1F, $F0, $3F, $F0, $BF, $60, $7F db $10, $1F, $50, $5F, $30, $3F, $F1, $FF, $CF, $FB, $0C, $FC db $08, $F8, $08, $F8, $08, $F8, $08, $F8, $08, $F8, $88, $F8 db $4E, $7A, $C9, $D9, $09, $F9, $0E, $FE, $48, $F8, $98, $F8 db $FC, $FC, $7C, $7C, $A0, $BF, $40, $7F, $E0, $FF, $20, $3F db $11, $1F, $72, $7E, $FF, $FF, $FF, $FF, $00, $3C, $00, $1C db $00, $1C, $00, $18, $00, $08, $00, $00, $00, $00, $00, $00 db $00, $FF, $00, $AB, $00, $55, $00, $FF, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $15, $00, $18, $00, $15, $00, $12 db $00, $15, $00, $18, $00, $15, $00, $12, $40, $40, $40, $C0 db $40, $40, $40, $40, $40, $40, $40, $C0, $40, $40, $40, $40 db $0E, $32, $0E, $32, $0E, $32, $0E, $32, $0F, $33, $8F, $B3 db $CE, $F3, $EE, $73, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $80, $80, $C0, $40, $00, $00, $00, $00 db $80, $80, $47, $47, $1F, $18, $3F, $20, $7F, $40, $7F, $40 db $7F, $40, $BF, $A0, $BF, $A0, $BF, $B8, $7F, $7F, $3F, $3F db $77, $7C, $F7, $9C, $F2, $E6, $F2, $E6, $F2, $E6, $F2, $E6 db $F2, $E6, $F2, $E6, $F2, $E6, $F2, $E6, $00, $00, $01, $01 db $01, $01, $01, $01, $02, $02, $02, $02, $02, $02, $01, $01 db $F3, $9F, $F0, $1F, $F0, $3F, $E0, $BF, $70, $7F, $10, $1F db $50, $5F, $31, $3F, $3E, $22, $1F, $1F, $10, $1F, $10, $1F db $12, $1F, $19, $1F, $3F, $3F, $3E, $3E, $12, $1E, $12, $1E db $12, $1E, $12, $1E, $7E, $7E, $FF, $83, $FF, $81, $FF, $FF db $01, $01, $01, $01, $01, $01, $02, $02, $02, $02, $02, $02 db $01, $01, $00, $00, $60, $E0, $80, $80, $80, $80, $80, $80 db $80, $80, $80, $80, $80, $80, $80, $80, $07, $04, $07, $04 db $07, $04, $07, $04, $07, $04, $07, $04, $07, $04, $07, $04 db $0B, $09, $0B, $0A, $0F, $0A, $17, $12, $17, $1C, $14, $17 db $17, $14, $2F, $24, $00, $00, $70, $70, $8F, $8F, $98, $9F db $E0, $FF, $F0, $9F, $78, $57, $7F, $4C, $3B, $2F, $D0, $DF db $F0, $FF, $C0, $FF, $C0, $FF, $FF, $FF, $00, $00, $00, $00 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $F8, $F8, $F0, $F2, $E1 db $F5, $E3, $F2, $E6, $FF, $FF, $FF, $81, $C3, $81, $DF, $85 db $DF, $85, $FF, $BD, $FF, $81, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $1F, $1F, $0F, $4F, $87, $AF, $C7, $4F, $67 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $00, $00, $00, $00, $FF db $FF, $FF, $00, $00, $4F, $67, $4F, $67, $4F, $67, $4F, $67 db $4F, $67, $4F, $67, $4F, $67, $4F, $67, $F2, $E6, $F5, $E3 db $F2, $E1, $F8, $F0, $FF, $F8, $FF, $FF, $FF, $FF, $FF, $FF db $00, $00, $FF, $FF, $00, $FF, $00, $00, $FF, $00, $FF, $FF db $FF, $FF, $FF, $FF, $4F, $67, $AF, $C7, $4F, $87, $1F, $0F db $FF, $1F, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $FF, $FF, $FF, $00, $00, $00, $00, $EF, $E7, $CF, $24, $0C db $24, $0C, $24, $0C, $24, $0C, $24, $0C, $24, $0C, $24, $0C db $24, $0C, $24, $0C, $24, $0C, $E7, $CF, $00, $EF, $00, $00 db $FF, $00, $FF, $FF, $FF, $FF, $FF, $FF, $07, $07, $18, $1F db $21, $3E, $47, $7F, $5F, $7F, $39, $30, $7B, $62, $FB, $B2 db $E0, $E0, $18, $F8, $84, $7C, $E2, $FE, $FA, $FE, $9C, $0C db $DE, $46, $DF, $4D, $FF, $A0, $FF, $C2, $7F, $54, $7F, $5C db $3F, $2E, $3F, $23, $1F, $18, $07, $07, $FF, $05, $FF, $43 db $FE, $2A, $FE, $3A, $FC, $74, $FC, $C4, $F8, $18, $E0, $E0 db $07, $07, $1F, $18, $3E, $20, $7F, $4F, $7F, $5F, $70, $70 db $A2, $A2, $B0, $B0, $E0, $E0, $F8, $18, $7C, $04, $FE, $F2 db $FE, $FA, $0E, $0E, $45, $45, $0D, $0D, $B4, $B4, $64, $64 db $3C, $3C, $2E, $2E, $27, $27, $10, $10, $0C, $0C, $03, $03 db $2D, $2D, $26, $26, $3C, $3C, $74, $74, $E4, $E4, $08, $08 db $30, $30, $C0, $C0, $2F, $24, $2F, $24, $2F, $24, $2F, $24 db $67, $7C, $BC, $A7, $FF, $E4, $1B, $1B, $00, $00, $00, $00 db $01, $01, $01, $01, $03, $03, $03, $03, $03, $02, $07, $04 db $04, $07, $07, $04, $07, $04, $04, $04, $06, $06, $05, $05 db $05, $05, $06, $06, $07, $04, $07, $04, $04, $07, $04, $04 db $04, $04, $07, $07, $07, $07, $06, $06, $06, $06, $06, $06 db $04, $04, $07, $07, $05, $05, $03, $03, $05, $05, $0E, $0E db $0F, $1F, $01, $10, $01, $10, $01, $10, $01, $08, $01, $07 db $04, $09, $00, $0F, $08, $01, $F8, $F1, $4E, $C1, $02, $C7 db $8C, $BD, $84, $AD, $62, $CF, $7E, $FE, $EC, $90, $EF, $9F db $FA, $F7, $DA, $E7, $BD, $BD, $B5, $AD, $D2, $EF, $7F, $7F db $F8, $F8, $18, $E8, $38, $88, $B8, $08, $B0, $10, $E0, $E0 db $D0, $30, $F0, $F0, $18, $18, $30, $30, $60, $60, $C0, $C0 db $C0, $C0, $FF, $FF, $83, $83, $60, $62, $0A, $00, $08, $00 db $08, $07, $08, $00, $08, $01, $F8, $F1, $F8, $F1, $08, $01 db $6C, $10, $2C, $10, $2C, $D1, $2C, $11, $AC, $90, $EF, $9F db $EF, $9F, $EC, $90, $18, $18, $0C, $0C, $06, $C6, $03, $C3 db $03, $03, $FF, $FF, $C1, $C1, $06, $46, $00, $04, $00, $0C db $02, $10, $02, $10, $02, $10, $02, $10, $02, $10, $02, $10 db $0C, $4C, $0C, $4C, $09, $49, $0B, $4B, $0A, $4A, $10, $50 db $12, $52, $10, $50, $7E, $33, $7E, $33, $BE, $93, $FE, $D3 db $7E, $53, $3E, $0B, $7E, $4B, $3E, $0B, $A0, $20, $90, $30 db $98, $48, $98, $48, $98, $48, $98, $48, $98, $48, $98, $48 db $00, $00, $00, $00, $00, $00, $00, $00, $01, $01, $01, $01 db $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $00, $01 db $02, $02, $02, $02, $02, $02, $02, $03, $02, $03, $02, $02 db $02, $02, $02, $03, $02, $02, $06, $06, $0E, $0A, $0E, $0A db $0B, $0A, $0B, $0A, $0F, $0A, $0A, $0A, $06, $06, $0A, $0A db $1A, $12, $1F, $1F, $00, $00, $00, $00, $1F, $1F, $3F, $20 db $7F, $47, $7C, $4C, $7C, $4C, $7C, $4C, $00, $00, $00, $00 db $E0, $E0, $F0, $30, $F8, $18, $F8, $98, $F8, $98, $F8, $98 db $7F, $4F, $7F, $40, $7F, $4F, $7C, $4C, $7C, $4C, $7C, $7C db $00, $00, $00, $00, $F8, $98, $F8, $18, $F8, $98, $F8, $98 db $F8, $98, $F8, $F8, $00, $00, $00, $00, $00, $00, $7C, $7C db $4E, $4E, $4E, $4E, $4E, $4E, $4E, $4E, $7C, $7C, $00, $00 db $00, $00, $7E, $7E, $60, $60, $7C, $7C, $60, $60, $60, $60 db $7E, $7E, $00, $00, $00, $00, $46, $46, $46, $46, $46, $46 db $46, $46, $4E, $4E, $3C, $3C, $00, $00, $00, $00, $3C, $3C db $66, $66, $60, $60, $60, $60, $66, $66, $3C, $3C, $00, $00 db $00, $00, $46, $46, $6E, $6E, $7E, $7E, $56, $56, $46, $46 db $46, $46, $00, $00, $00, $00, $3C, $3C, $4E, $4E, $4E, $4E db $7E, $7E, $4E, $4E, $4E, $4E, $00, $00, $FF, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $01, $01, $FF, $01 db $01, $FF, $FF, $FF, $00, $00, $00, $00, $00, $00, $00, $00 db $F0, $F0, $F0, $B0, $F0, $B0, $F0, $F0, $00, $00, $00, $00 db $07, $07, $18, $1F, $20, $3F, $30, $3F, $18, $17, $3F, $2C db $7B, $4F, $70, $5F, $90, $9F, $90, $9F, $70, $7F, $11, $1F db $3E, $3E, $3E, $3E, $00, $00, $7C, $7C, $66, $66, $66, $66 db $7C, $7C, $68, $68, $66, $66, $00, $00, $00, $00, $3C, $3C db $66, $66, $66, $66, $66, $66, $66, $66, $3C, $3C, $00, $00 db $00, $00, $60, $60, $60, $60, $60, $60, $60, $60, $60, $60 db $7E, $7E, $00, $00, $00, $00, $3C, $3C, $66, $66, $60, $60 db $6E, $6E, $66, $66, $3E, $3E, $00, $00, $00, $EE, $00, $00 db $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF db $00, $01, $00, $02, $00, $02, $00, $04, $00, $08, $00, $08 db $00, $10, $00, $10, $80, $80, $C0, $40, $C0, $40, $E0, $20 db $30, $50, $30, $50, $38, $48, $18, $28, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $03, $00, $03, $00, $02, $00, $02 db $00, $00, $00, $00, $00, $00, $00, $00, $08, $F8, $08, $18 db $08, $A8, $08, $48, $00, $80, $00, $80, $00, $80, $00, $80 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $20, $00, $20 db $00, $20, $1F, $20, $00, $40, $00, $40, $00, $40, $00, $40 db $1C, $24, $0C, $34, $0C, $34, $04, $FC, $0E, $32, $0E, $32 db $0E, $32, $0E, $32, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $1F, $00, $18, $00, $15, $00, $12 db $00, $00, $00, $00, $00, $00, $00, $00, $40, $C0, $40, $C0 db $40, $40, $40, $40, $00, $02, $00, $03, $00, $02, $00, $02 db $00, $02, $00, $03, $00, $02, $00, $02, $08, $AF, $08, $1A db $08, $AD, $08, $4F, $08, $A8, $08, $18, $08, $A8, $08, $48 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $01, $00, $02, $00, $40, $15, $40, $15, $40, $15, $40 db $15, $C0, $15, $C1, $17, $43, $16, $46, $24, $0C, $34, $0C db $34, $04, $FC, $0E, $32, $0E, $32, $0E, $32, $0E, $32, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $2A, $20, $01 db $00, $1D, $01, $09, $00, $07, $01, $0B, $00, $03, $20, $04 db $00, $20, $20, $06, $00, $0A, $80, $17, $00, $06, $01, $06 db $00, $04, $01, $05, $00, $1E, $80, $0B, $00, $06, $80, $1C db $00, $0A, $10, $08, $11, $04, $01, $02, $00, $04, $01, $06 db $00, $00, $10, $06, $00, $04, $10, $05, $00, $1A, $80, $24 db $00, $15, $01, $07, $00, $20, $10, $04, $00, $05, $10, $03 db $00, $0D, $10, $06, $00, $03, $10, $05, $00, $25, $80, $15 db $00, $1B, $10, $04, $00, $13, $80, $03, $00, $1C, $80, $19 db $00, $1A, $01, $06, $00, $0A, $20, $01, $00, $09, $20, $02 db $00, $14, $10, $03, $00, $0E, $80, $16, $00, $0A, $10, $0A db $11, $06, $10, $16, $00, $13, $80, $25, $00, $1C, $01, $06 db $00, $03, $20, $02, $00, $0E, $20, $03, $00, $04, $20, $02 db $00, $03, $20, $05, $00, $0D, $80, $21, $00, $13, $01, $07 db $00, $05, $01, $06, $00, $04, $01, $05, $00, $06, $20, $03 db $00, $05, $20, $02, $00, $1C, $20, $03, $00, $0E, $80, $12 db $00, $0C, $10, $04, $00, $02, $01, $08, $00, $10, $01, $08 db $00, $1E, $80, $19, $00, $10, $10, $03, $00, $04, $10, $05 db $00, $24, $80, $1C, $00, $05, $01, $05, $00, $11, $20, $03 db $00, $12, $80, $20, $00, $0A, $10, $01, $11, $06, $01, $00 db $00, $04, $10, $04, $00, $04, $10, $03, $00, $02, $10, $19 db $00, $04, $10, $07, $00, $0A, $00, $00, $00, $00, $00, $00 db $00, $4D, $20, $08, $21, $06, $20, $0B, $00, $07, $20, $06 db $00, $64, $10, $00, $11, $06, $10, $05, $00, $2F, $80, $16 db $00, $17, $20, $05, $00, $06, $20, $06, $00, $10, $80, $18 db $00, $34, $01, $05, $00, $01, $10, $0E, $11, $06, $10, $20 db $00, $0A, $80, $0A, $00, $2B, $20, $06, $00, $06, $20, $05 db $00, $05, $20, $06, $00, $0A, $80, $0C, $00, $0A, $01, $07 db $00, $02, $10, $0B, $00, $05, $10, $04, $00, $0D, $80, $1C db $00, $75, $01, $06, $00, $0E, $80, $1F, $00, $1A, $01, $06 db $00, $00, $10, $07, $00, $05, $10, $06, $00, $04, $10, $08 db $00, $03, $10, $08, $00, $0C, $80, $0F, $00, $0A, $01, $07 db $00, $00, $10, $3D, $00, $05, $80, $1F, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $10, $18, $00, $04, $08, $00, $04, $08 db $08, $00, $04, $14, $10, $08, $10, $10, $14, $18, $14, $00 db $0C, $04, $18, $00, $14, $14, $08, $04, $04, $0C, $00, $18 db $04, $00, $08, $0C, $0C, $18, $00, $0C, $08, $00, $18, $10 db $14, $14, $18, $08, $AA, $65, $C6, $65, $FC, $66, $28, $66 db $34, $67, $AF, $66, $F1, $65, $54, $66, $B2, $65, $CE, $65 db $14, $67, $CE, $65, $CE, $65, $C3, $66, $F7, $65, $60, $66 db $D4, $67, $DC, $67, $9D, $67, $A5, $67, $E4, $67, $E4, $67 db $E4, $67, $AD, $67, $3F, $6F, $4A, $6F, $55, $6F, $60, $6F db $6B, $6F, $76, $6F, $81, $6F, $8C, $6F, $97, $6F, $A2, $6F db $AD, $6F, $B8, $6F, $C3, $6F, $CE, $6F, $D9, $6F, $E4, $6F db $EF, $6F, $C9 l_64d3: db $F5, $C5, $D5, $E5, $FA, $7F, $DF, $FE, $01 db $28, $46, $FE, $02, $28, $7B, $FA, $7E, $DF, $A7, $20, $7B db $F0, $E4, $A7, $28, $0D, $AF, $EA, $E0, $DF, $EA, $E8, $DF db $EA, $F0, $DF, $EA, $F8, $DF, $CD, $D2, $64, $CD, $DD, $69 db $CD, $FD, $69, $CD, $3C, $68, $CD, $21, $6A, $CD, $44, $6C db $CD, $65, $6A, $AF, $EA, $E0, $DF, $EA, $E8, $DF, $EA, $F0 db $DF, $EA, $F8, $DF, $EA, $7F, $DF, $E1, $D1, $C1, $F1, $C9 db $CD, $C7, $69, $AF, $EA, $E1, $DF, $EA, $F1, $DF, $EA, $F9 db $DF, $21, $BF, $DF, $CB, $BE, $21, $9F, $DF, $CB, $BE, $21 db $AF, $DF, $CB, $BE, $21, $CF, $DF, $CB, $BE, $21, $E9, $6E db $CD, $98, $69, $3E, $30, $EA, $7E, $DF, $21, $7B, $65, $CD db $5D, $69, $18, $B7, $21, $7F, $65, $18, $F6, $AF, $EA, $7E db $DF, $18, $85, $21, $7E, $DF, $35, $7E, $FE, $28, $28, $EC db $FE, $20, $28, $E0, $FE, $18, $28, $E4, $FE, $10, $20, $97 db $34, $18, $94, $B2, $E3, $83, $C7, $B2, $E3, $C1, $C7, $FA db $F1, $DF, $FE, $01, $C9, $FA, $E1, $DF, $FE, $05, $C9, $FA db $E1, $DF, $FE, $07, $C9, $FA, $E1, $DF, $FE, $08, $C9, $00 db $B5, $D0, $40, $C7, $00, $B5, $20, $40, $C7, $00, $B6, $A1 db $80, $C7, $3E, $05, $21, $9B, $65, $C3, $36, $69, $CD, $8B db $69, $A7, $C0, $21, $E4, $DF, $34, $7E, $FE, $02, $28, $13 db $21, $A0, $65, $C3, $56, $69, $3E, $03, $21, $A5, $65, $C3 db $36, $69, $CD, $8B, $69, $A7, $C0, $AF, $EA, $E1, $DF, $E0 db $10, $3E, $08, $E0, $12, $3E, $80, $E0, $14, $21, $9F, $DF db $CB, $BE, $C9, $00, $80, $E1, $C1, $87, $00, $80, $E1, $AC db $87, $21, $E7, $65, $C3, $36, $69, $21, $E4, $DF, $34, $7E db $FE, $04, $28, $17, $FE, $0B, $28, $19, $FE, $0F, $28, $0F db $FE, $18, $CA, $0E, $66, $C9, $3E, $01, $21, $F0, $DF, $77 db $C3, $D3, $65, $21, $EC, $65, $C3, $56, $69, $21, $E7, $65 db $C3, $56, $69, $48, $BC, $42, $66, $87, $CD, $83, $65, $C8 db $CD, $95, $65, $C8, $CD, $8F, $65, $C8, $CD, $89, $65, $C8 db $3E, $02, $21, $23, $66, $C3, $36, $69, $00, $B0, $F1, $B6 db $C7, $00, $B0, $F1, $C4, $C7, $00, $B0, $F1, $CE, $C7, $00 db $B0, $F1, $DB, $C7, $CD, $8F, $65, $C8, $3E, $07, $21, $40 db $66, $C3, $36, $69, $CD, $8B, $69, $A7, $C0, $21, $E4, $DF db $34, $7E, $FE, $01, $28, $12, $FE, $02, $28, $13, $FE, $03 db $28, $14, $FE, $04, $28, $15, $FE, $05, $CA, $D3, $65, $C9 db $21, $45, $66, $18, $0D, $21, $4A, $66, $18, $08, $21, $4F db $66, $18, $03, $21, $40, $66, $C3, $56, $69, $3E, $80, $E3 db $00, $C4, $93, $83, $83, $73, $63, $53, $43, $33, $23, $13 db $00, $00, $23, $43, $63, $83, $A3, $C3, $D3, $E3, $FF, $CD db $83, $65, $C8, $CD, $95, $65, $C8, $CD, $8F, $65, $C8, $3E db $06, $21, $95, $66, $C3, $36, $69, $CD, $8B, $69, $A7, $C0 db $21, $E4, $DF, $4E, $34, $06, $00, $21, $9A, $66, $09, $7E db $A7, $CA, $D3, $65, $5F, $21, $A5, $66, $09, $7E, $57, $06 db $86, $0E, $12, $7B, $E2, $0C, $7A, $E2, $0C, $78, $E2, $C9 db $3B, $80, $B2, $87, $87, $A2, $93, $62, $43, $23, $00, $80 db $40, $80, $40, $80, $CD, $83, $65, $C8, $CD, $95, $65, $C8 db $CD, $8F, $65, $C8, $CD, $89, $65, $C8, $3E, $03, $21, $EC db $66, $C3, $36, $69, $CD, $8B, $69, $A7, $C0, $21, $E4, $DF db $4E, $34, $06, $00, $21, $F1, $66, $09, $7E, $A7, $CA, $D3 db $65, $5F, $21, $F7, $66, $09, $7E, $57, $06, $87, $18, $AD db $CD, $8F, $65, $C8, $3E, $28, $21, $40, $67, $C3, $36, $69 db $B7, $80, $90, $FF, $83, $00, $D1, $45, $80, $00, $F1, $54 db $80, $00, $D5, $65, $80, $00, $70, $66, $80, $65, $65, $65 db $64, $57, $56, $55, $54, $54, $54, $54, $54, $47, $46, $46 db $45, $45, $45, $44, $44, $44, $34, $34, $34, $34, $34, $34 db $34, $34, $34, $34, $34, $34, $34, $34, $34, $70, $60, $70 db $70, $70, $80, $90, $A0, $D0, $F0, $E0, $D0, $C0, $B0, $A0 db $90, $80, $70, $60, $50, $40, $30, $30, $20, $20, $20, $20 db $20, $20, $20, $20, $20, $20, $20, $10, $10, $3E, $30, $21 db $4D, $67, $C3, $36, $69, $3E, $30, $21, $51, $67, $C3, $36 db $69, $CD, $8B, $69, $A7, $C0, $21, $FC, $DF, $7E, $4F, $FE db $24, $CA, $E9, $67, $34, $06, $00, $C5, $21, $55, $67, $09 db $7E, $E0, $22, $C1, $21, $79, $67, $09, $7E, $E0, $21, $3E db $80, $E0, $23, $C9, $3E, $20, $21, $49, $67, $C3, $36, $69 db $3E, $12, $21, $45, $67, $C3, $36, $69, $CD, $8B, $69, $A7 db $C0, $AF, $EA, $F9, $DF, $3E, $08, $E0, $21, $3E, $80, $E0 db $23, $21, $CF, $DF, $CB, $BE, $C9, $80, $3A, $20, $60, $C6 db $21, $D9, $6E, $CD, $0D, $69, $F0, $04, $E6, $1F, $47, $3E db $D0, $80, $EA, $F5, $DF, $21, $FB, $67, $C3, $64, $69, $F0 db $04, $E6, $0F, $47, $21, $F4, $DF, $34, $7E, $21, $F5, $DF db $FE, $0E, $30, $0A, $34, $34, $7E, $E6, $F0, $B0, $0E, $1D db $E2, $C9, $FE, $1E, $CA, $E2, $68, $35, $35, $35, $18, $EE db $FA, $F0, $DF, $FE, $01, $CA, $6B, $68, $FE, $02, $CA, $00 db $68, $FA, $F1, $DF, $FE, $01, $CA, $B6, $68, $FE, $02, $CA db $17, $68, $C9, $80, $80, $20, $9D, $87, $80, $F8, $20, $98 db $87, $80, $FB, $20, $96, $87, $80, $F6, $20, $95, $87, $21 db $A9, $6E, $CD, $0D, $69, $21, $5A, $68, $7E, $EA, $F6, $DF db $3E, $01, $EA, $F5, $DF, $21, $57, $68, $C3, $64, $69, $3E db $00, $EA, $F5, $DF, $21, $5F, $68, $7E, $EA, $F6, $DF, $21 db $5C, $68, $18, $EC, $3E, $01, $EA, $F5, $DF, $21, $64, $68 db $7E, $EA, $F6, $DF, $21, $61, $68, $18, $DB, $3E, $02, $EA db $F5, $DF, $21, $69, $68, $7E, $EA, $F6, $DF, $21, $66, $68 db $18, $CA, $21, $F4, $DF, $34, $2A, $FE, $09, $28, $C4, $FE db $13, $28, $D1, $FE, $17, $28, $DE, $FE, $20, $28, $17, $2A db $FE, $00, $C8, $FE, $01, $28, $05, $FE, $02, $28, $05, $C9 db $34, $34, $18, $02, $35, $35, $7E, $E0, $1D, $C9, $AF, $EA db $F1, $DF, $E0, $1A, $21, $BF, $DF, $CB, $BE, $21, $9F, $DF db $CB, $BE, $21, $AF, $DF, $CB, $BE, $21, $CF, $DF, $CB, $BE db $FA, $E9, $DF, $FE, $05, $28, $05, $21, $E9, $6E, $18, $2A db $21, $C9, $6E, $18, $25, $E5, $EA, $F1, $DF, $21, $BF, $DF db $CB, $FE, $AF, $EA, $F4, $DF, $EA, $F5, $DF, $EA, $F6, $DF db $E0, $1A, $21, $9F, $DF, $CB, $FE, $21, $AF, $DF, $CB, $FE db $21, $CF, $DF, $CB, $FE, $E1, $CD, $98, $69, $C9, $F5, $1D db $FA, $71, $DF, $12, $1C, $F1, $1C, $12, $1D, $AF, $12, $1C db $1C, $12, $1C, $12, $7B, $FE, $E5, $28, $09, $FE, $F5, $28 db $13, $FE, $FD, $28, $16, $C9, $C5, $0E, $10, $06, $05, $18 db $13, $C5, $0E, $16, $06, $04, $18, $0C, $C5, $0E, $1A, $06 db $05, $18, $05, $C5, $0E, $20, $06, $04, $2A, $E2, $0C, $05 db $20, $FA, $C1, $C9, $1C, $EA, $71, $DF, $1C, $3D, $CB, $27 db $4F, $06, $00, $09, $4E, $23, $46, $69, $60, $7C, $C9, $D5 db $6B, $62, $34, $2A, $BE, $20, $03, $2D, $AF, $77, $D1, $C9 db $C5, $0E, $30, $2A, $E2, $0C, $79, $FE, $40, $20, $F8, $C1 db $C9, $AF, $EA, $E1, $DF, $EA, $E9, $DF, $EA, $F1, $DF, $EA db $F9, $DF, $EA, $9F, $DF, $EA, $AF, $DF, $EA, $BF, $DF, $EA db $CF, $DF, $3E, $FF, $E0, $25, $3E, $03, $EA, $78, $DF, $3E db $08, $E0, $12, $E0, $17, $E0, $21, $3E, $80, $E0, $14, $E0 db $19, $E0, $23, $AF, $E0, $10, $E0, $1A, $C9, $11, $E0, $DF db $1A, $A7, $28, $0C, $21, $9F, $DF, $CB, $FE, $21, $80, $64 db $CD, $78, $69, $E9, $1C, $1A, $A7, $28, $07, $21, $90, $64 db $CD, $7C, $69, $E9, $C9, $11, $F8, $DF, $1A, $A7, $28, $0C db $21, $CF, $DF, $CB, $FE, $21, $A0, $64, $CD, $78, $69, $E9 db $1C, $1A, $A7, $28, $07, $21, $A8, $64, $CD, $7C, $69, $E9 db $C9, $CD, $A5, $69, $C9, $21, $E8, $DF, $2A, $A7, $C8, $FE db $FF, $28, $F2, $77, $47, $21, $B0, $64, $E6, $1F, $CD, $7C db $69, $CD, $13, $6B, $CD, $3C, $6A, $C9, $FA, $E9, $DF, $A7 db $C8, $21, $BE, $6A, $3D, $28, $06, $23, $23, $23, $23, $18 db $F7, $2A, $EA, $78, $DF, $2A, $EA, $76, $DF, $2A, $EA, $79 db $DF, $2A, $EA, $7A, $DF, $AF, $EA, $75, $DF, $EA, $77, $DF db $C9, $FA, $E9, $DF, $A7, $28, $3D, $21, $75, $DF, $FA, $78 db $DF, $FE, $01, $28, $37, $FE, $03, $28, $2F, $34, $2A, $BE db $20, $33, $2D, $36, $00, $2C, $2C, $34, $FA, $79, $DF, $CB db $46, $CA, $8F, $6A, $FA, $7A, $DF, $47, $FA, $F1, $DF, $A7 db $28, $04, $CB, $D0, $CB, $F0, $FA, $F9, $DF, $A7, $28, $04 db $CB, $D8, $CB, $F8, $78, $E0, $25, $C9, $3E, $FF, $18, $F9 db $FA, $79, $DF, $18, $DE, $FA, $F9, $DF, $A7, $20, $F1, $FA db $F1, $DF, $A7, $20, $EB, $C9, $01, $24, $EF, $56, $01, $00 db $E5, $00, $01, $20, $FD, $00, $01, $20, $DE, $F7, $03, $18 db $7F, $F7, $03, $18, $F7, $7F, $03, $48, $DF, $5B, $01, $18 db $DB, $E7, $01, $00, $FD, $F7, $03, $20, $7F, $F7, $01, $20 db $ED, $F7, $01, $20, $ED, $F7, $01, $20, $ED, $F7, $01, $20 db $ED, $F7, $01, $20, $ED, $F7, $01, $20, $EF, $F7, $01, $20 db $EF, $F7, $2A, $4F, $7E, $47, $0A, $12, $1C, $03, $0A, $12 db $C9, $2A, $12, $1C, $2A, $12, $C9, $CD, $C7, $69, $AF, $EA db $75, $DF, $EA, $77, $DF, $11, $80, $DF, $06, $00, $2A, $12 db $1C, $CD, $0D, $6B, $11, $90, $DF, $CD, $0D, $6B, $11, $A0 db $DF, $CD, $0D, $6B, $11, $B0, $DF, $CD, $0D, $6B, $11, $C0 db $DF, $CD, $0D, $6B, $21, $90, $DF, $11, $94, $DF, $CD, $02 db $6B, $21, $A0, $DF, $11, $A4, $DF, $CD, $02, $6B, $21, $B0 db $DF, $11, $B4, $DF, $CD, $02, $6B, $21, $C0, $DF, $11, $C4 db $DF, $CD, $02, $6B, $01, $10, $04, $21, $92, $DF, $36, $01 db $79, $85, $6F, $05, $20, $F8, $AF, $EA, $9E, $DF, $EA, $AE db $DF, $EA, $BE, $DF, $C9, $E5, $AF, $E0, $1A, $6B, $62, $CD db $98, $69, $E1, $18, $2A, $CD, $B9, $6B, $CD, $CE, $6B, $5F db $CD, $B9, $6B, $CD, $CE, $6B, $57, $CD, $B9, $6B, $CD, $CE db $6B, $4F, $2C, $2C, $73, $2C, $72, $2C, $71, $2D, $2D, $2D db $2D, $E5, $21, $70, $DF, $7E, $E1, $FE, $03, $28, $CA, $CD db $B9, $6B, $C3, $5E, $6C, $D5, $2A, $5F, $3A, $57, $13, $7B db $22, $7A, $32, $D1, $C9, $D5, $2A, $5F, $3A, $57, $13, $13 db $18, $F1, $2A, $4F, $3A, $47, $0A, $47, $C9, $E1, $18, $2C db $FA, $70, $DF, $FE, $03, $20, $10, $FA, $B8, $DF, $CB, $7F db $28, $09, $7E, $FE, $06, $20, $04, $3E, $40, $E0, $1C, $E5 db $7D, $C6, $09, $6F, $7E, $A7, $20, $DD, $7D, $C6, $04, $6F db $CB, $7E, $20, $D5, $E1, $CD, $67, $6D, $2D, $2D, $C3, $39 db $6D, $2D, $2D, $2D, $2D, $CD, $C5, $6B, $7D, $C6, $04, $5F db $54, $CD, $02, $6B, $FE, $00, $28, $1F, $FE, $FF, $28, $04 db $2C, $C3, $5C, $6C, $2D, $E5, $CD, $C5, $6B, $CD, $CE, $6B db $5F, $CD, $B9, $6B, $CD, $CE, $6B, $57, $E1, $7B, $22, $7A db $32, $18, $D5, $21, $E9, $DF, $36, $00, $CD, $A5, $69, $C9 db $21, $E9, $DF, $7E, $A7, $C8, $3E, $01, $EA, $70, $DF, $21 db $90, $DF, $2C, $2A, $A7, $CA, $04, $6C, $35, $C2, $D8, $6B db $2C, $2C, $CD, $CE, $6B, $FE, $00, $CA, $09, $6C, $FE, $9D db $CA, $89, $6B, $E6, $F0, $FE, $A0, $20, $1A, $78, $E6, $0F db $4F, $06, $00, $E5, $11, $81, $DF, $1A, $6F, $13, $1A, $67 db $09, $7E, $E1, $2D, $22, $CD, $B9, $6B, $CD, $CE, $6B, $78 db $4F, $06, $00, $CD, $B9, $6B, $FA, $70, $DF, $FE, $04, $CA db $BC, $6C, $E5, $7D, $C6, $05, $6F, $5D, $54, $2C, $2C, $79 db $FE, $01, $28, $0F, $36, $00, $21, $02, $6E, $09, $2A, $12 db $1C, $7E, $12, $E1, $C3, $D3, $6C, $36, $01, $E1, $18, $17 db $E5, $11, $C6, $DF, $21, $94, $6E, $09, $2A, $12, $1C, $7B db $FE, $CB, $20, $F8, $0E, $20, $21, $C4, $DF, $18, $2E, $E5 db $FA, $70, $DF, $FE, $01, $28, $21, $FE, $02, $28, $19, $0E db $1A, $FA, $BF, $DF, $CB, $7F, $20, $05, $AF, $E2, $3E, $80 db $E2, $0C, $2C, $2C, $2C, $2C, $2A, $5F, $16, $00, $18, $15 db $0E, $16, $18, $05, $0E, $10, $3E, $00, $0C, $2C, $2C, $2C db $3A, $A7, $20, $4F, $2A, $5F, $2C, $2A, $57, $E5, $2C, $2C db $2A, $A7, $28, $02, $1E, $01, $2C, $2C, $36, $00, $2C, $7E db $E1, $CB, $7F, $20, $13, $7A, $E2, $0C, $7B, $E2, $0C, $2A db $E2, $0C, $7E, $F6, $80, $E2, $7D, $F6, $05, $6F, $CB, $86 db $E1, $2D, $3A, $32, $2D, $11, $70, $DF, $1A, $FE, $04, $28 db $09, $3C, $12, $11, $10, $00, $19, $C3, $52, $6C, $21, $9E db $DF, $34, $21, $AE, $DF, $34, $21, $BE, $DF, $34, $C9, $06 db $00, $E5, $E1, $2C, $18, $AC, $78, $CB, $3F, $6F, $26, $00 db $19, $5E, $C9, $E5, $7D, $C6, $06, $6F, $7E, $E6, $0F, $28 db $18, $EA, $71, $DF, $FA, $70, $DF, $0E, $13, $FE, $01, $28 db $0E, $0E, $18, $FE, $02, $28, $08, $0E, $1D, $FE, $03, $28 db $02, $E1, $C9, $2C, $2A, $5F, $7E, $57, $D5, $7D, $C6, $04 db $6F, $46, $FA, $71, $DF, $FE, $01, $18, $09, $FE, $03, $18 db $00, $21, $FF, $FF, $18, $1C, $11, $CB, $6D, $CD, $5E, $6D db $CB, $40, $20, $02, $CB, $33, $7B, $E6, $0F, $CB, $5F, $28 db $06, $26, $FF, $F6, $F0, $18, $02, $26, $00, $6F, $D1, $19 db $7D, $E2, $0C, $7C, $E2, $18, $BE, $00, $00, $00, $00, $00 db $00, $10, $00, $0F, $00, $00, $11, $00, $0F, $F0, $01, $12 db $10, $FF, $EF, $01, $12, $10, $FF, $EF, $01, $12, $10, $FF db $EF, $01, $12, $10, $FF, $EF, $01, $12, $10, $FF, $EF, $01 db $12, $10, $FF, $EF, $01, $12, $10, $FF, $EF, $01, $12, $10 db $FF, $EF, $00, $0F, $2C, $00, $9C, $00, $06, $01, $6B, $01 db $C9, $01, $23, $02, $77, $02, $C6, $02, $12, $03, $56, $03 db $9B, $03, $DA, $03, $16, $04, $4E, $04, $83, $04, $B5, $04 db $E5, $04, $11, $05, $3B, $05, $63, $05, $89, $05, $AC, $05 db $CE, $05, $ED, $05, $0A, $06, $27, $06, $42, $06, $5B, $06 db $72, $06, $89, $06, $9E, $06, $B2, $06, $C4, $06, $D6, $06 db $E7, $06, $F7, $06, $06, $07, $14, $07, $21, $07, $2D, $07 db $39, $07, $44, $07, $4F, $07, $59, $07, $62, $07, $6B, $07 db $73, $07, $7B, $07, $83, $07, $8A, $07, $90, $07, $97, $07 db $9D, $07, $A2, $07, $A7, $07, $AC, $07, $B1, $07, $B6, $07 db $BA, $07, $BE, $07, $C1, $07, $C4, $07, $C8, $07, $CB, $07 db $CE, $07, $D1, $07, $D4, $07, $D6, $07, $D9, $07, $DB, $07 db $DD, $07, $DF, $07, $00, $00, $00, $00, $00, $C0, $A1, $00 db $3A, $00, $C0, $B1, $00, $29, $01, $C0, $61, $00, $3A, $00 db $C0, $12, $34, $45, $67, $9A, $BC, $DE, $FE, $98, $7A, $B7 db $BE, $A8, $76, $54, $31, $01, $23, $44, $55, $67, $88, $9A db $BB, $A9, $88, $76, $55, $44, $33, $22, $11, $01, $23, $45 db $67, $89, $AB, $CD, $EF, $FE, $DC, $BA, $98, $76, $54, $32 db $10, $A1, $82, $23, $34, $45, $56, $67, $78, $89, $9A, $AB db $BC, $CD, $64, $32, $10, $11, $23, $56, $78, $99, $98, $76 db $67, $9A, $DF, $FE, $C9, $85, $42, $11, $31, $02, $04, $08 db $10, $20, $40, $0C, $18, $30, $05, $00, $01, $03, $05, $0A db $14, $28, $50, $0F, $1E, $3C, $03, $06, $0C, $18, $30, $60 db $12, $24, $48, $08, $10, $00, $07, $0E, $1C, $38, $70, $15 db $2A, $54, $04, $08, $10, $20, $40, $80, $18, $30, $60, $04 db $09, $12, $24, $48, $90, $1B, $36, $6C, $0C, $18, $04, $0A db $14, $28, $50, $A0, $1E, $3C, $78, $00, $0E, $6F, $F9, $7C db $FF, $7C, $11, $7D, $21, $7D, $00, $05, $6F, $48, $7E, $44 db $7E, $4A, $7E, $4C, $7E, $00, $0E, $6F, $3B, $76, $33, $76 db $41, $76, $63, $76, $00, $F9, $6E, $00, $76, $FC, $75, $02 db $76, $00, $00, $00, $0E, $6F, $4C, $71, $42, $71, $56, $71 db $62, $71, $00, $0E, $6F, $C6, $72, $B8, $72, $D4, $72, $02 db $73, $00, $0E, $6F, $08, $70, $FA, $6F, $00, $00, $00, $00 db $00, $05, $6F, $9D, $7E, $91, $7E, $A9, $7E, $B5, $7E, $00 db $0E, $6F, $28, $7C, $24, $7C, $2A, $7C, $2C, $7C, $00, $0E db $6F, $00, $00, $00, $7A, $00, $00, $00, $00, $00, $0E, $6F db $00, $00, $26, $7A, $2A, $7A, $00, $00, $00, $0E, $6F, $73 db $7A, $6F, $7A, $75, $7A, $00, $00, $00, $0E, $6F, $DF, $7A db $E3, $7A, $E5, $7A, $E7, $7A, $00, $0E, $6F, $65, $7B, $6B db $7B, $6F, $7B, $73, $7B, $00, $0E, $6F, $6C, $78, $76, $78 db $7E, $78, $86, $78, $00, $2B, $6F, $43, $75, $4B, $75, $51 db $75, $00, $00, $00, $0E, $6F, $8D, $75, $95, $75, $9B, $75 db $00, $00, $16, $70, $34, $70, $16, $70, $4D, $70, $93, $70 db $FF, $FF, $FA, $6F, $62, $70, $74, $70, $62, $70, $85, $70 db $F4, $70, $FF, $FF, $08, $70, $9D, $74, $00, $41, $A2, $44 db $4C, $56, $4C, $42, $4C, $44, $4C, $3E, $4C, $3C, $4C, $44 db $4C, $56, $4C, $42, $4C, $44, $4C, $3E, $4C, $3C, $4C, $00 db $44, $4C, $44, $3E, $4E, $48, $42, $48, $42, $3A, $4C, $44 db $3E, $4C, $48, $44, $42, $3E, $3C, $34, $3C, $42, $4C, $48 db $00, $44, $4C, $44, $3E, $4E, $48, $42, $48, $42, $3A, $52 db $48, $4C, $52, $4C, $44, $3A, $42, $A8, $44, $00, $9D, $64 db $00, $41, $A3, $26, $3E, $3C, $26, $2C, $34, $3E, $36, $34 db $3E, $2C, $34, $00, $26, $3E, $30, $22, $3A, $2C, $1E, $36 db $30, $A2, $34, $36, $34, $30, $2C, $2A, $00, $A3, $26, $3E db $30, $22, $3A, $2A, $2C, $34, $34, $2C, $22, $14, $00, $A2 db $52, $4E, $4C, $48, $44, $42, $44, $48, $4C, $44, $48, $4E db $4C, $4E, $A3, $52, $42, $A2, $44, $48, $A3, $4C, $48, $4C db $56, $50, $A2, $56, $5A, $A3, $5C, $5A, $A2, $56, $52, $50 db $4C, $50, $4A, $A8, $4C, $A7, $52, $A1, $56, $58, $A3, $56 db $A2, $52, $4E, $52, $4C, $4E, $48, $A7, $56, $A1, $5A, $5C db $A3, $5A, $A2, $56, $54, $56, $50, $54, $4C, $5A, $54, $4C db $54, $5A, $60, $66, $54, $64, $54, $60, $54, $A3, $5C, $A2 db $60, $5C, $5A, $5C, $A1, $56, $5A, $A4, $56, $A2, $01, $00 db $A2, $34, $3A, $44, $3A, $30, $3A, $34, $3A, $2C, $3A, $2A db $3A, $2C, $3A, $44, $3A, $30, $3A, $34, $3A, $2C, $3A, $2A db $3A, $2C, $34, $2C, $26, $3E, $38, $32, $38, $2A, $38, $32 db $38, $A3, $34, $42, $2A, $A2, $34, $3A, $42, $3A, $30, $3A db $2E, $34, $26, $34, $2E, $34, $A8, $30, $A2, $32, $38, $2A db $38, $32, $38, $A8, $34, $A3, $34, $2A, $24, $1C, $20, $24 db $2C, $30, $34, $A8, $26, $00, $68, $71, $68, $71, $AE, $71 db $FF, $FF, $42, $71, $CB, $71, $CB, $71, $1D, $72, $FF, $FF db $4C, $71, $3A, $72, $3A, $72, $7F, $72, $7F, $72, $FF, $FF db $56, $71, $A3, $72, $FF, $FF, $62, $71, $9D, $84, $00, $81 db $A3, $52, $A2, $48, $4A, $A3, $4E, $A2, $4A, $48, $A3, $44 db $A2, $44, $4A, $A3, $52, $A2, $4E, $4A, $A7, $48, $A2, $4A db $A3, $4E, $52, $A3, $4A, $44, $44, $01, $A2, $01, $A3, $4E db $A2, $54, $A3, $5C, $A2, $58, $54, $A7, $52, $A2, $4A, $A3 db $52, $A2, $4E, $4A, $A3, $48, $A2, $48, $4A, $A3, $4E, $52 db $A3, $4A, $44, $44, $01, $00, $9D, $50, $00, $81, $A4, $3A db $32, $36, $30, $A4, $32, $2C, $A8, $2A, $A3, $01, $A4, $3A db $32, $36, $30, $A3, $32, $3A, $A4, $44, $42, $01, $00, $9D db $43, $00, $81, $A3, $48, $A2, $42, $44, $48, $A1, $52, $4E db $A2, $44, $42, $A7, $3A, $A2, $44, $4A, $01, $A2, $48, $44 db $A1, $42, $42, $A2, $3A, $42, $44, $A3, $48, $4A, $A3, $44 db $3A, $3A, $01, $A2, $1E, $A3, $3C, $A2, $44, $4A, $A1, $4A db $4A, $A2, $48, $44, $A7, $40, $A2, $3A, $40, $A1, $44, $40 db $A2, $3C, $3A, $42, $3A, $42, $44, $48, $42, $4A, $42, $A1 db $44, $4A, $3A, $01, $A3, $3A, $3A, $01, $00, $9D, $30, $00 db $81, $A4, $32, $2C, $30, $2A, $2C, $22, $A4, $22, $A3, $30 db $01, $A4, $32, $2C, $30, $2A, $A3, $2C, $32, $A4, $3A, $36 db $01, $00, $9D, $C9, $6E, $20, $A2, $22, $3A, $22, $3A, $22 db $3A, $22, $3A, $2C, $44, $2C, $44, $2C, $44, $2C, $44, $2A db $42, $2A, $42, $22, $3A, $22, $3A, $2C, $44, $2C, $44, $2C db $44, $30, $32, $36, $1E, $01, $1E, $01, $1E, $2C, $24, $1A db $32, $01, $32, $1A, $28, $28, $01, $30, $48, $01, $48, $01 db $3A, $01, $42, $2C, $3A, $2C, $3A, $A3, $2C, $01, $00, $9D db $C9, $6E, $20, $A2, $44, $52, $44, $52, $44, $52, $44, $52 db $42, $52, $42, $52, $42, $52, $42, $52, $44, $52, $44, $52 db $44, $52, $44, $52, $42, $52, $42, $52, $A4, $01, $00, $A2 db $01, $06, $01, $06, $01, $A1, $06, $06, $A2, $01, $06, $01 db $06, $01, $06, $01, $06, $06, $06, $00, $0B, $73, $3F, $73 db $67, $73, $67, $73, $C9, $73, $FF, $FF, $B8, $72, $08, $73 db $3C, $73, $8E, $73, $8E, $73, $4B, $74, $FF, $FF, $C6, $72 db $1F, $73, $53, $73, $B5, $73, $B5, $73, $B5, $73, $B5, $73 db $B5, $73, $B5, $73, $C0, $74, $DE, $74, $DE, $74, $DE, $74 db $EE, $74, $FE, $74, $FE, $74, $0E, $75, $0E, $75, $1E, $75 db $1E, $75, $0E, $75, $2E, $75, $FF, $FF, $D4, $72, $33, $73 db $FF, $FF, $02, $73, $A5, $01, $00, $9D, $62, $00, $80, $A2 db $3A, $A1, $3A, $3A, $A2, $30, $30, $3A, $A1, $3A, $3A, $A2 db $30, $30, $00, $9D, $E9, $6E, $A0, $A2, $3A, $A1, $3A, $3A db $A2, $30, $30, $3A, $A1, $3A, $3A, $A2, $30, $30, $00, $A2 db $06, $A1, $06, $06, $A2, $06, $06, $00, $A5, $01, $00, $9D db $32, $00, $80, $A2, $3A, $A1, $3A, $3A, $A2, $30, $30, $3A db $A1, $3A, $3A, $A2, $30, $30, $00, $9D, $E9, $6E, $A0, $A2 db $3A, $A1, $3A, $3A, $A2, $30, $30, $3A, $A1, $3A, $3A, $A2 db $30, $30, $00, $9D, $82, $00, $80, $A2, $3A, $48, $52, $50 db $52, $A1, $48, $48, $A2, $4A, $44, $48, $A1, $40, $40, $A2 db $44, $3E, $40, $A1, $3A, $3A, $A2, $3E, $38, $3A, $30, $32 db $38, $3A, $30, $32, $3E, $00, $9D, $53, $00, $40, $A2, $30 db $40, $40, $44, $40, $A1, $3E, $40, $A2, $44, $3E, $40, $A1 db $38, $3A, $A2, $3E, $38, $3A, $A1, $2E, $30, $A2, $38, $30 db $30, $28, $2C, $2C, $30, $28, $2C, $38, $00, $9D, $E9, $6E db $A0, $A2, $3A, $A1, $3A, $3A, $A2, $30, $30, $3A, $A1, $3A db $3A, $A2, $30, $30, $00, $A8, $3A, $A2, $3E, $38, $A8, $3A db $A3, $3E, $A2, $40, $A1, $40, $40, $A2, $44, $3E, $40, $A1 db $40, $40, $A2, $44, $3E, $A8, $40, $A3, $44, $A2, $48, $A1 db $48, $48, $A2, $4A, $44, $48, $A1, $48, $48, $A2, $4A, $44 db $A8, $48, $A3, $4C, $A2, $4E, $A1, $4E, $4E, $A2, $4E, $4E db $52, $4E, $4E, $4C, $4E, $A1, $4E, $4E, $A2, $4E, $4E, $52 db $4E, $4E, $4C, $4E, $A1, $4E, $4E, $A2, $4E, $4E, $4C, $A1 db $4C, $4C, $A2, $4C, $4C, $4A, $A1, $4A, $4A, $A2, $4A, $44 db $3E, $40, $44, $36, $44, $A1, $40, $40, $A2, $36, $A3, $40 db $A1, $36, $3A, $A2, $36, $30, $44, $A1, $40, $40, $A2, $36 db $A3, $40, $A1, $36, $3A, $A2, $36, $2E, $A5, $36, $A8, $01 db $A3, $38, $00, $A8, $30, $A2, $30, $30, $A8, $30, $A3, $36 db $A5, $01, $A8, $01, $A3, $3E, $A2, $40, $A1, $40, $40, $A2 db $44, $3E, $40, $A1, $40, $40, $A2, $44, $3E, $A8, $36, $A3 db $3A, $A2, $3E, $A1, $40, $44, $A2, $3E, $44, $48, $48, $48 db $3A, $3E, $A1, $40, $44, $A2, $3E, $44, $46, $46, $46, $3A db $3E, $A1, $40, $44, $A2, $3E, $44, $3A, $A1, $3E, $40, $A2 db $3A, $40, $3A, $A1, $3E, $40, $A2, $3E, $3E, $2C, $3A, $3E db $26, $30, $A1, $30, $30, $A2, $30, $A3, $30, $A1, $30, $34 db $A2, $30, $28, $2E, $A1, $2E, $2E, $A2, $2E, $A3, $2E, $A1 db $2E, $32, $A2, $2E, $28, $A5, $26, $A8, $01, $A3, $2C, $00 db $A2, $3A, $A1, $3A, $3A, $A2, $32, $2C, $3A, $A1, $3A, $3A db $A2, $38, $30, $3A, $A1, $3A, $3A, $A2, $32, $2C, $3A, $A1 db $3A, $3A, $A2, $2C, $1E, $00, $A2, $28, $A1, $40, $28, $A2 db $1E, $36, $28, $A1, $40, $28, $A2, $1E, $36, $00, $A2, $28 db $A1, $40, $28, $A2, $1E, $36, $28, $A1, $40, $28, $A2, $2C db $44, $00, $A2, $1E, $A1, $36, $1E, $A2, $1E, $36, $28, $A1 db $40, $28, $A2, $28, $40, $00, $A2, $1E, $A1, $36, $1E, $A2 db $1E, $36, $1E, $A1, $36, $1E, $A2, $1E, $36, $00, $A2, $22 db $A1, $3A, $22, $A2, $22, $3A, $22, $A1, $3A, $22, $A2, $22 db $3A, $00, $A2, $1E, $A1, $36, $1E, $A2, $1E, $36, $1E, $A1 db $36, $1E, $A2, $A4, $3E, $00, $36, $3E, $44, $A4, $44, $57 db $75, $62, $75, $FF, $FF, $45, $75, $5E, $75, $FF, $FF, $4B db $75, $7C, $75, $FF, $FF, $51, $75, $9D, $20, $00, $81, $AA db $01, $00, $9D, $70, $00, $81, $A2, $42, $32, $38, $42, $46 db $34, $3C, $46, $4A, $38, $42, $4A, $4C, $3C, $42, $4C, $46 db $34, $3C, $46, $40, $2E, $34, $40, $00, $9D, $E9, $6E, $21 db $A8, $42, $A3, $2A, $A8, $42, $A3, $2A, $A8, $42, $A3, $2A db $00, $A1, $75, $AC, $75, $FF, $FF, $8F, $75, $A8, $75, $FF db $FF, $95, $75, $EE, $75, $FF, $FF, $9B, $75, $9D, $20, $00 db $81, $AA, $01, $00, $9D, $70, $00, $81, $A2, $4C, $42, $50 db $42, $54, $42, $50, $42, $56, $42, $54, $42, $50, $42, $54 db $42, $4C, $42, $50, $42, $54, $42, $50, $42, $56, $42, $54 db $42, $50, $42, $54, $42, $5A, $46, $56, $46, $54, $46, $50 db $46, $4E, $46, $50, $46, $54, $46, $50, $46, $50, $3E, $4C db $3E, $4C, $3E, $4A, $3E, $4A, $3E, $46, $3E, $4A, $3E, $50 db $3E, $00, $9D, $E9, $6E, $21, $A5, $4C, $4A, $46, $42, $38 db $3E, $42, $42, $00, $04, $76, $00, $00, $14, $76, $23, $76 db $9D, $B2, $00, $80, $A2, $60, $5C, $60, $5C, $60, $62, $60 db $5C, $A4, $60, $00, $9D, $92, $00, $80, $A2, $52, $4E, $52 db $4E, $52, $54, $52, $4E, $A4, $52, $9D, $E9, $6E, $20, $A2 db $62, $60, $62, $60, $62, $66, $62, $60, $A3, $62, $01, $6F db $76, $69, $77, $69, $77, $00, $00, $BF, $76, $AA, $77, $3C db $78, $0C, $77, $EB, $77, $EB, $77, $F5, $77, $EB, $77, $EB db $77, $FE, $77, $F5, $77, $EB, $77, $EB, $77, $FE, $77, $F5 db $77, $07, $78, $11, $78, $FE, $77, $F5, $77, $EB, $77, $5B db $77, $5B, $77, $1A, $78, $1A, $78, $1A, $78, $1A, $78, $9D db $C3, $00, $80, $A2, $3C, $3E, $3C, $3E, $38, $50, $A3, $01 db $A2, $3C, $3E, $3C, $3E, $38, $50, $A3, $01, $A2, $01, $48 db $01, $46, $01, $42, $01, $46, $A1, $42, $46, $A2, $42, $42 db $38, $A3, $3C, $01, $A2, $3E, $42, $3E, $42, $3C, $54, $A3 db $01, $A2, $3E, $42, $3E, $42, $3C, $54, $A3, $01, $A2, $01 db $56, $01, $54, $01, $54, $01, $50, $A2, $01, $A1, $50, $54 db $A2, $50, $4E, $A3, $50, $01, $00, $9D, $74, $00, $80, $A2 db $36, $38, $36, $38, $2E, $3E, $A3, $01, $A2, $36, $38, $36 db $38, $2E, $3E, $A3, $01, $A2, $01, $36, $01, $36, $01, $32 db $01, $36, $36, $32, $32, $30, $A3, $36, $01, $A2, $38, $3C db $38, $3C, $36, $4E, $A3, $01, $A2, $38, $3C, $38, $3C, $36 db $4E, $A3, $01, $A2, $01, $50, $01, $4E, $01, $46, $01, $46 db $A2, $01, $A1, $48, $4E, $A2, $48, $46, $A3, $40, $01, $00 db $9D, $E9, $6E, $20, $A2, $48, $46, $48, $46, $3E, $20, $A3 db $01, $A2, $48, $46, $48, $46, $3E, $20, $A3, $01, $A2, $2E db $3C, $2E, $24, $24, $24, $24, $3C, $2A, $3E, $2A, $3E, $A6 db $2E, $A3, $01, $A1, $01, $A2, $48, $46, $48, $46, $2E, $2E db $A3, $01, $A2, $48, $46, $48, $46, $2E, $2E, $A3, $01, $A2 db $2A, $3C, $2A, $3C, $2E, $3E, $2E, $3E, $2E, $42, $2E, $42 db $A6, $38, $A3, $01, $A1, $01, $00, $A8, $01, $A2, $06, $0B db $A8, $01, $A2, $06, $0B, $A5, $01, $01, $00, $9D, $C5, $00 db $80, $A1, $46, $4A, $A4, $46, $A2, $01, $A3, $50, $A8, $4A db $A3, $01, $A1, $42, $46, $A4, $42, $A2, $01, $A3, $4E, $A1 db $4E, $50, $A4, $46, $A7, $01, $A1, $40, $46, $A4, $40, $A2 db $01, $A3, $46, $A1, $46, $4A, $A4, $42, $A7, $01, $A1, $36 db $38, $A4, $36, $A2, $01, $A3, $3C, $A7, $42, $A4, $40, $A2 db $01, $00, $9D, $84, $00, $41, $A1, $40, $42, $A4, $40, $A2 db $01, $A3, $40, $A8, $42, $A3, $01, $A1, $3C, $40, $A4, $3C db $A2, $01, $A3, $3C, $A1, $3C, $40, $A4, $40, $A7, $01, $A1 db $36, $32, $A4, $2E, $A2, $01, $A3, $40, $A1, $36, $38, $A4 db $32, $A7, $01, $A1, $2E, $32, $A4, $2E, $A2, $01, $A3, $2A db $A7, $30, $A4, $2E, $A2, $01, $00, $A2, $38, $38, $01, $38 db $38, $38, $01, $38, $00, $2E, $2E, $01, $2E, $2E, $2E, $01 db $2E, $00, $2A, $2A, $01, $2A, $2A, $2A, $01, $2A, $00, $A2 db $38, $38, $01, $38, $36, $36, $01, $36, $00, $32, $32, $01 db $32, $2E, $2E, $01, $2E, $00, $A2, $06, $0B, $01, $06, $06 db $0B, $01, $06, $06, $0B, $01, $06, $06, $0B, $01, $06, $06 db $0B, $01, $06, $06, $0B, $01, $06, $06, $0B, $01, $06, $01 db $0B, $01, $0B, $00, $9D, $66, $00, $81, $A7, $58, $5A, $A3 db $58, $A7, $5E, $A4, $5A, $A2, $01, $A7, $50, $54, $A3, $58 db $A7, $5A, $A4, $58, $A2, $01, $A7, $50, $A3, $4E, $A7, $4E db $58, $54, $A3, $4A, $A7, $5A, $5E, $A3, $5A, $A7, $54, $A4 db $50, $A2, $01, $00, $8E, $78, $11, $79, $8E, $78, $96, $79 db $00, $00, $AD, $78, $38, $79, $AD, $78, $BA, $79, $D5, $78 db $5E, $79, $D5, $78, $DD, $79, $FE, $78, $84, $79, $FE, $78 db $84, $79, $9D, $D1, $00, $80, $A2, $5C, $A1, $5C, $5A, $A2 db $5C, $5C, $56, $52, $4E, $56, $A2, $52, $A1, $52, $50, $A2 db $52, $52, $4C, $48, $44, $A1, $4C, $52, $00, $9D, $B2, $00 db $80, $A2, $52, $A1, $52, $52, $A2, $52, $A1, $52, $52, $A2 db $44, $A1, $44, $44, $A2, $44, $01, $4C, $A1, $4C, $4C, $A2 db $4C, $A1, $4C, $4C, $A2, $3A, $A1, $3A, $3A, $A2, $3A, $01 db $00, $9D, $E9, $6E, $20, $A2, $5C, $A1, $5C, $5C, $A2, $5C db $A1, $5C, $5C, $A2, $4E, $A1, $52, $52, $A2, $56, $01, $A2 db $5C, $A1, $5C, $5C, $A2, $5C, $A1, $5C, $5C, $A2, $44, $A1 db $48, $48, $A2, $4C, $01, $00, $A2, $06, $A7, $01, $A2, $0B db $0B, $0B, $01, $A2, $06, $A7, $01, $A2, $0B, $0B, $0B, $01 db $00, $A2, $48, $A1, $48, $52, $A2, $44, $A1, $44, $52, $A2 db $42, $A1, $42, $52, $A2, $48, $A1, $48, $52, $A2, $4C, $A1 db $4C, $52, $A2, $44, $A1, $44, $52, $A2, $48, $44, $A1, $48 db $52, $56, $5A, $00, $3A, $A1, $3A, $3A, $A2, $3A, $A1, $3A db $3A, $A2, $3A, $A1, $3A, $3A, $A2, $3A, $A1, $3A, $3A, $A2 db $3A, $A1, $3A, $3A, $A2, $3A, $A1, $3A, $3A, $A2, $36, $A1 db $36, $36, $A2, $36, $01, $00, $48, $A1, $48, $48, $A2, $48 db $A1, $48, $48, $A2, $48, $A1, $48, $48, $A2, $48, $A1, $48 db $48, $A2, $44, $A1, $44, $44, $A2, $44, $A1, $44, $44, $A2 db $42, $A1, $42, $42, $A2, $42, $01, $00, $A2, $01, $0B, $01 db $0B, $01, $0B, $01, $0B, $01, $0B, $01, $0B, $01, $0B, $0B db $01, $00, $A2, $48, $A1, $48, $52, $A2, $44, $A1, $44, $52 db $A2, $42, $A1, $42, $52, $A2, $48, $A1, $48, $52, $A2, $4C db $A1, $4C, $52, $A2, $48, $A1, $48, $52, $A2, $44, $52, $A3 db $5C, $00, $3A, $A1, $3A, $3A, $A2, $3A, $A1, $3A, $3A, $A2 db $3A, $A1, $3A, $3A, $A2, $3A, $A1, $3A, $3A, $A2, $3A, $A1 db $3A, $3A, $A2, $3A, $A1, $3A, $3A, $A2, $01, $3A, $A3, $4C db $00, $48, $A1, $48, $48, $A2, $48, $A1, $48, $48, $A2, $48 db $A1, $48, $48, $A2, $48, $A1, $48, $48, $A2, $44, $A1, $44 db $44, $A2, $44, $A1, $44, $44, $A2, $01, $4C, $A3, $44, $00 db $04, $7A, $00, $00, $9D, $C2, $00, $40, $A2, $5C, $A1, $5C db $5A, $A2, $5C, $5C, $56, $52, $4E, $56, $A2, $52, $A1, $52 db $50, $A2, $52, $52, $4C, $48, $A1, $44, $42, $A2, $44, $A4 db $01, $00, $2C, $7A, $00, $00, $4B, $7A, $9D, $C2, $00, $80 db $A2, $5C, $A1, $5C, $5A, $A2, $5C, $5C, $56, $52, $4E, $56 db $A2, $52, $A1, $52, $50, $A2, $52, $4C, $44, $52, $A3, $5C db $A4, $01, $00, $9D, $E9, $6E, $20, $A2, $5C, $A1, $5C, $5C db $A2, $5C, $A1, $5C, $5C, $A2, $4E, $52, $56, $01, $A2, $5C db $A1, $5C, $5C, $A2, $5C, $A1, $5C, $5C, $A2, $52, $4C, $44 db $01, $A5, $01, $77, $7A, $00, $00, $96, $7A, $B4, $7A, $9D db $C2, $00, $80, $A2, $5C, $A1, $5C, $5A, $A2, $5C, $5C, $56 db $52, $4E, $56, $A2, $52, $A1, $52, $50, $A2, $52, $4C, $44 db $52, $A3, $5C, $A4, $01, $00, $9D, $C2, $00, $40, $A2, $4E db $A1, $4E, $52, $A2, $56, $4E, $A3, $48, $48, $A2, $4C, $A1 db $4C, $4A, $A2, $4C, $44, $34, $4C, $A3, $4C, $A5, $01, $00 db $9D, $E9, $6E, $20, $A2, $5C, $A1, $5C, $5C, $A2, $5C, $A1 db $5C, $5C, $A2, $4E, $52, $A1, $56, $56, $A2, $56, $A2, $5C db $A1, $5C, $5C, $A2, $5C, $A1, $5C, $5C, $A2, $52, $4C, $A1 db $44, $44, $A2, $01, $A5, $01, $00, $E9, $7A, $00, $00, $08 db $7B, $25, $7B, $4F, $7B, $9D, $C2, $00, $80, $A2, $5C, $A1 db $5C, $5A, $A2, $5C, $5C, $56, $52, $4E, $56, $A2, $52, $A1 db $52, $50, $A2, $52, $4C, $44, $52, $A3, $5C, $A4, $01, $00 db $9D, $B2, $00, $80, $A2, $4E, $A1, $4E, $52, $A2, $56, $4E db $A3, $48, $48, $A2, $4C, $A1, $4C, $4A, $A2, $4C, $44, $34 db $4C, $A3, $4C, $A5, $01, $9D, $E9, $6E, $20, $A2, $5C, $A1 db $5C, $5C, $A2, $5C, $A1, $5C, $5C, $4E, $56, $5C, $56, $4E db $44, $3E, $44, $A2, $5C, $A1, $5C, $5C, $A2, $5C, $A1, $5C db $5C, $52, $4C, $44, $4C, $5C, $01, $A2, $01, $A5, $01, $A2 db $0B, $0B, $0B, $0B, $A2, $0B, $0B, $0B, $01, $A2, $0B, $0B db $0B, $0B, $A2, $0B, $0B, $0B, $01, $A5, $01, $77, $7B, $CE db $7B, $00, $00, $96, $7B, $F2, $7B, $A8, $7B, $02, $7C, $BB db $7B, $12, $7C, $9D, $D1, $00, $80, $A2, $5C, $A1, $5C, $5A db $A2, $5C, $5C, $56, $52, $4E, $56, $A2, $52, $A1, $52, $50 db $A2, $52, $52, $4C, $48, $44, $A1, $4C, $52, $00, $A2, $52 db $A7, $01, $A2, $44, $44, $44, $01, $4C, $A7, $01, $A2, $3A db $3A, $3A, $01, $00, $A2, $5C, $A7, $01, $A2, $4E, $52, $56 db $01, $A2, $5C, $A7, $01, $A2, $44, $48, $4C, $01, $00, $A2 db $06, $A7, $01, $A2, $0B, $0B, $0B, $01, $A2, $06, $A7, $01 db $A2, $0B, $0B, $0B, $01, $00, $A2, $48, $A1, $48, $52, $A2 db $44, $A1, $44, $52, $A2, $42, $A1, $42, $52, $A2, $48, $A1 db $48, $52, $A2, $4C, $A1, $4C, $52, $A2, $48, $A1, $48, $52 db $A2, $5C, $52, $A3, $5C, $00, $01, $3A, $01, $3A, $01, $3A db $01, $3A, $01, $3A, $01, $3A, $01, $3A, $A3, $34, $01, $48 db $01, $48, $01, $48, $01, $48, $01, $44, $01, $44, $01, $4C db $A3, $44, $A2, $01, $0B, $01, $0B, $01, $0B, $01, $0B, $01 db $0B, $01, $0B, $A2, $01, $0B, $0B, $01, $2E, $7C, $00, $00 db $63, $7C, $97, $7C, $CB, $7C, $9D, $B3, $00, $80, $A6, $52 db $A1, $50, $A6, $52, $A1, $50, $A6, $52, $A1, $48, $A3, $01 db $A6, $4C, $A1, $4A, $A6, $4C, $A1, $4A, $A6, $4C, $A1, $42 db $A3, $01, $A6, $3E, $A1, $42, $A6, $44, $A1, $48, $A6, $4C db $A1, $50, $A6, $52, $A1, $56, $A6, $52, $A1, $6A, $00, $9D db $93, $00, $C0, $A6, $42, $A1, $40, $A6, $42, $A1, $40, $A6 db $42, $A1, $42, $A3, $01, $A6, $3A, $A1, $38, $A6, $3A, $A1 db $38, $A6, $3A, $A1, $3A, $A3, $01, $A6, $38, $A1, $38, $A6 db $3A, $A1, $3E, $A6, $42, $A1, $44, $A6, $48, $A1, $4C, $A6 db $42, $A1, $42, $9D, $E9, $6E, $A0, $A6, $48, $A1, $46, $A6 db $48, $A1, $46, $A6, $48, $A1, $52, $A3, $01, $A6, $44, $A1 db $42, $A6, $44, $A1, $42, $A6, $44, $A1, $4C, $A3, $01, $A6 db $48, $A1, $3A, $A6, $3E, $A1, $42, $A6, $44, $A1, $48, $A6 db $4C, $A1, $50, $A6, $52, $A1, $3A, $A6, $0B, $A1, $06, $A6 db $0B, $A1, $06, $A6, $0B, $A1, $06, $A3, $01, $A6, $0B, $A1 db $06, $A6, $0B, $A1, $06, $A6, $0B, $A1, $06, $A3, $01, $A6 db $0B, $A1, $06, $A6, $0B, $A1, $06, $A6, $0B, $A1, $06, $A3 db $01, $A6, $0B, $A1, $06, $2E, $7D, $FF, $FF, $01, $7D, $29 db $7D, $35, $7D, $5B, $7D, $82, $7D, $5B, $7D, $A4, $7D, $C6 db $7D, $FF, $FF, $03, $7D, $3B, $7D, $6C, $7D, $93, $7D, $6C db $7D, $B5, $7D, $07, $7E, $FF, $FF, $13, $7D, $3E, $7D, $41 db $7D, $FF, $FF, $23, $7D, $9D, $60, $00, $81, $00, $9D, $20 db $00, $81, $AA, $01, $00, $A3, $01, $50, $54, $58, $00, $A5 db $01, $00, $A5, $01, $00, $A3, $01, $06, $01, $06, $01, $A2 db $06, $06, $A3, $01, $06, $A3, $01, $06, $01, $06, $01, $A2 db $06, $06, $01, $01, $06, $06, $00, $A7, $5A, $A2, $5E, $A7 db $5A, $A2, $58, $A7, $58, $A2, $54, $A7, $58, $A2, $54, $00 db $9D, $C9, $6E, $20, $A2, $5A, $62, $68, $70, $5A, $62, $68 db $70, $5A, $64, $66, $6C, $5A, $64, $66, $6C, $00, $A7, $54 db $A2, $50, $A7, $54, $A2, $50, $A7, $50, $A2, $4C, $A7, $4A db $A2, $50, $00, $58, $5E, $64, $6C, $58, $5E, $64, $6C, $50 db $54, $58, $5E, $50, $58, $5E, $64, $00, $A7, $54, $A2, $50 db $A7, $54, $A2, $50, $A7, $50, $A2, $4C, $A7, $4A, $A2, $46 db $00, $58, $5E, $64, $6C, $58, $5E, $64, $6C, $50, $54, $58 db $5E, $50, $58, $5E, $64, $00, $A7, $4A, $A2, $4C, $A7, $4A db $A2, $46, $A7, $46, $A2, $44, $A7, $46, $A2, $4A, $A7, $4C db $A2, $50, $A7, $4C, $A2, $4A, $A7, $4A, $A2, $46, $A7, $4A db $A2, $4C, $A7, $50, $A2, $4E, $A7, $50, $A2, $52, $A7, $58 db $A2, $54, $A7, $5A, $A2, $54, $A7, $52, $A2, $50, $A7, $4C db $A2, $4A, $A2, $42, $38, $3C, $4A, $A3, $42, $01, $00, $4A db $52, $58, $5E, $4A, $58, $5E, $62, $54, $62, $68, $6C, $54 db $62, $68, $6C, $46, $4C, $54, $5E, $46, $4C, $54, $5A, $50 db $58, $5E, $64, $50, $5E, $64, $6C, $4A, $50, $58, $5E, $4A db $58, $5E, $62, $4E, $54, $5A, $62, $4E, $54, $5A, $66, $50 db $58, $5E, $64, $50, $5E, $64, $68, $A8, $5A, $A3, $01, $00 db $4E, $7E, $00, $00, $5E, $7E, $6D, $7E, $7D, $7E, $9D, $B1 db $00, $80, $A7, $01, $A1, $5E, $5E, $A6, $68, $A1, $5E, $A4 db $68, $00, $9D, $91, $00, $80, $A7, $01, $A1, $54, $54, $A6 db $5E, $A1, $58, $A4, $5E, $9D, $E9, $6E, $20, $A7, $01, $A1 db $4E, $4E, $A6, $58, $A1, $50, $A3, $58, $01, $A7, $01, $A1 db $06, $06, $A6, $0B, $A1, $06, $A0, $06, $06, $06, $06, $06 db $06, $06, $06, $A3, $01, $BB, $7E, $28, $7F, $BB, $7E, $73 db $7F, $FF, $FF, $91, $7E, $E5, $7E, $4F, $7F, $E5, $7E, $96 db $7F, $FF, $FF, $9D, $7E, $FB, $7E, $61, $7F, $FB, $7E, $AE db $7F, $FF, $FF, $A9, $7E, $11, $7F, $FF, $FF, $B5, $7E, $9D db $82, $00, $80, $A2, $54, $A1, $54, $54, $54, $4A, $46, $4A db $A2, $54, $A1, $54, $54, $54, $58, $5C, $58, $A2, $54, $A1 db $54, $54, $58, $54, $52, $54, $A1, $58, $5C, $58, $5C, $A2 db $58, $A1, $56, $58, $00, $9D, $62, $00, $80, $A2, $01, $44 db $01, $40, $01, $44, $01, $46, $01, $44, $01, $44, $01, $40 db $01, $40, $00, $9D, $E9, $6E, $20, $A2, $54, $54, $4A, $52 db $54, $54, $4A, $58, $54, $54, $52, $54, $4E, $54, $4A, $52 db $00, $A2, $06, $0B, $06, $0B, $06, $0B, $06, $0B, $06, $0B db $06, $0B, $06, $A1, $0B, $0B, $06, $A2, $0B, $A1, $06, $00 db $A2, $5E, $A1, $5E, $5E, $5E, $54, $50, $54, $A2, $5E, $A1 db $5E, $5E, $5E, $62, $66, $62, $A2, $5E, $A1, $5E, $5C, $A2 db $58, $A1, $58, $54, $A1, $52, $54, $52, $54, $A2, $52, $A1 db $4E, $52, $00, $A2, $01, $46, $01, $4A, $01, $46, $01, $4A db $01, $46, $01, $46, $01, $46, $01, $46, $00, $A2, $46, $54 db $54, $54, $46, $54, $54, $54, $46, $54, $52, $58, $44, $52 db $4A, $58, $00, $A2, $62, $A1, $62, $62, $62, $5E, $5A, $5E db $A2, $62, $A1, $62, $62, $62, $5E, $5A, $5E, $A2, $62, $A1 db $4A, $4E, $A2, $52, $A1, $4A, $5C, $A3, $58, $A1, $54, $A6 db $6C, $00, $A2, $01, $4A, $01, $4A, $01, $4A, $01, $4A, $01 db $A1, $46, $46, $A2, $46, $A1, $46, $46, $A3, $46, $A2, $44 db $01, $00, $A2, $42, $5A, $50, $5A, $42, $5A, $50, $5A, $4A db $A1, $52, $52, $A2, $52, $A1, $52, $52, $A3, $52, $A2, $54 db $01, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 db $00, $00, $00, $00, $00, $00, $00, $00 func_7ff0: jp l_64d3 Sound_Init:: jp $69a5 db $00, $00, $00, $00, $00, $00, $00, $00, $00
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The ACB coin bt developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sync.h" #include "clientversion.h" #include "util.h" #include "warnings.h" CCriticalSection cs_warnings; std::string strMiscWarning; bool fLargeWorkForkFound = false; bool fLargeWorkInvalidChainFound = false; void SetMiscWarning(const std::string& strWarning) { LOCK(cs_warnings); strMiscWarning = strWarning; } void SetfLargeWorkForkFound(bool flag) { LOCK(cs_warnings); fLargeWorkForkFound = flag; } bool GetfLargeWorkForkFound() { LOCK(cs_warnings); return fLargeWorkForkFound; } void SetfLargeWorkInvalidChainFound(bool flag) { LOCK(cs_warnings); fLargeWorkInvalidChainFound = flag; } bool GetfLargeWorkInvalidChainFound() { LOCK(cs_warnings); return fLargeWorkInvalidChainFound; } std::string GetWarnings(const std::string& strFor) { std::string strStatusBar; std::string strRPC; std::string strGUI; const std::string uiAlertSeperator = "<hr />"; LOCK(cs_warnings); if (!CLIENT_VERSION_IS_RELEASE) { strStatusBar = "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications"; strGUI = _("This is a pre-release test build - use at your own risk - do not use for mining or merchant applications"); } if (GetBoolArg("-testsafemode", DEFAULT_TESTSAFEMODE)) strStatusBar = strRPC = strGUI = "testsafemode enabled"; // Misc warnings like out of disk space and clock is wrong if (strMiscWarning != "") { strStatusBar = strMiscWarning; strGUI += (strGUI.empty() ? "" : uiAlertSeperator) + strMiscWarning; } if (fLargeWorkForkFound) { strStatusBar = strRPC = "Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues."; strGUI += (strGUI.empty() ? "" : uiAlertSeperator) + _("Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues."); } else if (fLargeWorkInvalidChainFound) { strStatusBar = strRPC = "Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade."; strGUI += (strGUI.empty() ? "" : uiAlertSeperator) + _("Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade."); } if (strFor == "gui") return strGUI; else if (strFor == "statusbar") return strStatusBar; else if (strFor == "rpc") return strRPC; assert(!"GetWarnings(): invalid parameter"); return "error"; }
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. The full text of the license may be found at ; http://opensource.org/licenses/bsd-license.php ; ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. ; ; Module Name: ; ; WriteLdtr.Asm ; ; Abstract: ; ; AsmWriteLdtr function ; ; Notes: ; ;------------------------------------------------------------------------------ .386p .model flat .code ;------------------------------------------------------------------------------ ; VOID ; EFIAPI ; AsmWriteLdtr ( ; IN UINT16 Ldtr ; ); ;------------------------------------------------------------------------------ _AsmWriteLdtr PROC mov eax, [esp + 4] lldt ax ret _AsmWriteLdtr ENDP END
; A033123: Base-5 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,1. ; 1,5,26,131,655,3276,16381,81905,409526,2047631,10238155,51190776,255953881,1279769405,6398847026,31994235131,159971175655,799855878276,3999279391381,19996396956905,99981984784526,499909923922631,2499549619613155,12497748098065776,62488740490328881,312443702451644405,1562218512258222026,7811092561291110131,39055462806455550655,195277314032277753276,976386570161388766381,4881932850806943831905,24409664254034719159526,122048321270173595797631,610241606350867978988155,3051208031754339894940776,15256040158771699474703881,76280200793858497373519405,381401003969292486867597026,1907005019846462434337985131,9535025099232312171689925655,47675125496161560858449628276,238375627480807804292248141381,1191878137404039021461240706905,5959390687020195107306203534526,29796953435100975536531017672631,148984767175504877682655088363155,744923835877524388413275441815776,3724619179387621942066377209078881,18623095896938109710331886045394405,93115479484690548551659430226972026,465577397423452742758297151134860131 seq $0,33132 ; Base-5 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,0. mov $3,$0 div $0,3 add $0,1 mov $1,$3 add $1,$3 mul $1,4 add $2,$0 mul $2,2 add $1,$2 sub $1,10 div $1,10 add $1,1 mov $0,$1
#include "FileReassembler.h" #include "File.h" namespace file_analysis { class File; FileReassembler::FileReassembler(File *f, uint64_t starting_offset) : Reassembler(starting_offset, REASSEM_FILE), the_file(f), flushing(false) { } FileReassembler::FileReassembler() : Reassembler(), the_file(0), flushing(false) { } FileReassembler::~FileReassembler() { } uint64_t FileReassembler::Flush() { if ( flushing ) return 0; if ( block_list.Empty() ) return 0; const auto& last_block = block_list.LastBlock(); // This is expected to call back into FileReassembler::Undelivered(). flushing = true; uint64_t rval = TrimToSeq(last_block.upper); flushing = false; return rval; } uint64_t FileReassembler::FlushTo(uint64_t sequence) { if ( flushing ) return 0; flushing = true; uint64_t rval = TrimToSeq(sequence); flushing = false; last_reassem_seq = sequence; return rval; } void FileReassembler::BlockInserted(DataBlockMap::const_iterator it) { const auto& start_block = it->second; if ( start_block.seq > last_reassem_seq || start_block.upper <= last_reassem_seq ) return; while ( it != block_list.End() ) { const auto& b = it->second; if ( b.seq > last_reassem_seq ) break; if ( b.seq == last_reassem_seq ) { // New stuff. uint64_t len = b.Size(); last_reassem_seq += len; the_file->DeliverStream(b.block, len); } ++it; } // Throw out forwarded data TrimToSeq(last_reassem_seq); } void FileReassembler::Undelivered(uint64_t up_to_seq) { // If we have blocks that begin below up_to_seq, deliver them. auto it = block_list.Begin(); while ( it != block_list.End() ) { const auto& b = it->second; if ( b.seq < last_reassem_seq ) { // Already delivered this block. ++it; continue; } if ( b.seq >= up_to_seq ) // Block is beyond what we need to process at this point. break; uint64_t gap_at_seq = last_reassem_seq; uint64_t gap_len = b.seq - last_reassem_seq; the_file->Gap(gap_at_seq, gap_len); last_reassem_seq += gap_len; BlockInserted(it); // Inserting a block may cause trimming of what's buffered, // so have to assume 'b' is invalid, hence re-assign to start. it = block_list.Begin(); } if ( up_to_seq > last_reassem_seq ) { the_file->Gap(last_reassem_seq, up_to_seq - last_reassem_seq); last_reassem_seq = up_to_seq; } } void FileReassembler::Overlap(const u_char* b1, const u_char* b2, uint64_t n) { // Not doing anything here yet. } } // end file_analysis
BITS 32 SEGMENT .text filler: db 0x00 start: add eax, 1 ret
//===--- Driver.cpp - Swift compiler driver -------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// // // This file contains implementations of parts of the compiler driver. // //===----------------------------------------------------------------------===// #include "swift/Driver/Driver.h" #include "ToolChains.h" #include "swift/AST/DiagnosticEngine.h" #include "swift/AST/DiagnosticsDriver.h" #include "swift/AST/DiagnosticsFrontend.h" #include "swift/Basic/LLVM.h" #include "swift/Basic/LangOptions.h" #include "swift/Basic/OutputFileMap.h" #include "swift/Basic/Platform.h" #include "swift/Basic/Range.h" #include "swift/Basic/Statistic.h" #include "swift/Basic/TaskQueue.h" #include "swift/Basic/Version.h" #include "swift/Config.h" #include "swift/Driver/Action.h" #include "swift/Driver/Compilation.h" #include "swift/Driver/Job.h" #include "swift/Driver/PrettyStackTrace.h" #include "swift/Driver/ToolChain.h" #include "swift/Option/Options.h" #include "swift/Option/SanitizerOptions.h" #include "swift/Parse/Lexer.h" #include "swift/Strings.h" #include "llvm/ADT/APInt.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/StringSwitch.h" #include "llvm/Config/config.h" #include "llvm/Option/Arg.h" #include "llvm/Option/ArgList.h" #include "llvm/Option/OptTable.h" #include "llvm/Remarks/RemarkFormat.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/Host.h" #include "llvm/Support/MD5.h" #include "llvm/Support/Path.h" #include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/raw_ostream.h" #include "CompilationRecord.h" #include <memory> using namespace swift; using namespace swift::driver; using namespace llvm::opt; Driver::Driver(StringRef DriverExecutable, StringRef Name, ArrayRef<const char *> Args, DiagnosticEngine &Diags) : Opts(createSwiftOptTable()), Diags(Diags), Name(Name), DriverExecutable(DriverExecutable), DefaultTargetTriple(llvm::sys::getDefaultTargetTriple()) { // The driver kind must be parsed prior to parsing arguments, since that // affects how arguments are parsed. parseDriverKind(Args.slice(1)); } Driver::~Driver() = default; void Driver::parseDriverKind(ArrayRef<const char *> Args) { // The default driver kind is determined by Name. StringRef DriverName = Name; std::string OptName; // However, the driver kind may be overridden if the first argument is // --driver-mode. if (!Args.empty()) { OptName = getOpts().getOption(options::OPT_driver_mode).getPrefixedName(); StringRef FirstArg(Args[0]); if (FirstArg.startswith(OptName)) DriverName = FirstArg.drop_front(OptName.size()); } Optional<DriverKind> Kind = llvm::StringSwitch<Optional<DriverKind>>(DriverName) .Case("swift", DriverKind::Interactive) .Case("swiftc", DriverKind::Batch) .Case("swift-autolink-extract", DriverKind::AutolinkExtract) .Case("swift-indent", DriverKind::SwiftIndent) .Case("swift-symbolgraph-extract", DriverKind::SymbolGraph) .Case("swift-api-extract", DriverKind::APIExtract) .Case("swift-api-digester", DriverKind::APIDigester) .Default(None); if (Kind.hasValue()) driverKind = Kind.getValue(); else if (!OptName.empty()) Diags.diagnose({}, diag::error_invalid_arg_value, OptName, DriverName); } ArrayRef<const char *> Driver::getArgsWithoutProgramNameAndDriverMode( ArrayRef<const char *> Args) const { Args = Args.slice(1); if (Args.empty()) return Args; const std::string OptName = getOpts().getOption(options::OPT_driver_mode).getPrefixedName(); if (StringRef(Args[0]).startswith(OptName)) Args = Args.slice(1); return Args; } static void validateBridgingHeaderArgs(DiagnosticEngine &diags, const ArgList &args) { if (!args.hasArgNoClaim(options::OPT_import_objc_header)) return; if (args.hasArgNoClaim(options::OPT_import_underlying_module)) diags.diagnose({}, diag::error_framework_bridging_header); if (args.hasArgNoClaim(options::OPT_emit_module_interface, options::OPT_emit_module_interface_path)) { diags.diagnose({}, diag::error_bridging_header_module_interface); } } static void validateWarningControlArgs(DiagnosticEngine &diags, const ArgList &args) { if (args.hasArg(options::OPT_suppress_warnings) && args.hasFlag(options::OPT_warnings_as_errors, options::OPT_no_warnings_as_errors, false)) { diags.diagnose(SourceLoc(), diag::error_conflicting_options, "-warnings-as-errors", "-suppress-warnings"); } } static void validateProfilingArgs(DiagnosticEngine &diags, const ArgList &args) { const Arg *ProfileGenerate = args.getLastArg(options::OPT_profile_generate); const Arg *ProfileUse = args.getLastArg(options::OPT_profile_use); if (ProfileGenerate && ProfileUse) { diags.diagnose(SourceLoc(), diag::error_conflicting_options, "-profile-generate", "-profile-use"); } // Check if the profdata is missing if (ProfileUse && !llvm::sys::fs::exists(ProfileUse->getValue())) { diags.diagnose(SourceLoc(), diag::error_profile_missing, ProfileUse->getValue()); } } static void validateDependencyScanningArgs(DiagnosticEngine &diags, const ArgList &args) { const Arg *ExternalDependencyMap = args.getLastArg(options::OPT_placeholder_dependency_module_map); const Arg *ScanDependencies = args.getLastArg(options::OPT_scan_dependencies); const Arg *Prescan = args.getLastArg(options::OPT_import_prescan); if (ExternalDependencyMap && !ScanDependencies) { diags.diagnose(SourceLoc(), diag::error_requirement_not_met, "-placeholder-dependency-module-map-file", "-scan-dependencies"); } if (Prescan && !ScanDependencies) { diags.diagnose(SourceLoc(), diag::error_requirement_not_met, "-import-prescan", "-scan-dependencies"); } } static void validateDebugInfoArgs(DiagnosticEngine &diags, const ArgList &args) { // Check for missing debug option when verifying debug info. if (args.hasArg(options::OPT_verify_debug_info)) { Arg *debugOpt = args.getLastArg(swift::options::OPT_g_Group); if (!debugOpt || debugOpt->getOption().matches(swift::options::OPT_gnone)) { diags.diagnose(SourceLoc(), diag::verify_debug_info_requires_debug_option); } } // Check for any -debug-prefix-map options that aren't of the form // 'original=remapped' (either side can be empty, however). for (auto A : args.getAllArgValues(options::OPT_debug_prefix_map)) if (A.find('=') == StringRef::npos) diags.diagnose(SourceLoc(), diag::error_invalid_debug_prefix_map, A); // Check for any -coverage-prefix-map options that aren't of the form // 'original=remapped' (either side can be empty, however). for (auto A : args.getAllArgValues(options::OPT_coverage_prefix_map)) if (A.find('=') == StringRef::npos) diags.diagnose(SourceLoc(), diag::error_invalid_coverage_prefix_map, A); } static void validateVerifyIncrementalDependencyArgs(DiagnosticEngine &diags, const ArgList &args) { // No option? No problem! if (!args.hasArg(options::OPT_verify_incremental_dependencies)) { return; } // Make sure we see -incremental but not -wmo, no matter in what order they're // in - the build systems can pass them both and just hope the last one wins. if (args.hasArg(options::OPT_incremental) && !args.hasArg(options::OPT_whole_module_optimization)) { return; } diags.diagnose(SourceLoc(), diag::verify_incremental_dependencies_needs_incremental); } static void validateCompilationConditionArgs(DiagnosticEngine &diags, const ArgList &args) { for (const Arg *A : args.filtered(options::OPT_D)) { StringRef name = A->getValue(); if (name.contains('=')) { diags.diagnose(SourceLoc(), diag::cannot_assign_value_to_conditional_compilation_flag, name); } else if (name.startswith("-D")) { diags.diagnose(SourceLoc(), diag::redundant_prefix_compilation_flag, name); } else if (!Lexer::isIdentifier(name)) { diags.diagnose(SourceLoc(), diag::invalid_conditional_compilation_flag, name); } } } static void validateSearchPathArgs(DiagnosticEngine &diags, const ArgList &args) { for (const Arg *A : args.filtered(options::OPT_F, options::OPT_Fsystem)) { StringRef name = A->getValue(); if (name.endswith(".framework") || name.endswith(".framework/")) diags.diagnose(SourceLoc(), diag::framework_search_path_includes_framework_extension, name); } } static void validateAutolinkingArgs(DiagnosticEngine &diags, const ArgList &args, const llvm::Triple &T) { auto *forceLoadArg = args.getLastArg(options::OPT_autolink_force_load); if (!forceLoadArg) return; auto *incrementalArg = args.getLastArg(options::OPT_incremental); if (!incrementalArg) return; if (T.supportsCOMDAT()) return; // Note: -incremental can itself be overridden by other arguments later // on, but since -autolink-force-load is a rare and not-really-recommended // option it's not worth modeling that complexity here (or moving the // check somewhere else). diags.diagnose(SourceLoc(), diag::error_option_not_supported, forceLoadArg->getSpelling(), incrementalArg->getSpelling()); } /// Perform miscellaneous early validation of arguments. static void validateArgs(DiagnosticEngine &diags, const ArgList &args, const llvm::Triple &T) { validateBridgingHeaderArgs(diags, args); validateWarningControlArgs(diags, args); validateProfilingArgs(diags, args); validateDependencyScanningArgs(diags, args); validateDebugInfoArgs(diags, args); validateCompilationConditionArgs(diags, args); validateSearchPathArgs(diags, args); validateAutolinkingArgs(diags, args, T); validateVerifyIncrementalDependencyArgs(diags, args); } std::unique_ptr<ToolChain> Driver::buildToolChain(const llvm::opt::InputArgList &ArgList) { if (const Arg *A = ArgList.getLastArg(options::OPT_target)) { DefaultTargetTriple = llvm::Triple::normalize(A->getValue()); } llvm::Triple target(DefaultTargetTriple); // Backward compatibility hack: infer "simulator" environment for x86 // iOS/tvOS/watchOS. if (tripleInfersSimulatorEnvironment(target)) { // Set the simulator environment. target.setEnvironment(llvm::Triple::EnvironmentType::Simulator); auto newTargetTriple = target.normalize(); Diags.diagnose(SourceLoc(), diag::warning_inferred_simulator_target, DefaultTargetTriple, newTargetTriple); DefaultTargetTriple = newTargetTriple; } switch (target.getOS()) { case llvm::Triple::IOS: case llvm::Triple::TvOS: case llvm::Triple::WatchOS: case llvm::Triple::Darwin: case llvm::Triple::MacOSX: { Optional<llvm::Triple> targetVariant; if (const Arg *A = ArgList.getLastArg(options::OPT_target_variant)) targetVariant = llvm::Triple(llvm::Triple::normalize(A->getValue())); return std::make_unique<toolchains::Darwin>(*this, target, targetVariant); } case llvm::Triple::Linux: if (target.isAndroid()) return std::make_unique<toolchains::Android>(*this, target); return std::make_unique<toolchains::GenericUnix>(*this, target); case llvm::Triple::FreeBSD: return std::make_unique<toolchains::GenericUnix>(*this, target); case llvm::Triple::OpenBSD: return std::make_unique<toolchains::OpenBSD>(*this, target); case llvm::Triple::Win32: if (target.isWindowsCygwinEnvironment()) return std::make_unique<toolchains::Cygwin>(*this, target); return std::make_unique<toolchains::Windows>(*this, target); case llvm::Triple::Haiku: return std::make_unique<toolchains::GenericUnix>(*this, target); case llvm::Triple::WASI: return std::make_unique<toolchains::GenericUnix>(*this, target); default: Diags.diagnose(SourceLoc(), diag::error_unknown_target, ArgList.getLastArg(options::OPT_target)->getValue()); break; } return nullptr; } std::unique_ptr<sys::TaskQueue> Driver::buildTaskQueue(const Compilation &C) { const auto &ArgList = C.getArgs(); unsigned NumberOfParallelCommands = 1; if (const Arg *A = ArgList.getLastArg(options::OPT_j)) { if (StringRef(A->getValue()).getAsInteger(10, NumberOfParallelCommands)) { Diags.diagnose(SourceLoc(), diag::error_invalid_arg_value, A->getAsString(ArgList), A->getValue()); return nullptr; } } if (environmentVariableRequestedMaximumDeterminism()) { NumberOfParallelCommands = 1; Diags.diagnose(SourceLoc(), diag::remark_max_determinism_overriding, "-j"); } const bool DriverSkipExecution = ArgList.hasArg(options::OPT_driver_skip_execution, options::OPT_driver_print_jobs); if (DriverSkipExecution) { return std::make_unique<sys::DummyTaskQueue>(NumberOfParallelCommands); } else { return std::make_unique<sys::TaskQueue>(NumberOfParallelCommands, C.getStatsReporter()); } } static void computeArgsHash(SmallString<32> &out, const DerivedArgList &args) { SmallVector<const Arg *, 32> interestingArgs; interestingArgs.reserve(args.size()); std::copy_if(args.begin(), args.end(), std::back_inserter(interestingArgs), [](const Arg *arg) { return !arg->getOption().hasFlag(options::DoesNotAffectIncrementalBuild) && arg->getOption().getKind() != Option::InputClass; }); llvm::array_pod_sort(interestingArgs.begin(), interestingArgs.end(), [](const Arg * const *lhs, const Arg * const *rhs)->int { auto cmpID = (*lhs)->getOption().getID() - (*rhs)->getOption().getID(); if (cmpID != 0) return cmpID; return (*lhs)->getIndex() - (*rhs)->getIndex(); }); llvm::MD5 hash; for (const Arg *arg : interestingArgs) { hash.update(arg->getOption().getID()); for (const char *value : const_cast<Arg *>(arg)->getValues()) hash.update(value); } llvm::MD5::MD5Result hashBuf; hash.final(hashBuf); llvm::MD5::stringifyResult(hashBuf, out); } class Driver::InputInfoMap : public llvm::SmallDenseMap<const Arg *, CompileJobAction::InputInfo, 16> { }; using InputInfoMap = Driver::InputInfoMap; /// Get the filename for build record. Returns true if failed. static bool getCompilationRecordPath(std::string &buildRecordPath, const OutputInfo &OI, const Optional<OutputFileMap> &OFM, DiagnosticEngine *Diags) { if (!OFM) { // FIXME: This should work without an output file map. We should have // another way to specify a build record and where to put intermediates. if (Diags) Diags->diagnose(SourceLoc(), diag::incremental_requires_output_file_map); return true; } if (auto *masterOutputMap = OFM->getOutputMapForSingleOutput()) buildRecordPath = masterOutputMap->lookup(file_types::TY_SwiftDeps); if (buildRecordPath.empty()) { if (Diags) Diags->diagnose(SourceLoc(), diag::incremental_requires_build_record_entry, file_types::getTypeName(file_types::TY_SwiftDeps)); return true; } return false; } static std::string failedToReadOutOfDateMap(bool ShowIncrementalBuildDecisions, StringRef buildRecordPath, StringRef reason = "") { std::string why = "malformed build record file"; if (!reason.empty()) { why += " "; why += reason; } if (ShowIncrementalBuildDecisions) { llvm::outs() << "Incremental compilation has been disabled due to " << why << " '" << buildRecordPath << "'.\n"; } return why; } static SmallVector<StringRef, 8> findRemovedInputs( const InputFileList &inputs, const llvm::StringMap<CompileJobAction::InputInfo> &previousInputs); static void dealWithRemovedInputs(ArrayRef<StringRef> removedInputs, bool ShowIncrementalBuildDecisions); /// Returns why ignore incrementality static std::string populateOutOfDateMap(InputInfoMap &map, llvm::sys::TimePoint<> &LastBuildTime, StringRef argsHashStr, const InputFileList &inputs, StringRef buildRecordPath, const bool ShowIncrementalBuildDecisions) { // Treat a missing file as "no previous build". auto buffer = llvm::MemoryBuffer::getFile(buildRecordPath); if (!buffer) { if (ShowIncrementalBuildDecisions) llvm::outs() << "Incremental compilation could not read build record.\n"; return "could not read build record"; } namespace yaml = llvm::yaml; using InputInfo = CompileJobAction::InputInfo; llvm::SourceMgr SM; yaml::Stream stream(buffer.get()->getMemBufferRef(), SM); auto I = stream.begin(); if (I == stream.end() || !I->getRoot()) return failedToReadOutOfDateMap(ShowIncrementalBuildDecisions, buildRecordPath); auto *topLevelMap = dyn_cast<yaml::MappingNode>(I->getRoot()); if (!topLevelMap) return failedToReadOutOfDateMap(ShowIncrementalBuildDecisions, buildRecordPath); SmallString<64> scratch; llvm::StringMap<InputInfo> previousInputs; bool versionValid = false; bool optionsMatch = true; auto readTimeValue = [&scratch](yaml::Node *node, llvm::sys::TimePoint<> &timeValue) -> bool { auto *seq = dyn_cast<yaml::SequenceNode>(node); if (!seq) return true; auto seqI = seq->begin(), seqE = seq->end(); if (seqI == seqE) return true; auto *secondsRaw = dyn_cast<yaml::ScalarNode>(&*seqI); if (!secondsRaw) return true; std::time_t parsedSeconds; if (secondsRaw->getValue(scratch).getAsInteger(10, parsedSeconds)) return true; ++seqI; if (seqI == seqE) return true; auto *nanosecondsRaw = dyn_cast<yaml::ScalarNode>(&*seqI); if (!nanosecondsRaw) return true; std::chrono::system_clock::rep parsedNanoseconds; if (nanosecondsRaw->getValue(scratch).getAsInteger(10, parsedNanoseconds)) return true; ++seqI; if (seqI != seqE) return true; timeValue = llvm::sys::TimePoint<>(std::chrono::seconds(parsedSeconds)); timeValue += std::chrono::nanoseconds(parsedNanoseconds); return false; }; // FIXME: LLVM's YAML support does incremental parsing in such a way that // for-range loops break. SmallString<64> CompilationRecordSwiftVersion; for (auto i = topLevelMap->begin(), e = topLevelMap->end(); i != e; ++i) { auto *key = cast<yaml::ScalarNode>(i->getKey()); StringRef keyStr = key->getValue(scratch); using compilation_record::TopLevelKey; if (keyStr == compilation_record::getName(TopLevelKey::Version)) { auto *value = dyn_cast<yaml::ScalarNode>(i->getValue()); if (!value) { auto reason = ("Malformed value for key '" + keyStr + "'.") .toStringRef(scratch); return failedToReadOutOfDateMap(ShowIncrementalBuildDecisions, buildRecordPath, reason); } // NB: We check against // swift::version::Version::getCurrentLanguageVersion() here because any // -swift-version argument is handled in the argsHashStr check that // follows. CompilationRecordSwiftVersion = value->getValue(scratch); versionValid = (CompilationRecordSwiftVersion == version::getSwiftFullVersion( version::Version::getCurrentLanguageVersion())); } else if (keyStr == compilation_record::getName(TopLevelKey::Options)) { auto *value = dyn_cast<yaml::ScalarNode>(i->getValue()); if (!value) return "no name node in build record"; optionsMatch = (argsHashStr == value->getValue(scratch)); } else if (keyStr == compilation_record::getName(TopLevelKey::BuildTime)) { auto *value = dyn_cast<yaml::SequenceNode>(i->getValue()); if (!value) { auto reason = ("Malformed value for key '" + keyStr + "'.") .toStringRef(scratch); return failedToReadOutOfDateMap(ShowIncrementalBuildDecisions, buildRecordPath, reason); } llvm::sys::TimePoint<> timeVal; if (readTimeValue(i->getValue(), timeVal)) return "could not read time value in build record"; LastBuildTime = timeVal; } else if (keyStr == compilation_record::getName(TopLevelKey::Inputs)) { auto *inputMap = dyn_cast<yaml::MappingNode>(i->getValue()); if (!inputMap) { auto reason = ("Malformed value for key '" + keyStr + "'.") .toStringRef(scratch); return failedToReadOutOfDateMap(ShowIncrementalBuildDecisions, buildRecordPath, reason); } // FIXME: LLVM's YAML support does incremental parsing in such a way that // for-range loops break. for (auto i = inputMap->begin(), e = inputMap->end(); i != e; ++i) { auto *key = dyn_cast<yaml::ScalarNode>(i->getKey()); if (!key) return "no input entry in build record"; auto *value = dyn_cast<yaml::SequenceNode>(i->getValue()); if (!value) return "no sequence node for input entry in build record"; using compilation_record::getInfoStatusForIdentifier; auto previousBuildState = getInfoStatusForIdentifier(value->getRawTag()); if (!previousBuildState) return "no previous build state in build record"; llvm::sys::TimePoint<> timeValue; if (readTimeValue(value, timeValue)) return "could not read time value in build record"; auto inputName = key->getValue(scratch); previousInputs[inputName] = { *previousBuildState, timeValue }; } } } if (!versionValid) { if (ShowIncrementalBuildDecisions) { auto v = version::getSwiftFullVersion( version::Version::getCurrentLanguageVersion()); llvm::outs() << "Incremental compilation has been disabled, due to a " << "compiler version mismatch.\n" << "\tCompiling with: " << v << "\n" << "\tPreviously compiled with: " << CompilationRecordSwiftVersion << "\n"; } return "compiler version mismatch"; } if (!optionsMatch) { if (ShowIncrementalBuildDecisions) { llvm::outs() << "Incremental compilation has been disabled, because " << "different arguments were passed to the compiler.\n"; } return "different arguments passed to compiler"; } unsigned numMatchingPreviouslyCompiledInputs = 0; for (auto &inputPair : inputs) { auto iter = previousInputs.find(inputPair.second->getValue()); if (iter == previousInputs.end()) map[inputPair.second] = CompileJobAction::InputInfo::makeNewlyAdded(); else { map[inputPair.second] = iter->getValue(); ++numMatchingPreviouslyCompiledInputs; } } assert(numMatchingPreviouslyCompiledInputs <= previousInputs.size()); auto const wereAnyInputsRemoved = numMatchingPreviouslyCompiledInputs < previousInputs.size(); if (!wereAnyInputsRemoved) return ""; const auto removedInputs = findRemovedInputs(inputs, previousInputs); assert(!removedInputs.empty()); dealWithRemovedInputs(removedInputs, ShowIncrementalBuildDecisions); return "an input was removed"; // recompile everything; could do better // someday } static SmallVector<StringRef, 8> findRemovedInputs( const InputFileList &inputs, const llvm::StringMap<CompileJobAction::InputInfo> &previousInputs) { llvm::DenseSet<StringRef> inputArgs; for (auto &inputPair : inputs) { inputArgs.insert(inputPair.second->getValue()); } SmallVector<StringRef, 8> missingInputs; for (auto &previousInput : previousInputs) { auto previousInputArg = previousInput.getKey(); if (!inputArgs.contains(previousInputArg)) { missingInputs.push_back(previousInputArg); } } return missingInputs; } static void showRemovedInputs(ArrayRef<StringRef> removedInputs); /// Return true if hadError static void dealWithRemovedInputs(ArrayRef<StringRef> removedInputs, const bool ShowIncrementalBuildDecisions) { // If a file was removed, we've lost its dependency info. Rebuild everything. // FIXME: Can we do better? if (ShowIncrementalBuildDecisions) showRemovedInputs(removedInputs); } static void showRemovedInputs(ArrayRef<StringRef> removedInputs) { llvm::outs() << "Incremental compilation has been disabled, because " << "the following inputs were used in the previous " << "compilation, but not in the current compilation:\n"; for (auto &missing : removedInputs) llvm::outs() << "\t" << missing << "\n"; } // warn if -embed-bitcode is set and the output type is not an object static void validateEmbedBitcode(DerivedArgList &Args, const OutputInfo &OI, DiagnosticEngine &Diags) { if (Args.hasArg(options::OPT_embed_bitcode) && OI.CompilerOutputType != file_types::TY_Object) { Diags.diagnose(SourceLoc(), diag::warn_ignore_embed_bitcode); Args.eraseArg(options::OPT_embed_bitcode); } if (Args.hasArg(options::OPT_embed_bitcode_marker) && OI.CompilerOutputType != file_types::TY_Object) { Diags.diagnose(SourceLoc(), diag::warn_ignore_embed_bitcode_marker); Args.eraseArg(options::OPT_embed_bitcode_marker); } } /// Gets the filelist threshold to use. Diagnoses and returns true on error. static bool getFilelistThreshold(DerivedArgList &Args, size_t &FilelistThreshold, DiagnosticEngine &Diags) { FilelistThreshold = 128; // claim and diagnose deprecated -driver-use-filelists bool HasUseFilelists = Args.hasArg(options::OPT_driver_use_filelists); if (HasUseFilelists) Diags.diagnose(SourceLoc(), diag::warn_use_filelists_deprecated); if (const Arg *A = Args.getLastArg(options::OPT_driver_filelist_threshold)) { // Use the supplied threshold if (StringRef(A->getValue()).getAsInteger(10, FilelistThreshold)) { Diags.diagnose(SourceLoc(), diag::error_invalid_arg_value, A->getAsString(Args), A->getValue()); return true; } } else if (HasUseFilelists) { // Treat -driver-use-filelists as -driver-filelist-threshold=0 FilelistThreshold = 0; } // else stick with the default return false; } static unsigned getDriverBatchSeed(llvm::opt::InputArgList &ArgList, DiagnosticEngine &Diags) { unsigned DriverBatchSeed = 0; if (const Arg *A = ArgList.getLastArg(options::OPT_driver_batch_seed)) { if (StringRef(A->getValue()).getAsInteger(10, DriverBatchSeed)) { Diags.diagnose(SourceLoc(), diag::error_invalid_arg_value, A->getAsString(ArgList), A->getValue()); } } return DriverBatchSeed; } static Optional<unsigned> getDriverBatchCount(llvm::opt::InputArgList &ArgList, DiagnosticEngine &Diags) { if (const Arg *A = ArgList.getLastArg(options::OPT_driver_batch_count)) { unsigned Count = 0; if (StringRef(A->getValue()).getAsInteger(10, Count)) { Diags.diagnose(SourceLoc(), diag::error_invalid_arg_value, A->getAsString(ArgList), A->getValue()); } else { return Count; } } return None; } static bool computeIncremental(const llvm::opt::InputArgList *ArgList, const bool ShowIncrementalBuildDecisions) { if (!ArgList->hasArg(options::OPT_incremental)) return false; const char *ReasonToDisable = ArgList->hasFlag(options::OPT_whole_module_optimization, options::OPT_no_whole_module_optimization, false) ? "is not compatible with whole module optimization." : ArgList->hasArg(options::OPT_embed_bitcode) ? "is not currently compatible with embedding LLVM IR bitcode." : nullptr; if (!ReasonToDisable) return true; if (ShowIncrementalBuildDecisions) { llvm::outs() << "Incremental compilation has been disabled, because it " << ReasonToDisable; } return false; } static std::string computeWorkingDirectory(const llvm::opt::InputArgList *ArgList) { if (auto *A = ArgList->getLastArg(options::OPT_working_directory)) { SmallString<128> workingDirectory; workingDirectory = A->getValue(); llvm::sys::fs::make_absolute(workingDirectory); std::string result = workingDirectory.str().str(); return result; } return std::string(); } static std::unique_ptr<UnifiedStatsReporter> createStatsReporter(const llvm::opt::InputArgList *ArgList, const InputFileList &Inputs, const OutputInfo OI, StringRef DefaultTargetTriple) { const Arg *A = ArgList->getLastArgNoClaim(options::OPT_stats_output_dir); if (!A) return nullptr; StringRef OptType; if (const Arg *OptA = ArgList->getLastArgNoClaim(options::OPT_O_Group)) { OptType = OptA->getSpelling(); } StringRef InputName; if (Inputs.size() == 1) { InputName = Inputs[0].second->getSpelling(); } StringRef OutputType = file_types::getExtension(OI.CompilerOutputType); return std::make_unique<UnifiedStatsReporter>("swift-driver", OI.ModuleName, InputName, DefaultTargetTriple, OutputType, OptType, A->getValue()); } static bool computeContinueBuildingAfterErrors(const bool BatchMode, const llvm::opt::InputArgList *ArgList) { // Note: Batch mode handling of serialized diagnostics requires that all // batches get to run, in order to make sure that all diagnostics emitted // during the compilation end up in at least one serialized diagnostic file. // Therefore, treat batch mode as implying -continue-building-after-errors. // (This behavior could be limited to only when serialized diagnostics are // being emitted, but this seems more consistent and less surprising for // users.) // FIXME: We don't really need (or want) a full ContinueBuildingAfterErrors. // If we fail to precompile a bridging header, for example, there's no need // to go on to compilation of source files, and if compilation of source files // fails, we shouldn't try to link. Instead, we'd want to let all jobs finish // but not schedule any new ones. return BatchMode || ArgList->hasArg(options::OPT_continue_building_after_errors); } static Optional<unsigned> getDriverBatchSizeLimit(llvm::opt::InputArgList &ArgList, DiagnosticEngine &Diags) { if (const Arg *A = ArgList.getLastArg(options::OPT_driver_batch_size_limit)) { unsigned Limit = 0; if (StringRef(A->getValue()).getAsInteger(10, Limit)) { Diags.diagnose(SourceLoc(), diag::error_invalid_arg_value, A->getAsString(ArgList), A->getValue()); } else { return Limit; } } return None; } std::unique_ptr<Compilation> Driver::buildCompilation(const ToolChain &TC, std::unique_ptr<llvm::opt::InputArgList> ArgList) { llvm::PrettyStackTraceString CrashInfo("Compilation construction"); llvm::sys::TimePoint<> StartTime = std::chrono::system_clock::now(); // Claim --driver-mode here, since it's already been handled. (void) ArgList->hasArg(options::OPT_driver_mode); DriverPrintBindings = ArgList->hasArg(options::OPT_driver_print_bindings); const std::string workingDirectory = computeWorkingDirectory(ArgList.get()); std::unique_ptr<DerivedArgList> TranslatedArgList( translateInputAndPathArgs(*ArgList, workingDirectory)); validateArgs(Diags, *TranslatedArgList, TC.getTriple()); // Perform toolchain specific args validation. TC.validateArguments(Diags, *TranslatedArgList, DefaultTargetTriple); if (Diags.hadAnyError()) return nullptr; if (!handleImmediateArgs(*TranslatedArgList, TC)) { return nullptr; } // Construct the list of inputs. InputFileList Inputs; buildInputs(TC, *TranslatedArgList, Inputs); if (Diags.hadAnyError()) return nullptr; // Determine the OutputInfo for the driver. OutputInfo OI; bool BatchMode = false; OI.CompilerMode = computeCompilerMode(*TranslatedArgList, Inputs, BatchMode); buildOutputInfo(TC, *TranslatedArgList, BatchMode, Inputs, OI); if (Diags.hadAnyError()) return nullptr; assert(OI.CompilerOutputType != file_types::ID::TY_INVALID && "buildOutputInfo() must set a valid output type!"); TC.validateOutputInfo(Diags, OI); if (Diags.hadAnyError()) return nullptr; validateEmbedBitcode(*TranslatedArgList, OI, Diags); if (OI.CompilerMode == OutputInfo::Mode::REPL) // REPL mode expects no input files, so suppress the error. SuppressNoInputFilesError = true; Optional<OutputFileMap> OFM = buildOutputFileMap( *TranslatedArgList, workingDirectory); if (Diags.hadAnyError()) return nullptr; if (ArgList->hasArg(options::OPT_driver_print_output_file_map)) { if (OFM) OFM->dump(llvm::errs(), true); else Diags.diagnose(SourceLoc(), diag::error_no_output_file_map_specified); return nullptr; } const bool ShowIncrementalBuildDecisions = ArgList->hasArg(options::OPT_driver_show_incremental); const bool Incremental = computeIncremental(ArgList.get(), ShowIncrementalBuildDecisions); std::string buildRecordPath; getCompilationRecordPath(buildRecordPath, OI, OFM, Incremental ? &Diags : nullptr); SmallString<32> ArgsHash; computeArgsHash(ArgsHash, *TranslatedArgList); llvm::sys::TimePoint<> LastBuildTime = llvm::sys::TimePoint<>::min(); InputInfoMap outOfDateMap; std::string whyIgnoreIncrementallity = !Incremental ? "" : buildRecordPath.empty() ? "no build record path" : populateOutOfDateMap(outOfDateMap, LastBuildTime, ArgsHash, Inputs, buildRecordPath, ShowIncrementalBuildDecisions); // FIXME: Distinguish errors from "file removed", which is benign. size_t DriverFilelistThreshold; if (getFilelistThreshold(*TranslatedArgList, DriverFilelistThreshold, Diags)) return nullptr; OutputLevel Level = OutputLevel::Normal; if (const Arg *A = ArgList->getLastArg(options::OPT_driver_print_jobs, options::OPT_v, options::OPT_parseable_output)) { if (A->getOption().matches(options::OPT_driver_print_jobs)) Level = OutputLevel::PrintJobs; else if (A->getOption().matches(options::OPT_v)) Level = OutputLevel::Verbose; else if (A->getOption().matches(options::OPT_parseable_output)) Level = OutputLevel::Parseable; else llvm_unreachable("Unknown OutputLevel argument!"); } // About to move argument list, so capture some flags that will be needed // later. const bool DriverPrintActions = ArgList->hasArg(options::OPT_driver_print_actions); const bool DriverPrintDerivedOutputFileMap = ArgList->hasArg(options::OPT_driver_print_derived_output_file_map); const bool ContinueBuildingAfterErrors = computeContinueBuildingAfterErrors(BatchMode, ArgList.get()); const bool ShowJobLifecycle = ArgList->hasArg(options::OPT_driver_show_job_lifecycle); // In order to confine the values below, while still moving the argument // list, and preserving the interface to Compilation, enclose the call to the // constructor in a block: std::unique_ptr<Compilation> C; { const unsigned DriverBatchSeed = getDriverBatchSeed(*ArgList, Diags); const Optional<unsigned> DriverBatchCount = getDriverBatchCount(*ArgList, Diags); const Optional<unsigned> DriverBatchSizeLimit = getDriverBatchSizeLimit(*ArgList, Diags); const bool SaveTemps = ArgList->hasArg(options::OPT_save_temps); const bool ShowDriverTimeCompilation = ArgList->hasArg(options::OPT_driver_time_compilation); std::unique_ptr<UnifiedStatsReporter> StatsReporter = createStatsReporter(ArgList.get(), Inputs, OI, DefaultTargetTriple); const bool OnlyOneDependencyFile = ArgList->hasFlag(options::OPT_enable_only_one_dependency_file, options::OPT_disable_only_one_dependency_file, false); const bool VerifyFineGrainedDependencyGraphAfterEveryImport = ArgList->hasArg( options:: OPT_driver_verify_fine_grained_dependency_graph_after_every_import); const bool EmitFineGrainedDependencyDotFileAfterEveryImport = ArgList->hasArg( options:: OPT_driver_emit_fine_grained_dependency_dot_file_after_every_import); const bool EnableCrossModuleDependencies = ArgList->hasArg(options::OPT_enable_incremental_imports, options::OPT_disable_incremental_imports, true); // clang-format off C = std::make_unique<Compilation>( Diags, TC, OI, Level, std::move(ArgList), std::move(TranslatedArgList), std::move(Inputs), buildRecordPath, ArgsHash, StartTime, LastBuildTime, DriverFilelistThreshold, Incremental, BatchMode, DriverBatchSeed, DriverBatchCount, DriverBatchSizeLimit, SaveTemps, ShowDriverTimeCompilation, std::move(StatsReporter), OnlyOneDependencyFile, VerifyFineGrainedDependencyGraphAfterEveryImport, EmitFineGrainedDependencyDotFileAfterEveryImport, EnableCrossModuleDependencies); // clang-format on } // Construct the graph of Actions. SmallVector<const Action *, 8> TopLevelActions; buildActions(TopLevelActions, TC, OI, whyIgnoreIncrementallity.empty() ? &outOfDateMap : nullptr, *C); if (Diags.hadAnyError()) return nullptr; if (DriverPrintActions) { printActions(*C); return nullptr; } buildJobs(TopLevelActions, OI, OFM ? OFM.getPointer() : nullptr, workingDirectory, TC, *C); if (DriverPrintDerivedOutputFileMap) { C->getDerivedOutputFileMap().dump(llvm::outs(), true); return nullptr; } // For getting bulk fixits, or for when users explicitly request to continue // building despite errors. if (ContinueBuildingAfterErrors) C->setContinueBuildingAfterErrors(); if (ShowIncrementalBuildDecisions || ShowJobLifecycle) C->setShowIncrementalBuildDecisions(); if (ShowJobLifecycle) C->setShowJobLifecycle(); // This has to happen after building jobs, because otherwise we won't even // emit .swiftdeps files for the next build. if (!whyIgnoreIncrementallity.empty()) C->disableIncrementalBuild(whyIgnoreIncrementallity); if (Diags.hadAnyError()) return nullptr; if (DriverPrintBindings) return nullptr; return C; } static Arg *makeInputArg(const DerivedArgList &Args, OptTable &Opts, StringRef Value) { Arg *A = new Arg(Opts.getOption(options::OPT_INPUT), Value, Args.getBaseArgs().MakeIndex(Value), Value.data()); A->claim(); return A; } using RemainingArgsHandler = llvm::function_ref<void(InputArgList &, unsigned)>; std::unique_ptr<InputArgList> parseArgsUntil(const llvm::opt::OptTable& Opts, const char *const *ArgBegin, const char *const *ArgEnd, unsigned &MissingArgIndex, unsigned &MissingArgCount, unsigned FlagsToInclude, unsigned FlagsToExclude, llvm::opt::OptSpecifier UntilOption, RemainingArgsHandler RemainingHandler) { auto Args = std::make_unique<InputArgList>(ArgBegin, ArgEnd); // FIXME: Handle '@' args (or at least error on them). bool CheckUntil = UntilOption != options::OPT_INVALID; MissingArgIndex = MissingArgCount = 0; unsigned Index = 0, End = ArgEnd - ArgBegin; while (Index < End) { // Ignore empty arguments (other things may still take them as arguments). StringRef Str = Args->getArgString(Index); if (Str == "") { ++Index; continue; } unsigned Prev = Index; Arg *A = Opts.ParseOneArg(*Args, Index, FlagsToInclude, FlagsToExclude); assert(Index > Prev && "Parser failed to consume argument."); // Check for missing argument error. if (!A) { assert(Index >= End && "Unexpected parser error."); assert(Index - Prev - 1 && "No missing arguments!"); MissingArgIndex = Prev; MissingArgCount = Index - Prev - 1; break; } Args->append(A); if (CheckUntil && A->getOption().matches(UntilOption)) { if (Index < End) RemainingHandler(*Args, Index); return Args; } } return Args; } // Parse all args until we see an input, and then collect the remaining // arguments into a synthesized "--" option. static std::unique_ptr<InputArgList> parseArgStringsForInteractiveDriver(const llvm::opt::OptTable& Opts, ArrayRef<const char *> Args, unsigned &MissingArgIndex, unsigned &MissingArgCount, unsigned FlagsToInclude, unsigned FlagsToExclude) { return parseArgsUntil(Opts, Args.begin(), Args.end(), MissingArgIndex, MissingArgCount, FlagsToInclude, FlagsToExclude, options::OPT_INPUT, [&](InputArgList &Args, unsigned NextIndex) { assert(NextIndex < Args.getNumInputArgStrings()); // Synthesize -- remaining args... Arg *Remaining = new Arg(Opts.getOption(options::OPT__DASH_DASH), "--", NextIndex); for (unsigned N = Args.getNumInputArgStrings(); NextIndex != N; ++NextIndex) { Remaining->getValues().push_back(Args.getArgString(NextIndex)); } Args.append(Remaining); }); } std::unique_ptr<InputArgList> Driver::parseArgStrings(ArrayRef<const char *> Args) { unsigned IncludedFlagsBitmask = 0; unsigned ExcludedFlagsBitmask = options::NoDriverOption; unsigned MissingArgIndex, MissingArgCount; std::unique_ptr<InputArgList> ArgList; if (driverKind == DriverKind::Interactive) { ArgList = parseArgStringsForInteractiveDriver(getOpts(), Args, MissingArgIndex, MissingArgCount, IncludedFlagsBitmask, ExcludedFlagsBitmask); } else { ArgList = std::make_unique<InputArgList>( getOpts().ParseArgs(Args, MissingArgIndex, MissingArgCount, IncludedFlagsBitmask, ExcludedFlagsBitmask)); } assert(ArgList && "no argument list"); // Check for missing argument error. if (MissingArgCount) { Diags.diagnose(SourceLoc(), diag::error_missing_arg_value, ArgList->getArgString(MissingArgIndex), MissingArgCount); return nullptr; } // Check for unknown arguments. for (const Arg *A : ArgList->filtered(options::OPT_UNKNOWN)) { Diags.diagnose(SourceLoc(), diag::error_unknown_arg, A->getAsString(*ArgList)); } // Check for unsupported options unsigned UnsupportedFlag = 0; if (driverKind == DriverKind::Interactive) UnsupportedFlag = options::NoInteractiveOption; else if (driverKind == DriverKind::Batch) UnsupportedFlag = options::NoBatchOption; if (UnsupportedFlag) for (const Arg *A : *ArgList) if (A->getOption().hasFlag(UnsupportedFlag)) Diags.diagnose(SourceLoc(), diag::error_unsupported_option, ArgList->getArgString(A->getIndex()), Name, UnsupportedFlag == options::NoBatchOption ? "swift" : "swiftc"); return ArgList; } DerivedArgList * Driver::translateInputAndPathArgs(const InputArgList &ArgList, StringRef workingDirectory) const { DerivedArgList *DAL = new DerivedArgList(ArgList); auto addPath = [workingDirectory, DAL](Arg *A) { assert(A->getNumValues() == 1 && "multiple values not handled"); StringRef path = A->getValue(); if (workingDirectory.empty() || path == "-" || llvm::sys::path::is_absolute(path)) { DAL->append(A); return; } SmallString<64> fullPath{workingDirectory}; llvm::sys::path::append(fullPath, path); unsigned index = DAL->getBaseArgs().MakeIndex(fullPath); Arg *newArg = new Arg(A->getOption(), A->getSpelling(), index, DAL->getBaseArgs().getArgString(index), A); DAL->AddSynthesizedArg(newArg); DAL->append(newArg); }; for (Arg *A : ArgList) { if (A->getOption().hasFlag(options::ArgumentIsPath) || A->getOption().matches(options::OPT_INPUT)) { addPath(A); continue; } // If we're not in immediate mode, pick up inputs via the -- option. if (driverKind != DriverKind::Interactive && A->getOption().matches(options::OPT__DASH_DASH)) { A->claim(); for (unsigned i = 0, e = A->getNumValues(); i != e; ++i) { addPath(makeInputArg(*DAL, *Opts, A->getValue(i))); } continue; } DAL->append(A); } return DAL; } /// Check that the file referenced by \p Input exists. If it doesn't, /// issue a diagnostic and return false. static bool checkInputExistence(const Driver &D, const DerivedArgList &Args, DiagnosticEngine &Diags, StringRef Input) { if (!D.getCheckInputFilesExist()) return true; // stdin always exists. if (Input == "-") return true; if (llvm::sys::fs::exists(Input)) return true; Diags.diagnose(SourceLoc(), diag::error_no_such_file_or_directory, Input); return false; } void Driver::buildInputs(const ToolChain &TC, const DerivedArgList &Args, InputFileList &Inputs) const { llvm::DenseMap<StringRef, StringRef> SourceFileNames; bool HasVFS = Args.hasArg(options::OPT_vfsoverlay); for (Arg *A : Args) { if (A->getOption().getKind() == Option::InputClass) { StringRef Value = A->getValue(); file_types::ID Ty = file_types::TY_INVALID; // stdin must be handled specially. if (Value.equals("-")) { // By default, treat stdin as Swift input. Ty = file_types::TY_Swift; } else { // Otherwise lookup by extension. Ty = TC.lookupTypeForExtension(llvm::sys::path::extension(Value)); if (Ty == file_types::TY_INVALID) { // By default, treat inputs with no extension, or with an // extension that isn't recognized, as object files. Ty = file_types::TY_Object; } } if (HasVFS || checkInputExistence(*this, Args, Diags, Value)) Inputs.push_back(std::make_pair(Ty, A)); if (Ty == file_types::TY_Swift) { StringRef Basename = llvm::sys::path::filename(Value); if (!SourceFileNames.insert({Basename, Value}).second) { Diags.diagnose(SourceLoc(), diag::error_two_files_same_name, Basename, SourceFileNames[Basename], Value); Diags.diagnose(SourceLoc(), diag::note_explain_two_files_same_name); } } } } } static bool maybeBuildingExecutable(const OutputInfo &OI, const DerivedArgList &Args, const InputFileList &Inputs) { switch (OI.LinkAction) { case LinkKind::Executable: return true; case LinkKind::DynamicLibrary: return false; case LinkKind::StaticLibrary: return false; case LinkKind::None: break; } if (Args.hasArg(options::OPT_parse_as_library, options::OPT_parse_stdlib)) return false; return Inputs.size() == 1; } static void diagnoseOutputModeArg(DiagnosticEngine &diags, const Arg *arg, bool hasInputs, const DerivedArgList &args, bool isInteractiveDriver, StringRef driverName) { switch (arg->getOption().getID()) { case options::OPT_i: diags.diagnose(SourceLoc(), diag::error_i_mode, isInteractiveDriver ? driverName : "swift"); break; case options::OPT_repl: if (isInteractiveDriver && !hasInputs) diags.diagnose(SourceLoc(), diag::warning_unnecessary_repl_mode, args.getArgString(arg->getIndex()), driverName); break; default: break; } } static bool isSDKTooOld(StringRef sdkPath, llvm::VersionTuple minVersion, StringRef firstPrefix, StringRef secondPrefix = {}) { // FIXME: This is a hack. // We should be looking at the SDKSettings.plist. StringRef sdkDirName = llvm::sys::path::filename(sdkPath); size_t versionStart = sdkDirName.rfind(firstPrefix); if (versionStart != StringRef::npos) { versionStart += firstPrefix.size(); } else if (!secondPrefix.empty()) { versionStart = sdkDirName.rfind(secondPrefix); if (versionStart != StringRef::npos) versionStart += secondPrefix.size(); } if (versionStart == StringRef::npos) return false; size_t versionEnd = sdkDirName.rfind(".Internal"); if (versionEnd == StringRef::npos) versionEnd = sdkDirName.rfind(".sdk"); if (versionEnd == StringRef::npos) return false; llvm::VersionTuple version; if (version.tryParse(sdkDirName.slice(versionStart, versionEnd))) return false; return version < minVersion; } /// Returns true if the given SDK path points to an SDK that is too old for /// the given target. static bool isSDKTooOld(StringRef sdkPath, const llvm::Triple &target) { if (target.isMacOSX()) { return isSDKTooOld(sdkPath, llvm::VersionTuple(10, 15), "OSX"); } else if (target.isiOS()) { // Includes both iOS and TVOS. return isSDKTooOld(sdkPath, llvm::VersionTuple(13, 0), "Simulator", "OS"); } else if (target.isWatchOS()) { return isSDKTooOld(sdkPath, llvm::VersionTuple(6, 0), "Simulator", "OS"); } else { return false; } } void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args, const bool BatchMode, const InputFileList &Inputs, OutputInfo &OI) const { if (const Arg *A = Args.getLastArg(options::OPT_lto)) { auto LTOVariant = llvm::StringSwitch<Optional<OutputInfo::LTOKind>>(A->getValue()) .Case("llvm-thin", OutputInfo::LTOKind::LLVMThin) .Case("llvm-full", OutputInfo::LTOKind::LLVMFull) .Default(llvm::None); if (LTOVariant) OI.LTOVariant = LTOVariant.getValue(); else Diags.diagnose(SourceLoc(), diag::error_invalid_arg_value, A->getAsString(Args), A->getValue()); } auto CompilerOutputType = OI.LTOVariant != OutputInfo::LTOKind::None ? file_types::TY_LLVM_BC : file_types::TY_Object; // By default, the driver does not link its output; this will be updated // appropriately below if linking is required. OI.CompilerOutputType = driverKind == DriverKind::Interactive ? file_types::TY_Nothing : CompilerOutputType; if (const Arg *A = Args.getLastArg(options::OPT_num_threads)) { if (BatchMode) { Diags.diagnose(SourceLoc(), diag::warning_cannot_multithread_batch_mode); } else if (StringRef(A->getValue()).getAsInteger(10, OI.numThreads)) { Diags.diagnose(SourceLoc(), diag::error_invalid_arg_value, A->getAsString(Args), A->getValue()); } } const Arg *const OutputModeArg = Args.getLastArg(options::OPT_modes_Group); if (!OutputModeArg) { if (Args.hasArg(options::OPT_emit_module, options::OPT_emit_module_path)) { OI.CompilerOutputType = file_types::TY_SwiftModuleFile; } else if (driverKind != DriverKind::Interactive) { OI.LinkAction = LinkKind::Executable; } } else { diagnoseOutputModeArg(Diags, OutputModeArg, !Inputs.empty(), Args, driverKind == DriverKind::Interactive, Name); switch (OutputModeArg->getOption().getID()) { case options::OPT_emit_executable: if (Args.hasArg(options::OPT_static)) Diags.diagnose(SourceLoc(), diag::error_static_emit_executable_disallowed); OI.LinkAction = LinkKind::Executable; OI.CompilerOutputType = CompilerOutputType; break; case options::OPT_emit_library: OI.LinkAction = Args.hasArg(options::OPT_static) ? LinkKind::StaticLibrary : LinkKind::DynamicLibrary; OI.CompilerOutputType = CompilerOutputType; break; case options::OPT_static: break; case options::OPT_emit_object: OI.CompilerOutputType = file_types::TY_Object; break; case options::OPT_emit_assembly: OI.CompilerOutputType = file_types::TY_Assembly; break; case options::OPT_emit_sil: OI.CompilerOutputType = file_types::TY_SIL; break; case options::OPT_emit_silgen: OI.CompilerOutputType = file_types::TY_RawSIL; break; case options::OPT_emit_sib: OI.CompilerOutputType = file_types::TY_SIB; break; case options::OPT_emit_sibgen: OI.CompilerOutputType = file_types::TY_RawSIB; break; case options::OPT_emit_irgen: case options::OPT_emit_ir: OI.CompilerOutputType = file_types::TY_LLVM_IR; break; case options::OPT_emit_bc: OI.CompilerOutputType = file_types::TY_LLVM_BC; break; case options::OPT_dump_ast: OI.CompilerOutputType = file_types::TY_ASTDump; break; case options::OPT_emit_pch: OI.CompilerMode = OutputInfo::Mode::SingleCompile; OI.CompilerOutputType = file_types::TY_PCH; break; case options::OPT_emit_pcm: OI.CompilerMode = OutputInfo::Mode::SingleCompile; OI.CompilerOutputType = file_types::TY_ClangModuleFile; break; case options::OPT_emit_imported_modules: OI.CompilerOutputType = file_types::TY_ImportedModules; // We want the imported modules from the module as a whole, not individual // files, so let's do it in one invocation rather than having to collate // later. OI.CompilerMode = OutputInfo::Mode::SingleCompile; break; case options::OPT_scan_dependencies: OI.CompilerOutputType = file_types::TY_JSONDependencies; // We want the imported modules from the module as a whole, not individual // files, so let's do it in one invocation rather than having to collate // later. OI.CompilerMode = OutputInfo::Mode::SingleCompile; break; case options::OPT_index_file: OI.CompilerMode = OutputInfo::Mode::SingleCompile; OI.CompilerOutputType = file_types::TY_IndexData; break; case options::OPT_update_code: OI.CompilerOutputType = file_types::TY_Remapping; OI.LinkAction = LinkKind::None; break; case options::OPT_parse: case options::OPT_resolve_imports: case options::OPT_typecheck: case options::OPT_dump_parse: case options::OPT_emit_syntax: case options::OPT_print_ast: case options::OPT_dump_type_refinement_contexts: case options::OPT_dump_scope_maps: case options::OPT_dump_interface_hash: case options::OPT_dump_type_info: case options::OPT_verify_debug_info: OI.CompilerOutputType = file_types::TY_Nothing; break; case options::OPT_dump_pcm: OI.CompilerMode = OutputInfo::Mode::SingleCompile; OI.CompilerOutputType = file_types::TY_Nothing; break; case options::OPT_i: // Keep the default output/mode; this flag was removed and should already // have been diagnosed above. assert(Diags.hadAnyError() && "-i flag was removed"); break; case options::OPT_repl: case options::OPT_deprecated_integrated_repl: case options::OPT_lldb_repl: OI.CompilerOutputType = file_types::TY_Nothing; OI.CompilerMode = OutputInfo::Mode::REPL; break; default: llvm_unreachable("unknown mode"); } } assert(OI.CompilerOutputType != file_types::ID::TY_INVALID); if (const Arg *A = Args.getLastArg(options::OPT_g_Group)) { if (A->getOption().matches(options::OPT_g)) OI.DebugInfoLevel = IRGenDebugInfoLevel::Normal; else if (A->getOption().matches(options::OPT_gline_tables_only)) OI.DebugInfoLevel = IRGenDebugInfoLevel::LineTables; else if (A->getOption().matches(options::OPT_gdwarf_types)) OI.DebugInfoLevel = IRGenDebugInfoLevel::DwarfTypes; else assert(A->getOption().matches(options::OPT_gnone) && "unknown -g<kind> option"); } if (const Arg *A = Args.getLastArg(options::OPT_debug_info_format)) { if (strcmp(A->getValue(), "dwarf") == 0) OI.DebugInfoFormat = IRGenDebugInfoFormat::DWARF; else if (strcmp(A->getValue(), "codeview") == 0) OI.DebugInfoFormat = IRGenDebugInfoFormat::CodeView; else Diags.diagnose(SourceLoc(), diag::error_invalid_arg_value, A->getAsString(Args), A->getValue()); } else if (OI.DebugInfoLevel > IRGenDebugInfoLevel::None) { // If -g was specified but not -debug-info-format, DWARF is assumed. OI.DebugInfoFormat = IRGenDebugInfoFormat::DWARF; } if (Args.hasArg(options::OPT_debug_info_format) && !Args.hasArg(options::OPT_g_Group)) { const Arg *debugFormatArg = Args.getLastArg(options::OPT_debug_info_format); Diags.diagnose(SourceLoc(), diag::error_option_missing_required_argument, debugFormatArg->getAsString(Args), "-g"); } if (OI.DebugInfoFormat == IRGenDebugInfoFormat::CodeView && (OI.DebugInfoLevel == IRGenDebugInfoLevel::LineTables || OI.DebugInfoLevel == IRGenDebugInfoLevel::DwarfTypes)) { const Arg *debugFormatArg = Args.getLastArg(options::OPT_debug_info_format); Diags.diagnose(SourceLoc(), diag::error_argument_not_allowed_with, debugFormatArg->getAsString(Args), OI.DebugInfoLevel == IRGenDebugInfoLevel::LineTables ? "-gline-tables-only" : "-gdwarf_types"); } if (Args.hasArg(options::OPT_emit_module, options::OPT_emit_module_path)) { // The user has requested a module, so generate one and treat it as // top-level output. OI.ShouldGenerateModule = true; OI.ShouldTreatModuleAsTopLevelOutput = true; } else if (OI.DebugInfoLevel > IRGenDebugInfoLevel::LineTables && OI.shouldLink()) { // An option has been passed which requires a module, but the user hasn't // requested one. Generate a module, but treat it as an intermediate output. OI.ShouldGenerateModule = true; OI.ShouldTreatModuleAsTopLevelOutput = false; } else if (Args.hasArg(options::OPT_emit_objc_header, options::OPT_emit_objc_header_path, options::OPT_emit_module_interface, options::OPT_emit_module_interface_path, options::OPT_emit_private_module_interface_path) && OI.CompilerMode != OutputInfo::Mode::SingleCompile) { // An option has been passed which requires whole-module knowledge, but we // don't have that. Generate a module, but treat it as an intermediate // output. OI.ShouldGenerateModule = true; OI.ShouldTreatModuleAsTopLevelOutput = false; } else { // No options require a module, so don't generate one. OI.ShouldGenerateModule = false; OI.ShouldTreatModuleAsTopLevelOutput = false; } if (OI.ShouldGenerateModule && (OI.CompilerMode == OutputInfo::Mode::REPL || OI.CompilerMode == OutputInfo::Mode::Immediate)) { Diags.diagnose(SourceLoc(), diag::error_mode_cannot_emit_module); return; } if (const Arg *A = Args.getLastArg(options::OPT_module_name)) { OI.ModuleName = A->getValue(); } else if (OI.CompilerMode == OutputInfo::Mode::REPL) { // REPL mode should always use the REPL module. OI.ModuleName = "REPL"; } else if (const Arg *A = Args.getLastArg(options::OPT_o)) { OI.ModuleName = llvm::sys::path::stem(A->getValue()).str(); if ((OI.LinkAction == LinkKind::DynamicLibrary || OI.LinkAction == LinkKind::StaticLibrary) && !llvm::sys::path::extension(A->getValue()).empty() && StringRef(OI.ModuleName).startswith("lib")) { // Chop off a "lib" prefix if we're building a library. OI.ModuleName.erase(0, strlen("lib")); } } else if (Inputs.size() == 1) { OI.ModuleName = llvm::sys::path::stem(Inputs.front().second->getValue()).str(); } if (!Lexer::isIdentifier(OI.ModuleName) || (OI.ModuleName == STDLIB_NAME && !Args.hasArg(options::OPT_parse_stdlib))) { OI.ModuleNameIsFallback = true; if (OI.CompilerOutputType == file_types::TY_Nothing || maybeBuildingExecutable(OI, Args, Inputs)) OI.ModuleName = "main"; else if (!Inputs.empty() || OI.CompilerMode == OutputInfo::Mode::REPL) { // Having an improper module name is only bad if we have inputs or if // we're in REPL mode. auto DID = (OI.ModuleName == STDLIB_NAME) ? diag::error_stdlib_module_name : diag::error_bad_module_name; Diags.diagnose(SourceLoc(), DID, OI.ModuleName, !Args.hasArg(options::OPT_module_name)); OI.ModuleName = "__bad__"; } } { if (const Arg *A = Args.getLastArg(options::OPT_sdk)) { OI.SDKPath = A->getValue(); } else if (const char *SDKROOT = getenv("SDKROOT")) { OI.SDKPath = SDKROOT; } else if (OI.CompilerMode == OutputInfo::Mode::Immediate || OI.CompilerMode == OutputInfo::Mode::REPL) { if (TC.getTriple().isMacOSX()) { // In immediate modes, use the SDK provided by xcrun. // This will prefer the SDK alongside the Swift found by "xcrun swift". // We don't do this in compilation modes because defaulting to the // latest SDK may not be intended. auto xcrunPath = llvm::sys::findProgramByName("xcrun"); if (!xcrunPath.getError()) { const char *args[] = { "--show-sdk-path", "--sdk", "macosx", nullptr }; sys::TaskQueue queue; queue.addTask(xcrunPath->c_str(), args); queue.execute(nullptr, [&OI](sys::ProcessId PID, int returnCode, StringRef output, StringRef errors, sys::TaskProcessInformation ProcInfo, void *unused) -> sys::TaskFinishedResponse { if (returnCode == 0) { output = output.rtrim(); auto lastLineStart = output.find_last_of("\n\r"); if (lastLineStart != StringRef::npos) output = output.substr(lastLineStart+1); if (output.empty()) OI.SDKPath = "/"; else OI.SDKPath = output.str(); } return sys::TaskFinishedResponse::ContinueExecution; }); } } } if (!OI.SDKPath.empty()) { // Delete a trailing /. if (OI.SDKPath.size() > 1 && llvm::sys::path::is_separator(OI.SDKPath.back())) { OI.SDKPath.erase(OI.SDKPath.end()-1); } if (!llvm::sys::fs::exists(OI.SDKPath)) { Diags.diagnose(SourceLoc(), diag::warning_no_such_sdk, OI.SDKPath); } else if (isSDKTooOld(OI.SDKPath, TC.getTriple())) { Diags.diagnose(SourceLoc(), diag::error_sdk_too_old, llvm::sys::path::filename(OI.SDKPath)); } } } if (const Arg *A = Args.getLastArg(options::OPT_sanitize_EQ)) OI.SelectedSanitizers = parseSanitizerArgValues( Args, A, TC.getTriple(), Diags, [&](StringRef sanitizerName, bool shared) { return TC.sanitizerRuntimeLibExists(Args, sanitizerName, shared); }); if (const Arg *A = Args.getLastArg(options::OPT_sanitize_recover_EQ)) { // Just validate the args. The frontend will parse these again and actually // use them. To avoid emitting warnings multiple times we surpress warnings // here but not in the frontend. (void)parseSanitizerRecoverArgValues(A, OI.SelectedSanitizers, Diags, /*emitWarnings=*/false); } if (const Arg *A = Args.getLastArg(options::OPT_sanitize_coverage_EQ)) { // Check that the sanitizer coverage flags are supported if supplied. // Dismiss the output, as we will grab the value later. (void)parseSanitizerCoverageArgValue(A, TC.getTriple(), Diags, OI.SelectedSanitizers); } if (TC.getTriple().isOSWindows()) { if (const Arg *A = Args.getLastArg(options::OPT_libc)) { OI.RuntimeVariant = llvm::StringSwitch<Optional<OutputInfo::MSVCRuntime>>(A->getValue()) .Cases("MD", "MultiThreadedDLL", "shared-ucrt", OutputInfo::MSVCRuntime::MultiThreadedDLL) .Cases("MDd", "MultiThreadedDebugDLL", "shared-debug-ucrt", OutputInfo::MSVCRuntime::MultiThreadedDebugDLL) .Cases("MT", "MultiThreaded", "static-ucrt", OutputInfo::MSVCRuntime::MultiThreaded) .Cases("MTd", "MultiThreadedDebug", "static-debug-ucrt", OutputInfo::MSVCRuntime::MultiThreadedDebug) .Default(llvm::None); if (!OI.RuntimeVariant) Diags.diagnose({}, diag::error_invalid_arg_value, A->getSpelling(), A->getValue()); } else { // NOTE: default to `/MD`. This is different from `cl`'s default // behaviour of `/MT` on the command line, however, Visual Studio 2015 and // newer will default `/MD` as well. Furthermore, this is far more useful // of a mode since the `/MT` mode requires that everything is statically // linked. OI.RuntimeVariant = OutputInfo::MSVCRuntime::MultiThreadedDLL; } } } OutputInfo::Mode Driver::computeCompilerMode(const DerivedArgList &Args, const InputFileList &Inputs, bool &BatchModeOut) const { if (driverKind == Driver::DriverKind::Interactive) return Inputs.empty() ? OutputInfo::Mode::REPL : OutputInfo::Mode::Immediate; bool UseWMO = Args.hasFlag(options::OPT_whole_module_optimization, options::OPT_no_whole_module_optimization, false); const Arg *ArgRequiringSingleCompile = Args.getLastArg( options::OPT_index_file, UseWMO ? options::OPT_whole_module_optimization : llvm::opt::OptSpecifier()); BatchModeOut = Args.hasFlag(options::OPT_enable_batch_mode, options::OPT_disable_batch_mode, false); // AST dump doesn't work with `-wmo`. Since it's not common to want to dump // the AST, we assume that's the priority and ignore `-wmo`, but we warn the // user about this decision. // FIXME: AST dump also doesn't work with `-index-file`, but that fix is a bit // more complicated than this. if (UseWMO && Args.hasArg(options::OPT_dump_ast)) { Diags.diagnose(SourceLoc(), diag::warn_ignoring_wmo); return OutputInfo::Mode::StandardCompile; } // Override batch mode if given -wmo or -index-file. if (ArgRequiringSingleCompile) { if (BatchModeOut) { BatchModeOut = false; // Emit a warning about such overriding (FIXME: we might conditionalize // this based on the user or xcode passing -disable-batch-mode). Diags.diagnose(SourceLoc(), diag::warn_ignoring_batch_mode, ArgRequiringSingleCompile->getOption().getPrefixedName()); } return OutputInfo::Mode::SingleCompile; } return OutputInfo::Mode::StandardCompile; } namespace { /// Encapsulates the computation of input jobs that are relevant to the /// merge-modules job the scheduler can insert if we are not in a single compile /// mode. class ModuleInputs final { private: using InputInfo = IncrementalJobAction::InputInfo; SmallVector<const Action *, 2> AllModuleInputs; InputInfo StatusBound; public: explicit ModuleInputs() : StatusBound {InputInfo::Status::UpToDate, llvm::sys::TimePoint<>::min()} {} public: void addInput(const Action *inputAction) { if (auto *IJA = dyn_cast<IncrementalJobAction>(inputAction)) { // Take the upper bound of the status of any incremental inputs to // ensure that the merge-modules job gets run if *any* input job is run. const auto conservativeStatus = std::max(StatusBound.status, IJA->getInputInfo().status); // The modification time here is not important to the rest of the // incremental build. We take the upper bound in case an attempt to // compare the swiftmodule output's mod time and any input files is // made. If the compilation has been correctly scheduled, the // swiftmodule's mod time will always strictly exceed the mod time of // any of its inputs when we are able to skip it. const auto conservativeModTime = std::max( StatusBound.previousModTime, IJA->getInputInfo().previousModTime); StatusBound = InputInfo{conservativeStatus, conservativeModTime}; } AllModuleInputs.push_back(inputAction); } public: /// Returns \c true if no inputs have been registered with this instance. bool empty() const { return AllModuleInputs.empty(); } public: /// Consumes this \c ModuleInputs instance and returns a merge-modules action /// from the list of input actions and status it has computed thus far. JobAction *intoAction(Compilation &C) && { return C.createAction<MergeModuleJobAction>(AllModuleInputs, StatusBound); } }; } // namespace void Driver::buildActions(SmallVectorImpl<const Action *> &TopLevelActions, const ToolChain &TC, const OutputInfo &OI, const InputInfoMap *OutOfDateMap, Compilation &C) const { const DerivedArgList &Args = C.getArgs(); ArrayRef<InputPair> Inputs = C.getInputFiles(); if (!SuppressNoInputFilesError && Inputs.empty()) { Diags.diagnose(SourceLoc(), diag::error_no_input_files); return; } ModuleInputs AllModuleInputs; SmallVector<const Action *, 2> AllLinkerInputs; switch (OI.CompilerMode) { case OutputInfo::Mode::StandardCompile: { // If the user is importing a textual (.h) bridging header and we're in // standard-compile (non-WMO) mode, we take the opportunity to precompile // the header into a temporary PCH, and replace the import argument with the // PCH in the subsequent frontend jobs. JobAction *PCH = nullptr; if (Args.hasFlag(options::OPT_enable_bridging_pch, options::OPT_disable_bridging_pch, true)) { if (Arg *A = Args.getLastArg(options::OPT_import_objc_header)) { StringRef Value = A->getValue(); auto Ty = TC.lookupTypeForExtension(llvm::sys::path::extension(Value)); if (Ty == file_types::TY_ObjCHeader) { auto *HeaderInput = C.createAction<InputAction>(*A, Ty); StringRef PersistentPCHDir; if (const Arg *A = Args.getLastArg(options::OPT_pch_output_dir)) { PersistentPCHDir = A->getValue(); } PCH = C.createAction<GeneratePCHJobAction>(HeaderInput, PersistentPCHDir); } } } for (const InputPair &Input : Inputs) { file_types::ID InputType = Input.first; const Arg *InputArg = Input.second; Action *Current = C.createAction<InputAction>(*InputArg, InputType); switch (InputType) { case file_types::TY_Swift: case file_types::TY_SIL: case file_types::TY_SIB: { // Source inputs always need to be compiled. assert(file_types::isPartOfSwiftCompilation(InputType)); auto previousBuildState = IncrementalJobAction::InputInfo::makeNeedsCascadingRebuild(); if (OutOfDateMap) previousBuildState = OutOfDateMap->lookup(InputArg); if (Args.hasArg(options::OPT_embed_bitcode)) { Current = C.createAction<CompileJobAction>( Current, file_types::TY_LLVM_BC, previousBuildState); if (PCH) cast<JobAction>(Current)->addInput(PCH); AllModuleInputs.addInput(Current); Current = C.createAction<BackendJobAction>(Current, OI.CompilerOutputType, 0); } else { Current = C.createAction<CompileJobAction>(Current, OI.CompilerOutputType, previousBuildState); if (PCH) cast<JobAction>(Current)->addInput(PCH); AllModuleInputs.addInput(Current); } AllLinkerInputs.push_back(Current); break; } case file_types::TY_SwiftModuleFile: case file_types::TY_SwiftModuleDocFile: case file_types::TY_SwiftSourceInfoFile: if (OI.ShouldGenerateModule && !OI.shouldLink()) { // When generating a .swiftmodule as a top-level output (as opposed // to, for example, linking an image), treat .swiftmodule files as // inputs to a MergeModule action. AllModuleInputs.addInput(Current); break; } else if (OI.shouldLink()) { // Otherwise, if linking, pass .swiftmodule files as inputs to the // linker, so that their debug info is available. AllLinkerInputs.push_back(Current); break; } else { Diags.diagnose(SourceLoc(), diag::error_unexpected_input_file, InputArg->getValue()); continue; } case file_types::TY_AutolinkFile: case file_types::TY_Object: case file_types::TY_TBD: // Object inputs are only okay if linking. if (OI.shouldLink()) { AllLinkerInputs.push_back(Current); break; } LLVM_FALLTHROUGH; case file_types::TY_ASTDump: case file_types::TY_Image: case file_types::TY_dSYM: case file_types::TY_Dependencies: case file_types::TY_Assembly: case file_types::TY_LLVM_IR: case file_types::TY_LLVM_BC: case file_types::TY_SerializedDiagnostics: case file_types::TY_ObjCHeader: case file_types::TY_ClangModuleFile: case file_types::TY_SwiftDeps: case file_types::TY_ExternalSwiftDeps: case file_types::TY_Remapping: case file_types::TY_IndexData: case file_types::TY_PCH: case file_types::TY_ImportedModules: case file_types::TY_ModuleTrace: case file_types::TY_YAMLOptRecord: case file_types::TY_BitstreamOptRecord: case file_types::TY_SwiftModuleInterfaceFile: case file_types::TY_PrivateSwiftModuleInterfaceFile: case file_types::TY_SwiftModuleSummaryFile: case file_types::TY_SwiftCrossImportDir: case file_types::TY_SwiftOverlayFile: case file_types::TY_JSONDependencies: case file_types::TY_JSONFeatures: // We could in theory handle assembly or LLVM input, but let's not. // FIXME: What about LTO? Diags.diagnose(SourceLoc(), diag::error_unexpected_input_file, InputArg->getValue()); continue; case file_types::TY_RawSIB: case file_types::TY_RawSIL: case file_types::TY_Nothing: case file_types::TY_IndexUnitOutputPath: case file_types::TY_INVALID: llvm_unreachable("these types should never be inferred"); } } break; } case OutputInfo::Mode::SingleCompile: { if (Inputs.empty()) break; if (Args.hasArg(options::OPT_emit_pcm) && Inputs.size() != 1) { // -emit-pcm mode requires exactly one input (the module map). Diags.diagnose(SourceLoc(), diag::error_mode_requires_one_input_file); return; } if (Args.hasArg(options::OPT_embed_bitcode)) { // Make sure we can handle the inputs. bool HandledHere = true; for (const InputPair &Input : Inputs) { file_types::ID InputType = Input.first; if (!file_types::isPartOfSwiftCompilation(InputType)) { HandledHere = false; break; } } if (HandledHere) { // Create a single CompileJobAction and a single BackendJobAction. JobAction *CA = C.createAction<CompileJobAction>(file_types::TY_LLVM_BC); AllModuleInputs.addInput(CA); int InputIndex = 0; for (const InputPair &Input : Inputs) { file_types::ID InputType = Input.first; const Arg *InputArg = Input.second; CA->addInput(C.createAction<InputAction>(*InputArg, InputType)); if (OI.isMultiThreading()) { // With multi-threading we need a backend job for each output file // of the compilation. auto *BJA = C.createAction<BackendJobAction>(CA, OI.CompilerOutputType, InputIndex); AllLinkerInputs.push_back(BJA); } ++InputIndex; } if (!OI.isMultiThreading()) { // No multi-threading: the compilation only produces a single output // file. CA = C.createAction<BackendJobAction>(CA, OI.CompilerOutputType, 0); AllLinkerInputs.push_back(CA); } break; } } // Create a single CompileJobAction for all of the driver's inputs. auto *CA = C.createAction<CompileJobAction>(OI.CompilerOutputType); for (const InputPair &Input : Inputs) { file_types::ID InputType = Input.first; const Arg *InputArg = Input.second; CA->addInput(C.createAction<InputAction>(*InputArg, InputType)); } AllModuleInputs.addInput(CA); AllLinkerInputs.push_back(CA); break; } case OutputInfo::Mode::BatchModeCompile: { llvm_unreachable("Batch mode should not be used to build actions"); } case OutputInfo::Mode::Immediate: { if (Inputs.empty()) return; assert(OI.CompilerOutputType == file_types::TY_Nothing); auto *CA = C.createAction<InterpretJobAction>(); for (const InputPair &Input : Inputs) { file_types::ID InputType = Input.first; const Arg *InputArg = Input.second; CA->addInput(C.createAction<InputAction>(*InputArg, InputType)); } TopLevelActions.push_back(CA); return; } case OutputInfo::Mode::REPL: { if (!Inputs.empty()) { // REPL mode requires no inputs. Diags.diagnose(SourceLoc(), diag::error_repl_requires_no_input_files); return; } REPLJobAction::Mode Mode = REPLJobAction::Mode::PreferLLDB; if (const Arg *A = Args.getLastArg(options::OPT_lldb_repl, options::OPT_deprecated_integrated_repl)) { if (A->getOption().matches(options::OPT_lldb_repl)) Mode = REPLJobAction::Mode::RequireLLDB; else Mode = REPLJobAction::Mode::Integrated; } TopLevelActions.push_back(C.createAction<REPLJobAction>(Mode)); return; } } JobAction *MergeModuleAction = nullptr; if (OI.ShouldGenerateModule && OI.CompilerMode != OutputInfo::Mode::SingleCompile && !AllModuleInputs.empty()) { // We're performing multiple compilations; set up a merge module step // so we generate a single swiftmodule as output. MergeModuleAction = std::move(AllModuleInputs).intoAction(C); } bool shouldPerformLTO = OI.LTOVariant != OutputInfo::LTOKind::None; if (OI.shouldLink() && !AllLinkerInputs.empty()) { JobAction *LinkAction = nullptr; if (OI.LinkAction == LinkKind::StaticLibrary) { LinkAction = C.createAction<StaticLinkJobAction>(AllLinkerInputs, OI.LinkAction); } else { LinkAction = C.createAction<DynamicLinkJobAction>( AllLinkerInputs, OI.LinkAction, shouldPerformLTO); } // On ELF platforms there's no built in autolinking mechanism, so we // pull the info we need from the .o files directly and pass them as an // argument input file to the linker. const auto &Triple = TC.getTriple(); SmallVector<const Action *, 2> AutolinkExtractInputs; for (const Action *A : AllLinkerInputs) if (A->getType() == file_types::TY_Object) { // Shared objects on ELF platforms don't have a swift1_autolink_entries // section in them because the section in the .o files is marked as // SHF_EXCLUDE. if (auto *IA = dyn_cast<InputAction>(A)) { StringRef ObjectName = IA->getInputArg().getValue(); if (Triple.getObjectFormat() == llvm::Triple::ELF && ObjectName.endswith(".so")) continue; } AutolinkExtractInputs.push_back(A); } const bool AutolinkExtractRequired = ((Triple.getObjectFormat() == llvm::Triple::ELF && !Triple.isPS4()) || Triple.getObjectFormat() == llvm::Triple::Wasm || Triple.isOSCygMing()) && !shouldPerformLTO; if (!AutolinkExtractInputs.empty() && AutolinkExtractRequired) { auto *AutolinkExtractAction = C.createAction<AutolinkExtractJobAction>(AutolinkExtractInputs); // Takes the same inputs as the linker... // ...and gives its output to the linker. LinkAction->addInput(AutolinkExtractAction); } if (MergeModuleAction) { if (OI.DebugInfoLevel == IRGenDebugInfoLevel::Normal) { const bool ModuleWrapRequired = Triple.getObjectFormat() != llvm::Triple::MachO; if (ModuleWrapRequired) { auto *ModuleWrapAction = C.createAction<ModuleWrapJobAction>(MergeModuleAction); LinkAction->addInput(ModuleWrapAction); } else { LinkAction->addInput(MergeModuleAction); } // FIXME: Adding the MergeModuleAction as top-level regardless would // allow us to get rid of the special case flag for that. } else { TopLevelActions.push_back(MergeModuleAction); } } TopLevelActions.push_back(LinkAction); if (TC.getTriple().isOSDarwin() && OI.DebugInfoLevel > IRGenDebugInfoLevel::None) { auto *dSYMAction = C.createAction<GenerateDSYMJobAction>(LinkAction); TopLevelActions.push_back(dSYMAction); if (Args.hasArg(options::OPT_verify_debug_info)) { TopLevelActions.push_back( C.createAction<VerifyDebugInfoJobAction>(dSYMAction)); } } } else { // We can't rely on the merge module action being the only top-level // action that needs to run. There may be other actions (e.g. // BackendJobActions) that are not merge-module inputs but should be run // anyway. if (MergeModuleAction) TopLevelActions.push_back(MergeModuleAction); TopLevelActions.append(AllLinkerInputs.begin(), AllLinkerInputs.end()); } #ifdef NDEBUG bool verifyInterfacesByDefault = false; #else bool verifyInterfacesByDefault = true; #endif if (MergeModuleAction && Args.hasArg(options::OPT_enable_library_evolution) && Args.hasFlag(options::OPT_verify_emitted_module_interface, options::OPT_no_verify_emitted_module_interface, verifyInterfacesByDefault)) { if (Args.hasArgNoClaim(options::OPT_emit_module_interface, options::OPT_emit_module_interface_path)) { TopLevelActions.push_back( C.createAction<VerifyModuleInterfaceJobAction>(MergeModuleAction, file_types::TY_SwiftModuleInterfaceFile)); } if (Args.hasArgNoClaim(options::OPT_emit_private_module_interface_path)) { TopLevelActions.push_back( C.createAction<VerifyModuleInterfaceJobAction>(MergeModuleAction, file_types::TY_PrivateSwiftModuleInterfaceFile)); } } } bool Driver::handleImmediateArgs(const ArgList &Args, const ToolChain &TC) { if (Args.hasArg(options::OPT_help)) { printHelp(false); return false; } if (Args.hasArg(options::OPT_help_hidden)) { printHelp(true); return false; } if (Args.hasArg(options::OPT_version)) { // Follow gcc/clang behavior and use stdout for --version and stderr for -v. printVersion(TC, llvm::outs()); return false; } if (Args.hasArg(options::OPT_v)) { printVersion(TC, llvm::errs()); SuppressNoInputFilesError = true; } if (const Arg *A = Args.getLastArg(options::OPT_driver_use_frontend_path)) { DriverExecutable = A->getValue(); std::string commandString = Args.getLastArgValue(options::OPT_driver_use_frontend_path).str(); SmallVector<StringRef, 10> commandArgs; StringRef(commandString).split(commandArgs, ';', -1, false); DriverExecutable = commandArgs[0].str(); DriverExecutableArgs.assign(std::begin(commandArgs) + 1, std::end(commandArgs)); } if (Args.hasArg(options::OPT_print_target_info)) { SmallVector<const char *, 5> commandLine; commandLine.push_back("-frontend"); commandLine.push_back("-print-target-info"); if (const Arg *targetArg = Args.getLastArg(options::OPT_target)) { commandLine.push_back("-target"); commandLine.push_back(targetArg->getValue()); } if (const Arg *targetVariantArg = Args.getLastArg(options::OPT_target_variant)) { commandLine.push_back("-target-variant"); commandLine.push_back(targetVariantArg->getValue()); } if (const Arg *sdkArg = Args.getLastArg(options::OPT_sdk)) { commandLine.push_back("-sdk"); commandLine.push_back(sdkArg->getValue()); } if (const Arg *resourceDirArg = Args.getLastArg(options::OPT_resource_dir)) { commandLine.push_back("-resource-dir"); commandLine.push_back(resourceDirArg->getValue()); } if (Args.hasFlag(options::OPT_static_executable, options::OPT_no_static_executable, false) || Args.hasFlag(options::OPT_static_stdlib, options::OPT_no_static_stdlib, false)) { commandLine.push_back("-use-static-resource-dir"); } std::string executable = getSwiftProgramPath(); // FIXME: This bypasses mechanisms like -v and -###. (SR-12119) sys::TaskQueue queue; queue.addTask(executable.c_str(), commandLine); queue.execute(nullptr, [](sys::ProcessId PID, int returnCode, StringRef output, StringRef errors, sys::TaskProcessInformation ProcInfo, void *unused) -> sys::TaskFinishedResponse { llvm::outs() << output; llvm::errs() << errors; return sys::TaskFinishedResponse::ContinueExecution; }); return false; } return true; } Optional<OutputFileMap> Driver::buildOutputFileMap(const llvm::opt::DerivedArgList &Args, StringRef workingDirectory) const { const Arg *A = Args.getLastArg(options::OPT_output_file_map); if (!A) return None; // TODO: perform some preflight checks to ensure the file exists. llvm::Expected<OutputFileMap> OFM = OutputFileMap::loadFromPath( A->getValue(), workingDirectory); if (auto Err = OFM.takeError()) { Diags.diagnose(SourceLoc(), diag::error_unable_to_load_output_file_map, llvm::toString(std::move(Err)), A->getValue()); return None; } return *OFM; } void Driver::buildJobs(ArrayRef<const Action *> TopLevelActions, const OutputInfo &OI, const OutputFileMap *OFM, StringRef workingDirectory, const ToolChain &TC, Compilation &C) const { llvm::PrettyStackTraceString CrashInfo("Building compilation jobs"); const DerivedArgList &Args = C.getArgs(); JobCacheMap JobCache; if (Args.hasArg(options::OPT_o) && !OI.shouldLink() && !OI.ShouldTreatModuleAsTopLevelOutput) { bool ShouldComplain; if (OI.isMultiThreading()) { // Multi-threading compilation has multiple outputs unless there's only // one input. ShouldComplain = C.getInputFiles().size() > 1; } else { // Single-threaded compilation is a problem if we're compiling more than // one file. ShouldComplain = 1 < llvm::count_if(C.getActions(), [](const Action *A) { return isa<CompileJobAction>(A); }); } if (ShouldComplain) { Diags.diagnose(SourceLoc(), diag::error_cannot_specify__o_for_multiple_outputs); } } for (const Action *A : TopLevelActions) { if (auto *JA = dyn_cast<JobAction>(A)) { (void)buildJobsForAction(C, JA, OFM, workingDirectory, /*TopLevel=*/true, JobCache); } } } /// Form a filename based on \p base in \p result, optionally setting its /// extension to \p newExt and in \p workingDirectory. static void formFilenameFromBaseAndExt(StringRef base, StringRef newExt, StringRef workingDirectory, SmallVectorImpl<char> &result) { if (workingDirectory.empty() || llvm::sys::path::is_absolute(base)) { result.assign(base.begin(), base.end()); } else { assert(!base.empty() && base != "-" && "unexpected basename"); result.assign(workingDirectory.begin(), workingDirectory.end()); llvm::sys::path::append(result, base); } if (!newExt.empty()) { llvm::sys::path::replace_extension(result, newExt); } } static Optional<StringRef> getOutputFilenameFromPathArgOrAsTopLevel( const OutputInfo &OI, const llvm::opt::DerivedArgList &Args, llvm::opt::OptSpecifier PathArg, file_types::ID ExpectedOutputType, bool TreatAsTopLevelOutput, StringRef workingDirectory, llvm::SmallString<128> &Buffer) { if (const Arg *A = Args.getLastArg(PathArg)) return StringRef(A->getValue()); if (TreatAsTopLevelOutput) { if (const Arg *A = Args.getLastArg(options::OPT_o)) { if (OI.CompilerOutputType == ExpectedOutputType) return StringRef(A->getValue()); // Otherwise, put the file next to the top-level output. Buffer = A->getValue(); llvm::sys::path::remove_filename(Buffer); llvm::sys::path::append(Buffer, OI.ModuleName); llvm::sys::path::replace_extension( Buffer, file_types::getExtension(ExpectedOutputType)); return Buffer.str(); } // A top-level output wasn't specified, so just output to // <ModuleName>.<ext>. formFilenameFromBaseAndExt(OI.ModuleName, file_types::getExtension(ExpectedOutputType), workingDirectory, Buffer); return Buffer.str(); } return None; } static StringRef assignOutputName(Compilation &C, const JobAction *JA, llvm::SmallString<128> &Buffer, StringRef BaseName, PreserveOnSignal ShouldPreserveOnSignal) { // We should output to a temporary file, since we're not at the top level // (or are generating a bridging PCH, which is currently always a temp). StringRef Stem = llvm::sys::path::stem(BaseName); StringRef Suffix = file_types::getExtension(JA->getType()); std::error_code EC = llvm::sys::fs::createTemporaryFile(Stem, Suffix, Buffer); if (EC) { C.getDiags().diagnose(SourceLoc(), diag::error_unable_to_make_temporary_file, EC.message()); return {}; } C.addTemporaryFile(Buffer.str(), ShouldPreserveOnSignal); return Buffer.str(); } static StringRef baseNameForImage(const JobAction *JA, const OutputInfo &OI, const llvm::Triple &Triple, llvm::SmallString<128> &Buffer, StringRef BaseInput, StringRef BaseName) { if (JA->size() == 1 && OI.ModuleNameIsFallback && BaseInput != "-") return llvm::sys::path::stem(BaseInput); if (isa<StaticLinkJobAction>(JA)) { Buffer = "lib"; Buffer.append(BaseName); Buffer.append(Triple.isOSWindows() ? ".lib" : ".a"); return Buffer.str(); } auto link = dyn_cast<DynamicLinkJobAction>(JA); if (!link) return BaseName; if (link->getKind() != LinkKind::DynamicLibrary) return BaseName; Buffer = Triple.isOSWindows() ? "" : "lib"; Buffer.append(BaseName); if (Triple.isOSDarwin()) Buffer.append(".dylib"); else if (Triple.isOSWindows()) Buffer.append(".dll"); else Buffer.append(".so"); return Buffer.str(); } static StringRef getIndexUnitOutputFilename(Compilation &C, const JobAction *JA, const TypeToPathMap *OutputMap, bool AtTopLevel) { if (JA->getType() == file_types::TY_Nothing) return {}; if (OutputMap) { auto iter = OutputMap->find(file_types::TY_IndexUnitOutputPath); if (iter != OutputMap->end()) return iter->second; } if (AtTopLevel) { const llvm::opt::DerivedArgList &Args = C.getArgs(); if (Arg *FinalOutput = Args.getLastArg(options::OPT_index_unit_output_path)) return FinalOutput->getValue(); } return {}; } static StringRef getOutputFilename(Compilation &C, const JobAction *JA, const TypeToPathMap *OutputMap, StringRef workingDirectory, bool AtTopLevel, StringRef BaseInput, StringRef PrimaryInput, llvm::SmallString<128> &Buffer) { if (JA->getType() == file_types::TY_Nothing) return {}; // If available, check the OutputMap first. if (OutputMap) { auto iter = OutputMap->find(JA->getType()); if (iter != OutputMap->end()) return iter->second; } // Process Action-specific output-specifying options next, // since we didn't find anything applicable in the OutputMap. const OutputInfo &OI = C.getOutputInfo(); const llvm::opt::DerivedArgList &Args = C.getArgs(); if (isa<MergeModuleJobAction>(JA)) { auto optFilename = getOutputFilenameFromPathArgOrAsTopLevel( OI, Args, options::OPT_emit_module_path, file_types::TY_SwiftModuleFile, OI.ShouldTreatModuleAsTopLevelOutput, workingDirectory, Buffer); if (optFilename) return *optFilename; } // dSYM actions are never treated as top-level. if (isa<GenerateDSYMJobAction>(JA)) { Buffer = PrimaryInput; Buffer.push_back('.'); Buffer.append(file_types::getExtension(JA->getType())); return Buffer.str(); } auto ShouldPreserveOnSignal = PreserveOnSignal::No; if (auto *PCHAct = dyn_cast<GeneratePCHJobAction>(JA)) { // For a persistent PCH we don't use an output, the frontend determines // the filename to use for the PCH. assert(!PCHAct->isPersistentPCH()); ShouldPreserveOnSignal = PreserveOnSignal::Yes; } // We don't have an output from an Action-specific command line option, // so figure one out using the defaults. if (AtTopLevel) { if (Arg *FinalOutput = Args.getLastArg(options::OPT_o)) return FinalOutput->getValue(); if (file_types::isTextual(JA->getType())) return "-"; } assert(!BaseInput.empty() && "A Job which produces output must have a BaseInput!"); StringRef BaseName(BaseInput); if (isa<MergeModuleJobAction>(JA) || (OI.CompilerMode == OutputInfo::Mode::SingleCompile && !OI.isMultiThreading()) || JA->getType() == file_types::TY_Image) BaseName = OI.ModuleName; // We don't yet have a name, assign one. if (!AtTopLevel) return assignOutputName(C, JA, Buffer, BaseName, ShouldPreserveOnSignal); if (JA->getType() == file_types::TY_Image) { const llvm::Triple &Triple = C.getToolChain().getTriple(); SmallString<16> Base = baseNameForImage(JA, OI, Triple, Buffer, BaseInput, BaseName); formFilenameFromBaseAndExt(Base, /*newExt=*/"", workingDirectory, Buffer); return Buffer.str(); } StringRef Suffix = file_types::getExtension(JA->getType()); assert(Suffix.data() && "All types used for output should have a suffix."); formFilenameFromBaseAndExt(llvm::sys::path::filename(BaseName), Suffix, workingDirectory, Buffer); return Buffer.str(); } static bool hasExistingAdditionalOutput(CommandOutput &output, file_types::ID outputType, StringRef outputPath = StringRef()) { auto existing = output.getAdditionalOutputForType(outputType); if (!existing.empty()) { assert(outputPath.empty() || outputPath == existing); return true; } return false; } static llvm::SmallString<128> computeAuxiliaryOutputPath( Compilation &C, CommandOutput &output, file_types::ID outputType, const TypeToPathMap *outputMap, StringRef workingDirectory, StringRef outputPath = StringRef(), llvm::opt::OptSpecifier requireArg = llvm::opt::OptSpecifier()) { if (hasExistingAdditionalOutput(output, outputType, outputPath)) return {}; if (outputMap) { auto iter = outputMap->find(outputType); if (iter != outputMap->end()) { StringRef outputMapPath = iter->second; // Prefer a path from the OutputMap. if (!outputMapPath.empty()) return outputMapPath; } } if (!outputPath.empty()) return outputPath; if (requireArg.isValid() && !C.getArgs().getLastArg(requireArg)) { // This auxiliary output only exists if requireArg is passed, but it // wasn't this time. return {}; } // Put the auxiliary output file next to "the" primary output file. // // FIXME: when we're in WMO and have multiple primary outputs, we derive the // additional filename here from the _first_ primary output name, which // means that in the derived OFM (in Job.cpp) the additional output will // have a possibly-surprising name. But that's only half the problem: it // also get associated with the first primary _input_, even when there are // multiple primary inputs; really it should be associated with the build as // a whole -- derived OFM input "" -- but that's a more general thing to // fix. llvm::SmallString<128> path; if (output.getPrimaryOutputType() != file_types::TY_Nothing) path = output.getPrimaryOutputFilenames()[0]; else if (!output.getBaseInput(0).empty()) path = llvm::sys::path::filename(output.getBaseInput(0)); else { formFilenameFromBaseAndExt(C.getOutputInfo().ModuleName, /*newExt=*/"", workingDirectory, path); } assert(!path.empty()); const bool isTempFile = C.isTemporaryFile(path); llvm::sys::path::replace_extension(path, file_types::getExtension(outputType)); if (isTempFile) C.addTemporaryFile(path); return path; } static void addAuxiliaryOutput( Compilation &C, CommandOutput &output, file_types::ID outputType, const TypeToPathMap *outputMap, StringRef workingDirectory, StringRef outputPath = StringRef(), llvm::opt::OptSpecifier requireArg = llvm::opt::OptSpecifier()) { const auto path = computeAuxiliaryOutputPath(C, output, outputType, outputMap, workingDirectory, outputPath, requireArg); if (path.empty()) return; output.setAdditionalOutputForType(outputType, path); } static void addDiagFileOutputForPersistentPCHAction( Compilation &C, const GeneratePCHJobAction *JA, CommandOutput &output, const TypeToPathMap *outputMap, StringRef workingDirectory) { assert(JA->isPersistentPCH()); // For a persistent PCH we don't use an output, the frontend determines // the filename to use for the PCH. For the diagnostics file, try to // determine an invocation-specific path inside the directory where the // PCH is going to be written, and fallback to a temporary file if we // cannot determine such a path. StringRef pchOutDir = JA->getPersistentPCHDir(); StringRef headerPath = output.getBaseInput(JA->getInputIndex()); StringRef stem = llvm::sys::path::stem(headerPath); StringRef suffix = file_types::getExtension(file_types::TY_SerializedDiagnostics); SmallString<256> outPathBuf; if (const Arg *A = C.getArgs().getLastArg(options::OPT_emit_module_path)) { // The module file path is unique for a specific module and architecture // (it won't be concurrently written to) so we can use the path as hash // for determining the filename to use for the diagnostic file. StringRef ModuleOutPath = A->getValue(); outPathBuf = pchOutDir; llvm::sys::path::append(outPathBuf, stem); outPathBuf += '-'; auto code = llvm::hash_value(ModuleOutPath); outPathBuf += llvm::APInt(64, code).toString(36, /*Signed=*/false); llvm::sys::path::replace_extension(outPathBuf, suffix); } if (outPathBuf.empty()) { // Fallback to creating a temporary file. std::error_code EC = llvm::sys::fs::createTemporaryFile(stem, suffix, outPathBuf); if (EC) { C.getDiags().diagnose(SourceLoc(), diag::error_unable_to_make_temporary_file, EC.message()); return; } C.addTemporaryFile(outPathBuf.str()); } if (!outPathBuf.empty()) { addAuxiliaryOutput(C, output, file_types::TY_SerializedDiagnostics, outputMap, workingDirectory, outPathBuf.str()); } } /// If the file at \p input has not been modified since the last build (i.e. its /// mtime has not changed), adjust the Job's condition accordingly. static void handleCompileJobCondition(Job *J, CompileJobAction::InputInfo inputInfo, Optional<StringRef> input, bool alwaysRebuildDependents) { using InputStatus = CompileJobAction::InputInfo::Status; if (inputInfo.status == InputStatus::NewlyAdded) { J->setCondition(Job::Condition::NewlyAdded); return; } auto output = J->getOutput().getPrimaryOutputFilename(); bool hasValidModTime = false; llvm::sys::fs::file_status inputStatus; if (input.hasValue() && !llvm::sys::fs::status(*input, inputStatus)) { J->setInputModTime(inputStatus.getLastModificationTime()); hasValidModTime = J->getInputModTime() == inputInfo.previousModTime; } else if (!llvm::sys::fs::status(output, inputStatus)) { J->setInputModTime(inputStatus.getLastModificationTime()); hasValidModTime = true; } Job::Condition condition; if (hasValidModTime) { switch (inputInfo.status) { case InputStatus::UpToDate: if (llvm::sys::fs::exists(output)) condition = Job::Condition::CheckDependencies; else condition = Job::Condition::RunWithoutCascading; break; case InputStatus::NeedsCascadingBuild: condition = Job::Condition::Always; break; case InputStatus::NeedsNonCascadingBuild: condition = Job::Condition::RunWithoutCascading; break; case InputStatus::NewlyAdded: llvm_unreachable("handled above"); } } else { if (alwaysRebuildDependents || inputInfo.status == InputStatus::NeedsCascadingBuild) { condition = Job::Condition::Always; } else { condition = Job::Condition::RunWithoutCascading; } } J->setCondition(condition); } Job *Driver::buildJobsForAction(Compilation &C, const JobAction *JA, const OutputFileMap *OFM, StringRef workingDirectory, bool AtTopLevel, JobCacheMap &JobCache) const { PrettyStackTraceDriverAction CrashInfo("building jobs", JA); // 1. See if we've already got this cached. const ToolChain &TC = C.getToolChain(); std::pair<const Action *, const ToolChain *> Key(JA, &TC); { auto CacheIter = JobCache.find(Key); if (CacheIter != JobCache.end()) { return CacheIter->second; } } // 2. Build up the list of input jobs. SmallVector<const Action *, 4> InputActions; SmallVector<const Job *, 4> InputJobs; for (const Action *Input : *JA) { if (auto *InputJobAction = dyn_cast<JobAction>(Input)) { InputJobs.push_back(buildJobsForAction( C, InputJobAction, OFM, workingDirectory, false, JobCache)); } else { InputActions.push_back(Input); } } // 3. Determine the CommandOutput for the job. StringRef BaseInput; StringRef PrimaryInput; if (!InputActions.empty()) { // Use the first InputAction as our BaseInput and PrimaryInput. const InputAction *IA = cast<InputAction>(InputActions[0]); BaseInput = IA->getInputArg().getValue(); PrimaryInput = BaseInput; } else if (!InputJobs.empty()) { const CommandOutput &Out = InputJobs.front()->getOutput(); size_t i = JA->getInputIndex(); // Use the first Job's BaseInput as our BaseInput. BaseInput = Out.getBaseInput(i); // Use the first Job's Primary Output as our PrimaryInput. PrimaryInput = Out.getPrimaryOutputFilenames()[i]; } // With -index-file option, the primary input is the one passed with // -index-file-path. // FIXME: Figure out how this better fits within the driver infrastructure. if (JA->getType() == file_types::TY_IndexData) { if (Arg *A = C.getArgs().getLastArg(options::OPT_index_file_path)) { BaseInput = A->getValue(); PrimaryInput = A->getValue(); } } const OutputInfo &OI = C.getOutputInfo(); const TypeToPathMap *OutputMap = nullptr; if (OFM) { if (isa<CompileJobAction>(JA)) { if (OI.CompilerMode == OutputInfo::Mode::SingleCompile) { OutputMap = OFM->getOutputMapForSingleOutput(); } else { OutputMap = OFM->getOutputMapForInput(BaseInput); } } else if (isa<BackendJobAction>(JA)) { OutputMap = OFM->getOutputMapForInput(BaseInput); } } std::unique_ptr<CommandOutput> Output( new CommandOutput(JA->getType(), C.getDerivedOutputFileMap())); PrettyStackTraceDriverCommandOutput CrashInfo2("determining output", Output.get()); llvm::SmallString<128> Buf; computeMainOutput(C, JA, OFM, AtTopLevel, InputActions, InputJobs, OutputMap, workingDirectory, BaseInput, PrimaryInput, Buf, Output.get()); if (OI.ShouldGenerateModule && isa<CompileJobAction>(JA)) chooseSwiftModuleOutputPath(C, OutputMap, workingDirectory, Output.get()); if (OI.ShouldGenerateModule && (isa<CompileJobAction>(JA) || isa<MergeModuleJobAction>(JA))) { chooseSwiftModuleDocOutputPath(C, OutputMap, workingDirectory, Output.get()); if (!C.getArgs().hasArg(options::OPT_avoid_emit_module_source_info)) { chooseSwiftSourceInfoOutputPath(C, OutputMap, workingDirectory, Output.get()); } } if (C.getArgs().hasArg(options::OPT_emit_module_interface, options::OPT_emit_module_interface_path)) chooseModuleInterfacePath(C, JA, workingDirectory, Buf, file_types::TY_SwiftModuleInterfaceFile, Output.get()); if (C.getArgs().hasArg(options::OPT_emit_private_module_interface_path)) chooseModuleInterfacePath(C, JA, workingDirectory, Buf, file_types::TY_PrivateSwiftModuleInterfaceFile, Output.get()); if (C.getArgs().hasArg(options::OPT_update_code) && isa<CompileJobAction>(JA)) chooseRemappingOutputPath(C, OutputMap, Output.get()); if (isa<CompileJobAction>(JA) || isa<GeneratePCHJobAction>(JA)) { // Choose the serialized diagnostics output path. if (C.getArgs().hasArg(options::OPT_serialize_diagnostics)) chooseSerializedDiagnosticsPath(C, JA, OutputMap, workingDirectory, Output.get()); } if (isa<CompileJobAction>(JA)) { chooseModuleSummaryPath(C, OutputMap, workingDirectory, Buf, Output.get()); } if (isa<MergeModuleJobAction>(JA) || (isa<CompileJobAction>(JA) && OI.CompilerMode == OutputInfo::Mode::SingleCompile)) { // An emit-tbd argument gets passed down to a job that sees the whole // module, either the -merge-modules job or a -wmo compiler invocation. chooseTBDPath(C, OutputMap, workingDirectory, Buf, Output.get()); } if (isa<CompileJobAction>(JA)) chooseDependenciesOutputPaths(C, OutputMap, workingDirectory, Buf, Output.get()); if (C.getArgs().hasArg(options::OPT_save_optimization_record, options::OPT_save_optimization_record_EQ, options::OPT_save_optimization_record_path)) chooseOptimizationRecordPath(C, workingDirectory, Buf, Output.get()); if ((isa<MergeModuleJobAction>(JA) || (isa<CompileJobAction>(JA) && OI.CompilerMode == OutputInfo::Mode::SingleCompile)) && C.getArgs().hasArg(options::OPT_emit_objc_header, options::OPT_emit_objc_header_path)) chooseObjectiveCHeaderOutputPath(C, OutputMap, workingDirectory, Output.get()); // 4. Construct a Job which produces the right CommandOutput. std::unique_ptr<Job> ownedJob = TC.constructJob(*JA, C, std::move(InputJobs), InputActions, std::move(Output), OI); Job *J = C.addJob(std::move(ownedJob)); // If we track dependencies for this job, we may be able to avoid running it. if (auto incrementalJob = dyn_cast<IncrementalJobAction>(JA)) { const bool alwaysRebuildDependents = C.getArgs().hasArg(options::OPT_driver_always_rebuild_dependents); if (!J->getOutput() .getAdditionalOutputForType(file_types::TY_SwiftDeps) .empty()) { if (InputActions.size() == 1) { handleCompileJobCondition(J, incrementalJob->getInputInfo(), BaseInput, alwaysRebuildDependents); } } else if (isa<MergeModuleJobAction>(JA)) { handleCompileJobCondition(J, incrementalJob->getInputInfo(), None, alwaysRebuildDependents); } } // 5. Add it to the JobCache, so we don't construct the same Job multiple // times. JobCache[Key] = J; if (DriverPrintBindings) { llvm::outs() << "# \"" << TC.getTriple().str() << "\" - \"" << llvm::sys::path::filename(J->getExecutable()) << "\", inputs: ["; llvm::interleave( InputActions.begin(), InputActions.end(), [](const Action *A) { auto Input = cast<InputAction>(A); llvm::outs() << '"' << Input->getInputArg().getValue() << '"'; }, [] { llvm::outs() << ", "; }); if (!InputActions.empty() && !J->getInputs().empty()) llvm::outs() << ", "; llvm::interleave( J->getInputs().begin(), J->getInputs().end(), [](const Job *Input) { auto FileNames = Input->getOutput().getPrimaryOutputFilenames(); interleave( FileNames.begin(), FileNames.end(), [](StringRef FileName) { llvm::outs() << '"' << FileName << '"'; }, [] { llvm::outs() << ", "; }); }, [] { llvm::outs() << ", "; }); llvm::outs() << "], output: {"; auto OutputFileNames = J->getOutput().getPrimaryOutputFilenames(); StringRef TypeName = file_types::getTypeName(J->getOutput().getPrimaryOutputType()); interleave( OutputFileNames.begin(), OutputFileNames.end(), [TypeName](StringRef FileName) { llvm::outs() << TypeName << ": \"" << FileName << '"'; }, [] { llvm::outs() << ", "; }); file_types::forAllTypes([&J](file_types::ID Ty) { StringRef AdditionalOutput = J->getOutput().getAdditionalOutputForType(Ty); if (!AdditionalOutput.empty()) { llvm::outs() << ", " << file_types::getTypeName(Ty) << ": \"" << AdditionalOutput << '"'; } }); llvm::outs() << '}'; switch (J->getCondition()) { case Job::Condition::Always: break; case Job::Condition::RunWithoutCascading: llvm::outs() << ", condition: run-without-cascading"; break; case Job::Condition::CheckDependencies: llvm::outs() << ", condition: check-dependencies"; break; case Job::Condition::NewlyAdded: llvm::outs() << ", condition: newly-added"; break; } llvm::outs() << '\n'; } return J; } void Driver::computeMainOutput( Compilation &C, const JobAction *JA, const OutputFileMap *OFM, bool AtTopLevel, SmallVectorImpl<const Action *> &InputActions, SmallVectorImpl<const Job *> &InputJobs, const TypeToPathMap *OutputMap, StringRef workingDirectory, StringRef BaseInput, StringRef PrimaryInput, llvm::SmallString<128> &Buf, CommandOutput *Output) const { StringRef OutputFile, IndexUnitOutputFile; if (C.getOutputInfo().isMultiThreading() && isa<CompileJobAction>(JA) && file_types::isAfterLLVM(JA->getType())) { // Multi-threaded compilation: A single frontend command produces multiple // output file: one for each input files. // In batch mode, the driver will try to reserve multiple differing main // outputs to a bridging header. Another assertion will trip, but the cause // will be harder to track down. Since the driver now ignores -num-threads // in batch mode, the user should never be able to falsify this assertion. assert(!C.getBatchModeEnabled() && "Batch mode produces only one main " "output per input action, cannot have " "batch mode & num-threads"); auto OutputFunc = [&](StringRef Base, StringRef Primary) { const TypeToPathMap *OMForInput = nullptr; if (OFM) OMForInput = OFM->getOutputMapForInput(Base); OutputFile = getOutputFilename(C, JA, OMForInput, workingDirectory, AtTopLevel, Base, Primary, Buf); IndexUnitOutputFile = getIndexUnitOutputFilename(C, JA, OMForInput, AtTopLevel); Output->addPrimaryOutput(CommandInputPair(Base, Primary), OutputFile, IndexUnitOutputFile); }; // Add an output file for each input action. for (const Action *A : InputActions) { const InputAction *IA = cast<InputAction>(A); StringRef IV = IA->getInputArg().getValue(); OutputFunc(IV, IV); } // Add an output file for each primary output of each input job. for (const Job *IJ : InputJobs) { size_t i = 0; CommandOutput const &Out = IJ->getOutput(); for (auto OutPrimary : Out.getPrimaryOutputFilenames()) { OutputFunc(Out.getBaseInput(i++), OutPrimary); } } } else { // The common case: there is a single output file. OutputFile = getOutputFilename(C, JA, OutputMap, workingDirectory, AtTopLevel, BaseInput, PrimaryInput, Buf); IndexUnitOutputFile = getIndexUnitOutputFilename(C, JA, OutputMap, AtTopLevel); Output->addPrimaryOutput(CommandInputPair(BaseInput, PrimaryInput), OutputFile, IndexUnitOutputFile); } } void Driver::chooseSwiftModuleOutputPath(Compilation &C, const TypeToPathMap *OutputMap, StringRef workingDirectory, CommandOutput *Output) const { if (hasExistingAdditionalOutput(*Output, file_types::TY_SwiftModuleFile)) return; StringRef OFMModuleOutputPath; if (OutputMap) { auto iter = OutputMap->find(file_types::TY_SwiftModuleFile); if (iter != OutputMap->end()) OFMModuleOutputPath = iter->second; } const OutputInfo &OI = C.getOutputInfo(); const Arg *A = C.getArgs().getLastArg(options::OPT_emit_module_path); using file_types::TY_SwiftModuleFile; if (!OFMModuleOutputPath.empty()) { // Prefer a path from the OutputMap. Output->setAdditionalOutputForType(TY_SwiftModuleFile, OFMModuleOutputPath); } else if (A && OI.CompilerMode == OutputInfo::Mode::SingleCompile) { // We're performing a single compilation (and thus no merge module step), // so prefer to use -emit-module-path, if present. Output->setAdditionalOutputForType(TY_SwiftModuleFile, A->getValue()); } else if (Output->getPrimaryOutputType() == TY_SwiftModuleFile) { // If the primary type is already a module type, we're out of // options for overriding the primary name choice: stop now. assert(!Output->getPrimaryOutputFilename().empty()); return; } else if (OI.CompilerMode == OutputInfo::Mode::SingleCompile && OI.ShouldTreatModuleAsTopLevelOutput) { // We're performing a single compile and don't have -emit-module-path, // but have been told to treat the module as a top-level output. // Determine an appropriate path. llvm::SmallString<128> Path; if (const Arg *A = C.getArgs().getLastArg(options::OPT_o)) { // Put the module next to the top-level output. Path = A->getValue(); llvm::sys::path::remove_filename(Path); } else { // A top-level output wasn't specified, so just output to // <ModuleName>.swiftmodule in the current directory. } llvm::sys::path::append(Path, OI.ModuleName); llvm::sys::path::replace_extension( Path, file_types::getExtension(TY_SwiftModuleFile)); Output->setAdditionalOutputForType(TY_SwiftModuleFile, Path); } else if (Output->getPrimaryOutputType() != file_types::TY_Nothing) { // We're only generating the module as an intermediate, so put it next // to the primary output of the compile command. llvm::SmallString<128> Path(Output->getPrimaryOutputFilenames()[0]); assert(!Path.empty()); bool isTempFile = C.isTemporaryFile(Path); llvm::sys::path::replace_extension( Path, file_types::getExtension(TY_SwiftModuleFile)); Output->setAdditionalOutputForType(TY_SwiftModuleFile, Path); if (isTempFile) C.addTemporaryFile(Path); } } static void chooseModuleAuxiliaryOutputFilePath(Compilation &C, const TypeToPathMap *OutputMap, StringRef workingDirectory, CommandOutput *Output, file_types::ID fileID, bool shouldUseProjectFolder = false, Optional<options::ID> optId = llvm::None) { if (hasExistingAdditionalOutput(*Output, fileID)) return; // Honor driver option for this path if it's given if (optId.hasValue()) { if (const Arg *A = C.getArgs().getLastArg(*optId)) { Output->setAdditionalOutputForType(fileID, StringRef(A->getValue())); return; } } StringRef OFMOutputPath; if (OutputMap) { auto iter = OutputMap->find(fileID); if (iter != OutputMap->end()) OFMOutputPath = iter->second; } if (!OFMOutputPath.empty()) { // Prefer a path from the OutputMap. Output->setAdditionalOutputForType(fileID, OFMOutputPath); } else if (Output->getPrimaryOutputType() != file_types::TY_Nothing) { auto ModulePath = Output->getAnyOutputForType(file_types::TY_SwiftModuleFile); bool isTempFile = C.isTemporaryFile(ModulePath); auto ModuleName = llvm::sys::path::filename(ModulePath); llvm::SmallString<128> Path(llvm::sys::path::parent_path(ModulePath)); if (shouldUseProjectFolder) { llvm::sys::path::append(Path, "Project"); // If the build system has created a Project dir for us to include the file, use it. if (!llvm::sys::fs::exists(Path)) { llvm::sys::path::remove_filename(Path); } } llvm::sys::path::append(Path, ModuleName); llvm::sys::path::replace_extension(Path, file_types::getExtension(fileID)); Output->setAdditionalOutputForType(fileID, Path); if (isTempFile) C.addTemporaryFile(Path); } } void Driver::chooseSwiftSourceInfoOutputPath(Compilation &C, const TypeToPathMap *OutputMap, StringRef workingDirectory, CommandOutput *Output) const { chooseModuleAuxiliaryOutputFilePath(C, OutputMap, workingDirectory, Output, file_types::TY_SwiftSourceInfoFile, /*shouldUseProjectFolder*/true, options::OPT_emit_module_source_info_path); } void Driver::chooseSwiftModuleDocOutputPath(Compilation &C, const TypeToPathMap *OutputMap, StringRef workingDirectory, CommandOutput *Output) const { chooseModuleAuxiliaryOutputFilePath(C, OutputMap, workingDirectory, Output, file_types::TY_SwiftModuleDocFile); } void Driver::chooseRemappingOutputPath(Compilation &C, const TypeToPathMap *OutputMap, CommandOutput *Output) const { if (hasExistingAdditionalOutput(*Output, file_types::TY_Remapping)) return; StringRef OFMFixitsOutputPath; if (OutputMap) { auto iter = OutputMap->find(file_types::TY_Remapping); if (iter != OutputMap->end()) OFMFixitsOutputPath = iter->second; } if (!OFMFixitsOutputPath.empty()) { Output->setAdditionalOutputForType(file_types::ID::TY_Remapping, OFMFixitsOutputPath); } else { llvm::SmallString<128> Path(Output->getPrimaryOutputFilenames()[0]); bool isTempFile = C.isTemporaryFile(Path); llvm::sys::path::replace_extension(Path, file_types::getExtension(file_types::ID::TY_Remapping)); Output->setAdditionalOutputForType(file_types::ID::TY_Remapping, Path); if (isTempFile) C.addTemporaryFile(Path); } } void Driver::chooseModuleInterfacePath(Compilation &C, const JobAction *JA, StringRef workingDirectory, llvm::SmallString<128> &buffer, file_types::ID fileType, CommandOutput *output) const { switch (C.getOutputInfo().CompilerMode) { case OutputInfo::Mode::StandardCompile: case OutputInfo::Mode::BatchModeCompile: if (!isa<MergeModuleJobAction>(JA)) return; break; case OutputInfo::Mode::SingleCompile: if (!isa<CompileJobAction>(JA)) return; break; case OutputInfo::Mode::Immediate: case OutputInfo::Mode::REPL: llvm_unreachable("these modes aren't usable with 'swiftc'"); } auto pathOpt = fileType == file_types::TY_SwiftModuleInterfaceFile? options::OPT_emit_module_interface_path: options::OPT_emit_private_module_interface_path; StringRef outputPath = *getOutputFilenameFromPathArgOrAsTopLevel( C.getOutputInfo(), C.getArgs(), pathOpt, fileType, /*TreatAsTopLevelOutput*/true, workingDirectory, buffer); output->setAdditionalOutputForType(fileType, outputPath); } void Driver::chooseModuleSummaryPath(Compilation &C, const TypeToPathMap *OutputMap, StringRef workingDirectory, llvm::SmallString<128> &Buf, CommandOutput *Output) const { StringRef pathFromArgs; if (const Arg *A = C.getArgs().getLastArg(options::OPT_emit_module_summary_path)) { pathFromArgs = A->getValue(); } addAuxiliaryOutput(C, *Output, file_types::TY_SwiftModuleSummaryFile, OutputMap, workingDirectory, pathFromArgs, /*requireArg=*/options::OPT_emit_module_summary); } void Driver::chooseSerializedDiagnosticsPath(Compilation &C, const JobAction *JA, const TypeToPathMap *OutputMap, StringRef workingDirectory, CommandOutput *Output) const { if (C.getArgs().hasArg(options::OPT_serialize_diagnostics)) { auto pchJA = dyn_cast<GeneratePCHJobAction>(JA); if (pchJA && pchJA->isPersistentPCH()) { addDiagFileOutputForPersistentPCHAction(C, pchJA, *Output, OutputMap, workingDirectory); } else { addAuxiliaryOutput(C, *Output, file_types::TY_SerializedDiagnostics, OutputMap, workingDirectory); } // Remove any existing diagnostics files so that clients can detect their // presence to determine if a command was run. StringRef OutputPath = Output->getAnyOutputForType(file_types::TY_SerializedDiagnostics); if (llvm::sys::fs::is_regular_file(OutputPath)) llvm::sys::fs::remove(OutputPath); } } void Driver::chooseDependenciesOutputPaths(Compilation &C, const TypeToPathMap *OutputMap, StringRef workingDirectory, llvm::SmallString<128> &Buf, CommandOutput *Output) const { if (C.getArgs().hasArg(options::OPT_emit_dependencies)) { auto depPath = computeAuxiliaryOutputPath( C, *Output, file_types::TY_Dependencies, OutputMap, workingDirectory); C.addDependencyPathOrCreateDummy(depPath, [&] { addAuxiliaryOutput(C, *Output, file_types::TY_Dependencies, OutputMap, workingDirectory); }); } if (C.getIncrementalBuildEnabled()) { file_types::forEachIncrementalOutputType([&](file_types::ID type) { if (type == file_types::TY_SwiftDeps) addAuxiliaryOutput(C, *Output, type, OutputMap, workingDirectory); }); } chooseLoadedModuleTracePath(C, workingDirectory, Buf, Output); } void Driver::chooseLoadedModuleTracePath(Compilation &C, StringRef workingDirectory, llvm::SmallString<128> &Buf, CommandOutput *Output) const { // The loaded-module-trace is the same for all compile jobs: all `import` // statements are processed, even ones from non-primary files. Thus, only // one of those jobs needs to emit the file, and we can get it to write // straight to the desired final location. auto tracePathEnvVar = getenv("SWIFT_LOADED_MODULE_TRACE_FILE"); auto shouldEmitTrace = tracePathEnvVar || C.getArgs().hasArg(options::OPT_emit_loaded_module_trace, options::OPT_emit_loaded_module_trace_path); if (shouldEmitTrace && C.requestPermissionForFrontendToEmitLoadedModuleTrace()) { StringRef filename; // Prefer the environment variable. if (tracePathEnvVar) filename = StringRef(tracePathEnvVar); else { // By treating this as a top-level output, the return value always // exists. filename = *getOutputFilenameFromPathArgOrAsTopLevel( C.getOutputInfo(), C.getArgs(), options::OPT_emit_loaded_module_trace_path, file_types::TY_ModuleTrace, /*TreatAsTopLevelOutput=*/true, workingDirectory, Buf); } Output->setAdditionalOutputForType(file_types::TY_ModuleTrace, filename); } } void Driver::chooseTBDPath(Compilation &C, const TypeToPathMap *OutputMap, StringRef workingDirectory, llvm::SmallString<128> &Buf, CommandOutput *Output) const { StringRef pathFromArgs; if (const Arg *A = C.getArgs().getLastArg(options::OPT_emit_tbd_path)) { pathFromArgs = A->getValue(); } addAuxiliaryOutput(C, *Output, file_types::TY_TBD, OutputMap, workingDirectory, pathFromArgs, /*requireArg=*/options::OPT_emit_tbd); } void Driver::chooseOptimizationRecordPath(Compilation &C, StringRef workingDirectory, llvm::SmallString<128> &Buf, CommandOutput *Output) const { const OutputInfo &OI = C.getOutputInfo(); if (OI.CompilerMode == OutputInfo::Mode::SingleCompile) { llvm::Expected<file_types::ID> FileType = C.getToolChain().remarkFileTypeFromArgs(C.getArgs()); if (!FileType) { Diags.diagnose({}, diag::error_creating_remark_serializer, llvm::toString(FileType.takeError())); return; } auto filename = *getOutputFilenameFromPathArgOrAsTopLevel( OI, C.getArgs(), options::OPT_save_optimization_record_path, *FileType, /*TreatAsTopLevelOutput=*/true, workingDirectory, Buf); Output->setAdditionalOutputForType(*FileType, filename); } else // FIXME: We should use the OutputMap in this case. Diags.diagnose({}, diag::warn_opt_remark_disabled); } void Driver::chooseObjectiveCHeaderOutputPath(Compilation &C, const TypeToPathMap *OutputMap, StringRef workingDirectory, CommandOutput *Output) const { if (hasExistingAdditionalOutput(*Output, file_types::TY_ObjCHeader)) return; StringRef ObjCHeaderPath; if (OutputMap) { auto iter = OutputMap->find(file_types::TY_ObjCHeader); if (iter != OutputMap->end()) ObjCHeaderPath = iter->second; } if (ObjCHeaderPath.empty()) if (auto A = C.getArgs().getLastArg(options::OPT_emit_objc_header_path)) ObjCHeaderPath = A->getValue(); if (!ObjCHeaderPath.empty()) { Output->setAdditionalOutputForType(file_types::TY_ObjCHeader, ObjCHeaderPath); } else { // Put the header next to the primary output file. // FIXME: That's not correct if the user /just/ passed -emit-header // and not -emit-module. addAuxiliaryOutput(C, *Output, file_types::TY_ObjCHeader, /*output file map*/ nullptr, workingDirectory); } } static unsigned printActions(const Action *A, llvm::DenseMap<const Action *, unsigned> &Ids) { if (Ids.count(A)) return Ids[A]; std::string str; llvm::raw_string_ostream os(str); os << Action::getClassName(A->getKind()) << ", "; if (const auto *IA = dyn_cast<InputAction>(A)) { os << "\"" << IA->getInputArg().getValue() << "\""; } else { os << "{"; llvm::interleave( *cast<JobAction>(A), [&](const Action *Input) { os << printActions(Input, Ids); }, [&] { os << ", "; }); os << "}"; } unsigned Id = Ids.size(); Ids[A] = Id; llvm::errs() << Id << ": " << os.str() << ", " << file_types::getTypeName(A->getType()) << "\n"; return Id; } void Driver::printActions(const Compilation &C) const { llvm::DenseMap<const Action *, unsigned> Ids; for (const Action *A : C.getActions()) { ::printActions(A, Ids); } } void Driver::printVersion(const ToolChain &TC, raw_ostream &OS) const { OS << version::getSwiftFullVersion( version::Version::getCurrentLanguageVersion()) << '\n'; OS << "Target: " << TC.getTriple().str() << '\n'; } void Driver::printHelp(bool ShowHidden) const { unsigned IncludedFlagsBitmask = 0; unsigned ExcludedFlagsBitmask = options::NoDriverOption; switch (driverKind) { case DriverKind::Interactive: ExcludedFlagsBitmask |= options::NoInteractiveOption; break; case DriverKind::Batch: case DriverKind::AutolinkExtract: case DriverKind::SwiftIndent: case DriverKind::SymbolGraph: case DriverKind::APIExtract: case DriverKind::APIDigester: ExcludedFlagsBitmask |= options::NoBatchOption; break; } if (!ShowHidden) ExcludedFlagsBitmask |= HelpHidden; getOpts().PrintHelp(llvm::outs(), Name.c_str(), "Swift compiler", IncludedFlagsBitmask, ExcludedFlagsBitmask, /*ShowAllAliases*/false); // These strings match the descriptions found in the corresponding swiftpm // help pages if (driverKind == DriverKind::Interactive) { llvm::outs() << "\nSEE ALSO - PACKAGE MANAGER COMMANDS: \n" "\t\"swift build\" Build sources into binary products \n" "\t\"swift package\" Perform operations on Swift packages \n" "\t\"swift run\" Build and run an executable product \n" "\t\"swift test\" Build and run tests \n"; } else { llvm::outs() << "\nSEE ALSO: swift build, swift run, swift package, " "swift test \n"; } } bool OutputInfo::mightHaveExplicitPrimaryInputs( const CommandOutput &Output) const { switch (CompilerMode) { case Mode::StandardCompile: case Mode::BatchModeCompile: return true; case Mode::SingleCompile: return false; case Mode::Immediate: case Mode::REPL: llvm_unreachable("REPL and immediate modes handled elsewhere"); } llvm_unreachable("unhandled mode"); }
; TODO: fix formatting bits 32 section .text ;multiboot spec align 4 dd 0x1BADB002 ;magic dd 0x00 ;flags dd - (0x1BADB002 + 0x00) ;checksum. m+f+c should be zero global start extern kmain ;kmain is defined in the c file start: cli ;block interrupts mov esp, stack_space ;set stack pointer call kmain hlt ;halt the CPU section .bss resb 8192 ;8KB for stack stack_space:
// Test provided by Karu //SEQ test 6. Test saving 1 to rt // // Michael McKinley (mckinley) lbi r1, 0x35 lbi r2, 0x35 seq r2, r1, r2 halt
#include "bass/bass.h" #include <stdlib.h> #include <stdio.h> #include "player.h"
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: rfsdStrings.asm AUTHOR: In Sik Rhee, Apr 23, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- ISR 4/23/92 Initial revision DESCRIPTION: Strings for RFS Driver $Id: rfsdStrings.asm,v 1.1 97/04/18 11:46:14 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DriverExtendedInfo segment lmem LMEM_TYPE_GENERAL DriverExtendedInfoTable < {}, ; lmem header added by Esp length fsNameTable, ; Number of supported "devices" offset fsNameTable, ; Names of supported "devices" offset fsInfoTable ; FSDFlags > fsNameTable lptr.char rfsd_10 lptr.char 0 ; terminate table rfsd_10 chunk.char "Remote File Server v1.0", 0 fsInfoTable word FSD_FLAGS ; rfsd_10 DriverExtendedInfo ends Strings segment lmem LMEM_TYPE_GENERAL LostConnectionError chunk.char "The connection to the remote machine was broken.",0 Strings ends
; A007179: Dual pairs of integrals arising from reflection coefficients. ; 0,1,1,4,6,16,28,64,120,256,496,1024,2016,4096,8128,16384,32640,65536,130816,262144,523776,1048576,2096128,4194304,8386560,16777216,33550336,67108864,134209536,268435456,536854528,1073741824,2147450880,4294967296,8589869056,17179869184,34359607296,68719476736,137438691328,274877906944,549755289600,1099511627776,2199022206976,4398046511104,8796090925056,17592186044416,35184367894528,70368744177664,140737479966720,281474976710656,562949936644096,1125899906842624,2251799780130816,4503599627370496,9007199187632128 mov $15,$0 mov $17,$0 lpb $17,1 mov $0,$15 sub $17,1 sub $0,$17 mov $11,$0 mov $13,2 lpb $13,1 mov $0,$11 sub $13,1 add $0,$13 sub $0,1 mov $7,$0 mov $9,2 lpb $9,1 clr $0,7 mov $0,$7 sub $9,1 add $0,$9 sub $0,1 mov $2,$0 mov $4,$0 mul $0,2 lpb $2,1 lpb $4,1 trn $4,$2 add $5,1 lpe lpb $5,1 sub $0,1 mov $5,$2 lpe sub $0,$2 mul $0,2 sub $2,1 mov $4,1 lpe add $2,$0 mov $1,$2 mov $10,$9 lpb $10,1 mov $8,$1 sub $10,1 lpe lpe lpb $7,1 mov $7,0 sub $8,$1 lpe mov $1,$8 mov $14,$13 lpb $14,1 mov $12,$1 sub $14,1 lpe lpe lpb $11,1 mov $11,0 sub $12,$1 lpe mov $1,$12 div $1,2 add $16,$1 lpe mov $1,$16
; A160429: First differences of A160428. ; 8,56,56,392,56,392,392,2744,56,392,392,2744,392,2744,2744,19208,56,392,392,2744,392,2744,2744,19208,392,2744,2744,19208,2744,19208,19208,134456,56,392,392,2744,392,2744,2744,19208,392,2744,2744,19208,2744,19208,19208 mov $1,$0 lpb $1 div $0,2 sub $1,$0 lpe mov $0,7 pow $0,$1 mul $0,8
; A130026: Triangle (n,k) by columns, arithmetic sequences interspersed with k zeros. ; Submitted by Christian Krause ; 1,2,1,3,0,1,4,3,0,1,5,0,0,0,1,6,5,4,0,0,1,7,0,0,0,0,0,1,8,7,0,5,0,0,0,1,9,0,7,0,0,0,0,0,1,10,9,0,0,6,0,0,0,0,1 lpb $0 add $2,1 sub $0,$2 lpe add $0,1 add $1,1 add $2,2 lpb $0 bin $1,$0 sub $2,1 gcd $0,$2 lpe sub $2,$0 mul $2,$1 mov $0,$2
SECTION .text global _long_add32 _long_add32: push ebp mov ebp,esp mov edx,[ebp+8] mov eax,[ebp+12] add eax,edx mov edx,[ebp+16] add eax,edx mov edx,[ebp+20] add eax,edx mov esp,ebp pop ebp ret
; A010505: Decimal expansion of square root of 52. ; 7,2,1,1,1,0,2,5,5,0,9,2,7,9,7,8,5,8,6,2,3,8,4,4,2,5,3,4,9,4,0,9,9,1,8,9,2,5,0,2,5,9,3,1,4,7,6,9,0,4,9,2,4,2,5,4,2,0,9,0,6,1,1,2,4,5,4,3,3,3,8,9,6,5,8,6,0,2,0,8,9,0,4,0,9,2,3,8,1,6,4,0,3,6,9,8,1,4,3,5 mov $1,1 mov $2,1 mov $3,$0 add $3,8 mov $4,$0 add $4,3 mul $4,2 mov $7,10 pow $7,$4 mov $9,10 lpb $3 mov $4,$2 pow $4,2 mul $4,52 mov $5,$1 pow $5,2 add $4,$5 mov $6,$1 mov $1,$4 mul $6,$2 mul $6,2 mov $2,$6 mov $8,$4 div $8,$7 max $8,2 div $1,$8 div $2,$8 sub $3,1 lpe mov $3,$9 pow $3,$0 div $2,$3 div $1,$2 mod $1,$9 mov $0,$1
; A168484: Numbers that are congruent to {2, 3, 5, 7} mod 11. ; 2,3,5,7,13,14,16,18,24,25,27,29,35,36,38,40,46,47,49,51,57,58,60,62,68,69,71,73,79,80,82,84,90,91,93,95,101,102,104,106,112,113,115,117,123,124,126,128,134,135,137,139,145,146,148,150,156,157,159,161,167,168,170,172,178,179,181,183,189,190,192,194,200,201,203,205,211,212,214,216,222,223,225,227,233,234,236,238,244,245,247,249,255,256,258,260,266,267,269,271,277,278,280,282,288,289,291,293,299,300,302,304,310,311,313,315,321,322,324,326,332,333,335,337,343,344,346,348,354,355,357,359,365,366,368,370,376,377,379,381,387,388,390,392,398,399,401,403,409,410,412,414,420,421,423,425,431,432,434,436,442,443,445,447,453,454,456,458,464,465,467,469,475,476,478,480,486,487,489,491,497,498,500,502,508,509,511,513,519,520,522,524,530,531,533,535,541,542,544,546,552,553,555,557,563,564,566,568,574,575,577,579,585,586,588,590,596,597,599,601,607,608,610,612,618,619,621,623,629,630,632,634,640,641,643,645,651,652,654,656,662,663,665,667,673,674,676,678,684,685 add $0,5 mul $0,2 mov $2,6 lpb $0,1 trn $0,3 mov $1,$0 trn $0,5 add $2,5 add $1,$2 add $1,$3 add $2,6 mov $3,5 lpe sub $1,25
TypeNames: ; entries correspond to types (see constants/type_constants.asm) dw Normal dw Fighting dw Flying dw Poison dw Ground dw Rock dw Bird dw Bug dw Ghost dw Steel dw Normal dw Normal dw Normal dw Normal dw Normal dw Normal dw Normal dw Normal dw Normal dw CurseType dw Fire dw Water dw Grass dw Electric dw Psychic dw Ice dw Dragon dw Dark Normal: db "NORMAL@" Fighting: db "FIGHTING@" Flying: db "FLYING@" Poison: db "POISON@" CurseType: db "???@" Fire: db "FIRE@" Water: db "WATER@" Grass: db "GRASS@" Electric: db "ELECTRIC@" Psychic: db "PSYCHIC@" Ice: db "ICE@" Ground: db "GROUND@" Rock: db "ROCK@" Bird: db "BIRD@" Bug: db "BUG@" Ghost: db "GHOST@" Steel: db "STEEL@" Dragon: db "DRAGON@" Dark: db "DARK@"
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main(){ int tc; ll n, t = 1; cin>>tc; while(tc--){ cin>>n; ll p[n-1]; for (int i = 0; i < n-1; ++i) { cin>>p[i]; } ll sum = 0, ans = 0, f = 0, l = 0; for (int i = 0; i < n-1; ++i) { sum += p[i]; ans = max(ans,sum); if(sum < 0){ sum = 0; f = i; l = i; }else{ l++; } } if(sum > 0){ printf("The nicest part of route %lld is between stops %lld and %lld\n", t, f, l); }else{ printf("Route %lld has no nice parts\n", t); } t++; } }
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r9 push %rdi push %rsi lea addresses_UC_ht+0x18a99, %rsi nop nop xor %rdi, %rdi mov $0x6162636465666768, %r9 movq %r9, %xmm3 movups %xmm3, (%rsi) nop nop nop nop nop xor $2071, %r12 pop %rsi pop %rdi pop %r9 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %rax push %rbp push %rbx push %rdi // Faulty Load lea addresses_US+0x1efdf, %r11 nop nop nop sub %rdi, %rdi mov (%r11), %bx lea oracles, %rdi and $0xff, %rbx shlq $12, %rbx mov (%rdi,%rbx,1), %rbx pop %rdi pop %rbx pop %rbp pop %rax pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'00': 41} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
#include <iostream> class Shape { public: virtual double Area(void) = 0; }; class Triangle : public Shape { private: double base, height; public: Triangle(double b, double h) { base = b; height = h; } double Area(void) { return (0.5 * base * height); } }; using namespace std; int main() { Triangle t(10.0, 22.0); cout << t.Area() << endl; return 0; }
/* MIT License Copyright (c) 2021 Maciej Malecki Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #import "_vic_layout.asm" #import "_zero_page.asm" #import "_constants.asm" #import "sprites.asm" #import "charsets.asm" #importonce .filenamespace c64lib // 48 -> 0, 49 -> -1 and so on... .macro drawLoDigitOnSprite(spriteAddr, numberAddr, charsetAddr) { lda numberAddr and #%00001111 asl asl asl tax ldy #0 !: lda charsetAddr + 48*8,x sta spriteAddr,y inx iny iny iny cpy #(3*8) bne !- } .macro drawHiDigitOnSprite(spriteAddr, numberAddr, charsetAddr) { lda numberAddr and #%11110000 lsr tax ldy #0 !: lda charsetAddr + 48*8,x sta spriteAddr,y inx iny iny iny cpy #(3*8) bne !- } updateScoreOnDashboard: { drawLoDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 3)*64 + 20, z_score, beginOfChargen) drawHiDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 3)*64 + 19, z_score, beginOfChargen) drawLoDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 3)*64 + 18, z_score + 1, beginOfChargen) drawHiDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 2)*64 + 20, z_score + 1, beginOfChargen) drawLoDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 2)*64 + 19, z_score + 2, beginOfChargen) drawHiDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 2)*64 + 18, z_score + 2, beginOfChargen) rts } updateHiScoreOnDashboard: { drawLoDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 3)*64 + 20 + 3*8, z_hiScore, beginOfChargen) drawHiDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 3)*64 + 19 + 3*8, z_hiScore, beginOfChargen) drawLoDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 3)*64 + 18 + 3*8, z_hiScore + 1, beginOfChargen) drawHiDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 2)*64 + 20 + 3*8, z_hiScore + 1, beginOfChargen) drawLoDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 2)*64 + 19 + 3*8, z_hiScore + 2, beginOfChargen) drawHiDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD + 2)*64 + 18 + 3*8, z_hiScore + 2, beginOfChargen) rts } updateDashboard: { drawLoDigitOnSprite( VIC_MEMORY_START + (SPRITE_SHAPES_START + SPR_DASHBOARD)*64 + 20, z_lives, beginOfChargen) rts } // ---- BEGIN: dashboard ---- .macro stashSprites(stash) { // stash .for (var i = 0; i < 8; i++) { lda SPRITE_4_X + i sta stash + i } .for (var i = 0; i < 4; i++) { lda SPRITE_4_COLOR + i sta stash + 8 + i } lda SPRITE_MSB_X sta stash + 12 lda SPRITE_ENABLE sta stash + 13 lda SPRITE_COL_MODE sta stash + 14 .for (var i = 0; i < 4; i++) { lda SCREEN_PAGE_ADDR_0 + 1020 + i sta stash + 15 + i } .for (var i = 0; i < 4; i++) { lda SCREEN_PAGE_ADDR_1 + 1020 + i sta stash + 19 + i } // setup lda #DASHBOARD_Y sta SPRITE_4_Y sta SPRITE_5_Y sta SPRITE_6_Y sta SPRITE_7_Y lda #DASHBOARD_LEFT_X sta SPRITE_4_X lda #DASHBOARD_RIGHT_X sta SPRITE_5_X lda #(DASHBOARD_RIGHT_X + 24 + DASHBOARD_RIGHT_SPC) sta SPRITE_6_X lda #(DASHBOARD_RIGHT_X + 48 + DASHBOARD_RIGHT_SPC) sta SPRITE_7_X lda SPRITE_MSB_X and #%11101111 ora #%11100000 sta SPRITE_MSB_X lda SPRITE_COL_MODE and #%00001111 sta SPRITE_COL_MODE lda #WHITE .for(var i = 0; i < 4; i++) { sta SPRITE_4_COLOR + i } // sprite shapes .for(var i = 0; i < 4; i++) { lda #(SPRITE_SHAPES_START + SPR_DASHBOARD + i) sta SCREEN_PAGE_ADDR_0 + 1020 + i sta SCREEN_PAGE_ADDR_1 + 1020 + i } lda SPRITE_ENABLE ora #%11110000 sta SPRITE_ENABLE lda #1 sta z_spritesStashed } .macro popSprites(stash) { lda z_spritesStashed bne !+ jmp end !: // pop lda SPRITE_ENABLE and #%00001111 sta SPRITE_ENABLE .for (var i = 0; i < 8; i++) { lda stash + i sta SPRITE_4_X + i } .for (var i = 0; i < 4; i++) { lda stash + 8 + i sta SPRITE_4_COLOR + i } lda stash + 12 sta SPRITE_MSB_X lda stash + 14 sta SPRITE_COL_MODE .for (var i = 0; i < 4; i++) { lda stash + 15 + i sta SCREEN_PAGE_ADDR_0 + 1020 + i } .for (var i = 0; i < 4; i++) { lda stash + 19 + i sta SCREEN_PAGE_ADDR_1 + 1020 + i } lda stash + 13 sta SPRITE_ENABLE lda #0 sta z_spritesStashed end: } // ---- END: dashboard ----
processor 6502 include "apple1.inc" org $2000 loop lda HOSTRNG bmi slash lda #47 jmp print slash lda #92 print jsr ECHO jmp loop
db 0 ; species ID placeholder db 160, 110, 65, 30, 65, 110 ; hp atk def spd sat sdf db NORMAL, NORMAL ; type db 25 ; catch rate db 154 ; base exp db LEFTOVERS, LEFTOVERS ; items db GENDER_F0 ; gender ratio db 100 ; unknown 1 db 40 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/snorlax/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_SLOW ; growth rate dn EGG_MONSTER, EGG_MONSTER ; egg groups ; tm/hm learnset tmhm DYNAMICPUNCH, HEADBUTT, CURSE, ROLLOUT, TOXIC, ZAP_CANNON, ROCK_SMASH, PSYCH_UP, HIDDEN_POWER, SUNNY_DAY, SNORE, BLIZZARD, HYPER_BEAM, ICY_WIND, PROTECT, RAIN_DANCE, ENDURE, FRUSTRATION, SOLARBEAM, THUNDER, EARTHQUAKE, RETURN, PSYCHIC_M, SHADOW_BALL, MUD_SLAP, DOUBLE_TEAM, ICE_PUNCH, SWAGGER, SLEEP_TALK, SANDSTORM, FIRE_BLAST, DEFENSE_CURL, THUNDERPUNCH, REST, ATTRACT, FIRE_PUNCH, SURF, STRENGTH, FLAMETHROWER, THUNDERBOLT, ICE_BEAM ; end
; Videoton TV Computer C stub ; Sandor Vass - 2022 ; ; Returns the value of L_MODE system variable ; SECTION code_clib PUBLIC tvc_get_linemode INCLUDE "target/tvc/def/tvc.def" .tvc_get_linemode ._tvc_get_linemode ld a,(L_MODE) ld l,a ld h,0 ret
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %r15 push %r8 push %rsi lea addresses_D_ht+0xde59, %r15 nop nop nop inc %r8 vmovups (%r15), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %r14 nop dec %r13 lea addresses_D_ht+0x10f99, %rsi nop nop nop nop inc %r11 movups (%rsi), %xmm2 vpextrq $0, %xmm2, %r8 nop cmp %r14, %r14 pop %rsi pop %r8 pop %r15 pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r15 push %r9 push %rax push %rbp // Store mov $0x67566800000001b9, %r15 nop xor %r14, %r14 mov $0x5152535455565758, %rax movq %rax, %xmm1 movntdq %xmm1, (%r15) nop nop nop add $10584, %rax // Store lea addresses_D+0xdd39, %r12 sub %r9, %r9 movw $0x5152, (%r12) nop add %rbp, %rbp // Load mov $0x1d059e0000000e7f, %rbp nop nop nop nop sub %r12, %r12 movups (%rbp), %xmm0 vpextrq $0, %xmm0, %r13 nop xor $190, %r15 // Faulty Load mov $0x67566800000001b9, %r13 nop nop nop nop nop and $38836, %r14 vmovups (%r13), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %r9 lea oracles, %r14 and $0xff, %r9 shlq $12, %r9 mov (%r14,%r9,1), %r9 pop %rbp pop %rax pop %r9 pop %r15 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'size': 16, 'NT': True, 'same': True, 'congruent': 0}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 7}} {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 5}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 5}, 'OP': 'LOAD'} {'00': 3} 00 00 00 */
; A023536: Convolution of natural numbers with A023532. ; 1,2,4,7,10,14,19,25,31,38,46,55,65,75,86,98,111,125,140,155,171,188,206,225,245,266,287,309,332,356,381,407,434,462,490,519,549,580,612,645,679,714,750,786,823,861,900,940,981,1023,1066,1110,1155,1200,1246,1293,1341,1390,1440,1491,1543,1596,1650,1705,1760,1816,1873,1931,1990,2050,2111,2173,2236,2300,2365,2431,2497,2564,2632,2701,2771,2842,2914,2987,3061,3136,3212,3289,3367,3445,3524,3604,3685,3767,3850,3934,4019,4105,4192,4280,4369,4459,4550,4641,4733,4826,4920,5015,5111,5208,5306,5405,5505,5606,5708,5811,5915,6020,6125,6231,6338,6446,6555,6665,6776,6888,7001,7115,7230,7346,7463,7581,7700,7820,7940,8061,8183,8306,8430,8555,8681,8808,8936,9065,9195,9326,9458,9591,9725,9860,9996,10132,10269,10407,10546,10686,10827,10969,11112,11256,11401,11547,11694,11842,11991,12141,12292,12444,12597,12750,12904,13059,13215,13372,13530,13689,13849,14010,14172,14335,14499,14664,14830,14997,15165,15334,15504,15675,15846,16018,16191,16365,16540,16716,16893,17071,17250,17430,17611,17793,17976,18160,18345,18531,18718,18906,19095,19285,19475,19666,19858,20051,20245,20440,20636,20833,21031,21230,21430,21631,21833,22036,22240,22445,22651,22858,23066,23275,23485,23695,23906,24118,24331,24545,24760,24976,25193,25411,25630,25850,26071,26293,26516,26740,26965,27191,27418,27646,27875,28105 mov $1,1 mov $4,$0 lpb $0 add $1,$0 sub $0,1 add $2,3 add $3,$4 trn $3,$2 trn $4,$1 sub $1,$3 sub $2,2 lpe
#include "btPGSSolverWrapper.h" #include "CollisionConstraint.h" #include "BulletCollision\NarrowPhaseCollision\btPersistentManifold.h" #include <DirectXMath.h> using namespace DirectX; btScalar btPGSSolverWrapper::solveGroup(btCollisionObject** bodies, int numBodies, btPersistentManifold** manifold, int numManifolds, btTypedConstraint** constraints, int numConstraints, const btContactSolverInfo& info, btIDebugDraw* debugDrawer, btDispatcher* dispatcher) { // // SETTING UP BODIES // for (int i = 0; i < numBodies; i++) { bodies[i]->setCompanionId(-1); } // THIS IS A HACK, WE ARE REMOVING ALL BODIES BEFORE SOLVING m_rigidBodies.reserve(numBodies + 1); m_rigidBodies.resize(0); m_fixedBodyId = -1; // Need to implement a Static Body system! for (int i = 0; i < numBodies; i++) { int bodyId = getOrInitSolverBody(*bodies[i], info.m_timeStep); } convertManifoldPtsToConstraints(manifold, numManifolds, info.m_timeStep); Update(info.m_timeStep); updateBodiesWithNewVelocitiesAndForces(bodies, numBodies, info.m_timeStep); clearConstraints(); // TODO -> ADD CONSTRAINTS return 0.0f; } void btPGSSolverWrapper::reset() { clearRigidBodies(); clearConstraints(); } int btPGSSolverWrapper::getOrInitSolverBody(btCollisionObject& body, btScalar timeStep) { int solverBodyIdA = -1; if (body.getCompanionId() >= 0) { //body has already been converted solverBodyIdA = body.getCompanionId(); btAssert(solverBodyIdA < m_rigidBodies.size()); } else { btRigidBody* rb = btRigidBody::upcast(&body); //convert both active and kinematic objects (for their velocity) if (rb && (rb->getInvMass() || rb->isKinematicObject())) { solverBodyIdA = m_rigidBodies.size(); PGSSOlver::RigidBody_c* solverBody = new PGSSOlver::RigidBody_c(); m_rigidBodies.push_back(solverBody); initSolverBody(solverBody, &body, timeStep); body.setCompanionId(solverBodyIdA); } else { if (m_fixedBodyId<0) { m_fixedBodyId = m_rigidBodies.size(); PGSSOlver::RigidBody_c* fixedBody = new PGSSOlver::RigidBody_c(); m_rigidBodies.push_back(fixedBody); initSolverBody(fixedBody, 0, timeStep); } return m_fixedBodyId; } // return 0;//assume first one is a fixed solver body } return solverBodyIdA; } void btPGSSolverWrapper::initSolverBody(PGSSOlver::RigidBody_c* solverBody, btCollisionObject* collisionObject, btScalar timeStep) { btRigidBody* rb = collisionObject ? btRigidBody::upcast(collisionObject) : 0; if (rb) { solverBody->m_position = XMFLOAT3(rb->getWorldTransform().getOrigin().x(), rb->getWorldTransform().getOrigin().y(), rb->getWorldTransform().getOrigin().z()); solverBody->m_orientation = XMFLOAT4(rb->getWorldTransform().getRotation().x(), rb->getWorldTransform().getRotation().y(), rb->getWorldTransform().getRotation().z(), rb->getWorldTransform().getRotation().w()); solverBody->m_force = XMFLOAT3(rb->getTotalForce().x(), rb->getTotalForce().y(), rb->getTotalForce().z()); solverBody->m_invMass = (float) rb->getInvMass(); btMatrix3x3 iIT = rb->getInvInertiaTensorWorld(); solverBody->m_invInertia = XMFLOAT3X3(iIT.getRow(0).x(), iIT.getRow(0).y(), iIT.getRow(0).z(), iIT.getRow(1).x(), iIT.getRow(1).y(), iIT.getRow(1).z(), iIT.getRow(2).x(), iIT.getRow(2).y(), iIT.getRow(2).z()); solverBody->m_torque = XMFLOAT3(rb->getTotalTorque().x(), rb->getTotalTorque().y(), rb->getTotalTorque().z()); solverBody->m_linearVelocity = XMFLOAT3(rb->getLinearVelocity().x(), rb->getLinearVelocity().y(), rb->getLinearVelocity().z()); solverBody->m_angularVelocity = XMFLOAT3(rb->getAngularVelocity().x(), rb->getAngularVelocity().y(), rb->getAngularVelocity().z()); } else { solverBody->m_position = XMFLOAT3(0, 0, 0); solverBody->m_orientation = XMFLOAT4(0, 0, 0, 1); solverBody->m_force = XMFLOAT3(0, 0, 0); solverBody->m_invMass = 0.0f; solverBody->m_invInertia = XMFLOAT3X3( 0, 0, 0, 0, 0, 0, 0, 0, 0); solverBody->m_torque = XMFLOAT3(0, 0, 0); solverBody->m_linearVelocity = XMFLOAT3(0, 0, 0); solverBody->m_angularVelocity = XMFLOAT3(0, 0, 0); } } void btPGSSolverWrapper::convertManifoldPtsToConstraints(btPersistentManifold** manifold, int numManifolds, btScalar timeStep) { for (int i = 0; i < numManifolds; i++) { btCollisionObject *colObj0 = 0, *colObj1 = 0; colObj0 = (btCollisionObject*)manifold[i]->getBody0(); colObj1 = (btCollisionObject*)manifold[i]->getBody1(); int solverBodyIdA = getOrInitSolverBody(*colObj0, timeStep); int solverBodyIdB = getOrInitSolverBody(*colObj1, timeStep); PGSSOlver::RigidBody_c* rbA = m_rigidBodies[solverBodyIdA]; PGSSOlver::RigidBody_c* rbB = m_rigidBodies[solverBodyIdB]; for (int j = 0; j < manifold[i]->getNumContacts(); j++) { btManifoldPoint& cp = manifold[i]->getContactPoint(j); if (cp.getDistance() <= manifold[i]->getContactProcessingThreshold()) { btVector3 rel_posA = cp.getPositionWorldOnA() - colObj0->getWorldTransform().getOrigin(); btVector3 rel_posB = cp.getPositionWorldOnB() - colObj1->getWorldTransform().getOrigin(); XMFLOAT3 relativePositionA = XMFLOAT3(rel_posA.x(), rel_posA.y(), rel_posA.z()); XMFLOAT3 relativePositionB = XMFLOAT3(rel_posB.x(), rel_posB.y(), rel_posB.z()); XMFLOAT3 normal = XMFLOAT3(cp.m_normalWorldOnB.x(), cp.m_normalWorldOnB.y(), cp.m_normalWorldOnB.z()); PGSSOlver::CollisionConstraint* contactConstraint = new PGSSOlver::CollisionConstraint(rbA, rbB, relativePositionA, relativePositionB, normal, manifold[i]->getContactPoint(j).m_combinedRestitution, manifold[i]->getContactPoint(j).m_combinedFriction, manifold[i]->getContactPoint(j).m_distance1); // Need to optimize, Push_back is too expensive m_constraints.push_back(contactConstraint); } } } } void btPGSSolverWrapper::updateBodiesWithNewVelocitiesAndForces(btCollisionObject** bodies, int numBodies, btScalar timeStep) { for (int i = 0; i < numBodies; i++) { btRigidBody* btRB = bodies[i] ? btRigidBody::upcast(bodies[i]) : 0; int bodyId = getOrInitSolverBody(*bodies[i], timeStep); PGSSOlver::RigidBody_c* rb = m_rigidBodies[bodyId]; btRB->getWorldTransform().setOrigin(btVector3(rb->m_position.x, rb->m_position.y, rb->m_position.z)); btRB->getWorldTransform().setRotation(btQuaternion(rb->m_orientation.x, rb->m_orientation.y, rb->m_orientation.z, rb->m_orientation.w)); btRB->setLinearVelocity(btVector3(rb->m_linearVelocity.x, rb->m_linearVelocity.y, rb->m_linearVelocity.z)); btRB->setAngularVelocity(btVector3(rb->m_angularVelocity.x, rb->m_angularVelocity.y, rb->m_angularVelocity.z)); } }
; A245552: G.f.: Sum_{n>=0} (2*n+1)*x^(n^2+n+1). ; 0,1,0,3,0,0,0,5,0,0,0,0,0,7,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,0,0 lpb $0 mov $$0,$2 add $$0,$0 add $2,2 trn $0,$2 lpe
; A280724: Expansion of 1/(1 - x) + (1/(1 - x)^2)*Sum_{k>=0} x^(3^k). ; 1,2,3,5,7,9,11,13,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,169,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,233,237,241,245 mov $3,3 lpb $0,1 add $1,$0 sub $0,1 add $2,$3 mov $3,0 add $3,$2 mul $2,2 sub $3,2 trn $0,$3 lpe add $1,1
; Ohms Law MODEL P35S SEGMENT CODE start: LBL O ; program O init: RPN ; mode RPN read: ; input R, V and I INPUT R ; IF R=0 THEN GOTO 'R=V/I' x=0? GTO calcR INPUT V ; IF V=0 THEN GOTO 'V=R*I' x=0? GTO calcV calcI: ; I=V/R RCL/ R ; display I STO I VIEW I RTN calcR: ; R=V/I INPUT V INPUT I / ; \:- ; display R STO R VIEW R RTN calcV: ; V=R*I INPUT I RCL* R ; display V STO V VIEW V RTN ENDS END ; CK=F15D ; LN=69
[org 0x7c00] KERNEL_OFFSET equ 0x1000 mov [BOOT_DRIVE], dl mov bp, 0x9000 mov sp, bp call load_kernel call load_pm jmp $ %include 'src/bootloader/bootloader_print.asm' %include 'src/bootloader/bootloader_disk.asm' %include 'src/bootloader/bootloader_gdt.asm' %include 'src/bootloader/bootloader_print32.asm' %include 'src/bootloader/bootloader_loadpm.asm' [bits 16] load_kernel: mov bx, KERNEL_OFFSET mov dh, 45 mov dl, [BOOT_DRIVE] call disk_load ret [bits 32] BEGIN_PM: call KERNEL_OFFSET jmp $ BOOT_DRIVE db 0 times 510-($-$$) db 0 dw 0xAA55
; A117768: Number of Lucas numbers with n digits. ; 4,5,5,5,4,5,5,5,5,4,5,5,5,5,4,5,5,5,4,5,5,5,5,4,5,5,5,5,4,5,5,5,4,5,5,5,5,4,5,5,5,4,5,5,5,5,4,5,5,5,5,4,5,5,5,4,5,5,5,5,4,5,5,5,5,4,5,5,5,4,5,5,5,5,4,5,5,5,5,4,5,5,5,4,5,5,5,5,4,5,5,5,5,4,5,5,5,4,5,5,5,5 mov $9,$0 mov $11,2 lpb $11 clr $0,9 mov $0,$9 sub $11,1 add $0,$11 sub $0,1 mov $2,$0 mov $3,10 mov $5,10 lpb $2 sub $0,2 div $0,5 mul $2,$5 add $0,$2 div $5,2 mul $5,3 add $8,$3 lpb $5 add $0,$8 mov $4,$5 sub $4,2 sub $5,$5 add $6,4 lpe lpb $6 add $0,1 div $0,$4 mov $2,3 mov $5,5 sub $6,5 lpe lpe mov $1,$0 mov $12,$11 lpb $12 mov $10,$1 sub $12,1 lpe lpe lpb $9 mov $9,0 sub $10,$1 lpe mov $1,$10 add $1,4
SilphCo4Object: db $2e ; border block db $7 ; warps db $0, $18, $1, SILPH_CO_3F db $0, $1a, $1, SILPH_CO_5F db $0, $14, $0, SILPH_CO_ELEVATOR db $7, $b, $3, SILPH_CO_10F db $3, $11, $3, SILPH_CO_6F db $f, $3, $4, SILPH_CO_10F db $b, $11, $5, SILPH_CO_10F db $0 ; signs db $7 ; objects object SPRITE_LAPRAS_GIVER, $6, $2, STAY, NONE, $1 ; person object SPRITE_ROCKET, $9, $e, STAY, RIGHT, $2, OPP_ROCKET, $1a object SPRITE_OAK_AIDE, $e, $6, STAY, LEFT, $3, OPP_SCIENTIST, $5 object SPRITE_ROCKET_F, $1a, $a, STAY, UP, $4, OPP_ROCKET_F, $8 object SPRITE_BALL, $3, $9, STAY, NONE, $5, FULL_HEAL object SPRITE_BALL, $4, $7, STAY, NONE, $6, MAX_REVIVE object SPRITE_BALL, $5, $8, STAY, NONE, $7, ESCAPE_ROPE ; warp-to EVENT_DISP SILPH_CO_4F_WIDTH, $0, $18 ; SILPH_CO_3F EVENT_DISP SILPH_CO_4F_WIDTH, $0, $1a ; SILPH_CO_5F EVENT_DISP SILPH_CO_4F_WIDTH, $0, $14 ; SILPH_CO_ELEVATOR EVENT_DISP SILPH_CO_4F_WIDTH, $7, $b ; SILPH_CO_10F EVENT_DISP SILPH_CO_4F_WIDTH, $3, $11 ; SILPH_CO_6F EVENT_DISP SILPH_CO_4F_WIDTH, $f, $3 ; SILPH_CO_10F EVENT_DISP SILPH_CO_4F_WIDTH, $b, $11 ; SILPH_CO_10F
// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved. // Copyright (c) 2022 by Apex.AI Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // SPDX-License-Identifier: Apache-2.0 #ifndef IOX_POSH_POPO_SMART_CHUNK_HPP #define IOX_POSH_POPO_SMART_CHUNK_HPP #include "iceoryx_hoofs/cxx/type_traits.hpp" #include "iceoryx_hoofs/cxx/unique_ptr.hpp" #include "iceoryx_hoofs/log/logger.hpp" #include "iceoryx_posh/mepoo/chunk_header.hpp" namespace iox { namespace popo { namespace internal { /// @brief helper struct for smartChunk template <typename TransmissionInterface, typename T, typename H> struct SmartChunkPrivateData { SmartChunkPrivateData(cxx::unique_ptr<T>&& smartChunkUniquePtr, TransmissionInterface& producer) noexcept; SmartChunkPrivateData(SmartChunkPrivateData&& rhs) noexcept = default; SmartChunkPrivateData& operator=(SmartChunkPrivateData&& rhs) noexcept = default; SmartChunkPrivateData(const SmartChunkPrivateData&) = delete; SmartChunkPrivateData& operator=(const SmartChunkPrivateData&) = delete; ~SmartChunkPrivateData() = default; cxx::unique_ptr<T> smartChunkUniquePtr; std::reference_wrapper<TransmissionInterface> producerRef; }; /// @brief specialization of helper struct for smartChunk for const T template <typename TransmissionInterface, typename T, typename H> struct SmartChunkPrivateData<TransmissionInterface, const T, H> { explicit SmartChunkPrivateData(cxx::unique_ptr<const T>&& smartChunkUniquePtr) noexcept; SmartChunkPrivateData(SmartChunkPrivateData&& rhs) noexcept = default; SmartChunkPrivateData& operator=(SmartChunkPrivateData&& rhs) noexcept = default; SmartChunkPrivateData(const SmartChunkPrivateData&) = delete; SmartChunkPrivateData& operator=(const SmartChunkPrivateData&) = delete; ~SmartChunkPrivateData() = default; cxx::unique_ptr<const T> smartChunkUniquePtr; }; } // namespace internal template <typename TransmissionInterface, typename T, typename H = cxx::add_const_conditionally_t<mepoo::NoUserHeader, T>> class SmartChunk { protected: static_assert(std::is_const<T>::value == std::is_const<H>::value, "The type `T` and the user-header `H` must be equal in their const qualifier to ensure the same " "access restrictions for the user-header as for the smartChunk data!"); /// @brief Helper type to enable the constructor for the producer, i.e. when T has no const qualifier template <typename S, typename TT> using ForProducerOnly = std::enable_if_t<std::is_same<S, TT>::value && !std::is_const<TT>::value, S>; /// @brief Helper type to enable the constructor for the consumer, i.e. when T has a const qualifier template <typename S, typename TT> using ForConsumerOnly = std::enable_if_t<std::is_same<S, TT>::value && std::is_const<TT>::value, S>; /// @brief Helper type to enable some methods only if a user-header is used template <typename R, typename HH> using HasUserHeader = std::enable_if_t<std::is_same<R, HH>::value && !std::is_same<R, mepoo::NoUserHeader>::value, R>; public: /// @brief Constructor for a SmartChunk used by the Producer /// @tparam S is a dummy template parameter to enable the constructor only for non-const T /// @param smartChunkUniquePtr is a `rvalue` to a `cxx::unique_ptr<T>` with to the data of the encapsulated type T /// @param producer is a reference to the producer to be able to use producer specific methods template <typename S = T, typename = ForProducerOnly<S, T>> SmartChunk(cxx::unique_ptr<T>&& smartChunkUniquePtr, TransmissionInterface& producer) noexcept; /// @brief Constructor for a SmartChunk used by the Consumer /// @tparam S is a dummy template parameter to enable the constructor only for const T /// @param smartChunkUniquePtr is a `rvalue` to a `cxx::unique_ptr<T>` with to the data of the encapsulated type T template <typename S = T, typename = ForConsumerOnly<S, T>> explicit SmartChunk(cxx::unique_ptr<T>&& smartChunkUniquePtr) noexcept; ~SmartChunk() noexcept = default; SmartChunk& operator=(SmartChunk&& rhs) noexcept = default; SmartChunk(SmartChunk&& rhs) noexcept = default; SmartChunk(const SmartChunk&) = delete; SmartChunk& operator=(const SmartChunk&) = delete; /// /// @brief Transparent access to the encapsulated type. /// @return a pointer to the encapsulated type. /// T* operator->() noexcept; /// /// @brief Transparent read-only access to the encapsulated type. /// @return a const pointer to the encapsulated type. /// const T* operator->() const noexcept; /// /// @brief Provides a reference to the encapsulated type. /// @return A T& to the encapsulated type. /// T& operator*() noexcept; /// /// @brief Provides a const reference to the encapsulated type. /// @return A const T& to the encapsulated type. /// const T& operator*() const noexcept; /// /// @brief Indicates whether the smartChunk is valid, i.e. refers to allocated memory. /// @return true if the smartChunk is valid, false otherwise. /// explicit operator bool() const noexcept; /// /// @brief Mutable access to the encapsulated type loaned to the smartChunk. /// @return a pointer to the encapsulated type. /// T* get() noexcept; /// /// @brief Read-only access to the encapsulated type loaned to the smartChunk. /// @return a const pointer to the encapsulated type. /// const T* get() const noexcept; /// @brief Helper type to ensure the access to the ChunkHeader has the same const qualifier as the access to the /// smartChunk data using ConditionalConstChunkHeader_t = cxx::add_const_conditionally_t<mepoo::ChunkHeader, T>; /// /// @brief Retrieve the ChunkHeader of the underlying memory chunk loaned to the smartChunk. /// @return The ChunkHeader of the underlying memory chunk. /// ConditionalConstChunkHeader_t* getChunkHeader() noexcept; /// /// @brief Retrieve the ChunkHeader of the underlying memory chunk loaned to the smartChunk. /// @return The const ChunkHeader of the underlying memory chunk. /// const mepoo::ChunkHeader* getChunkHeader() const noexcept; protected: /// @brief Retrieve the user-header of the underlying memory chunk loaned to the SmartChunk. /// @return The user-header of the underlying memory chunk. /// template <typename R = H, typename = HasUserHeader<R, H>> R& getUserHeader() noexcept; /// /// @brief Retrieve the user-header of the underlying memory chunk loaned to the SmartChunk. /// @return The user-header of the underlying memory chunk. /// template <typename R = H, typename = HasUserHeader<R, H>> const R& getUserHeader() const noexcept; /// @note used by the producer to release the chunk ownership from the `SmartChunk` after publishing the chunk and /// therefore preventing the invocation of the custom deleter T* release() noexcept; protected: internal::SmartChunkPrivateData<TransmissionInterface, T, H> m_members; }; } // namespace popo } // namespace iox #include "iceoryx_posh/internal/popo/smart_chunk.inl" #endif
; Decompress RLE compressed data V1.00 2002 Marcel Kilgus ; v.1.01 do not write words/LW to odd addresses section driver xdef pt_derle xref gu_achpp ;+++ ; Decompressed RLE compressed data ; ; RLE header: 0 'RLEx' with x either '1', '2' or '4' (item size in bytes) ; 4 size of uncompressed data ; 8+ compressed data ; ; Algorithm can work on an item size of byte, word and longword (s.above) ; ; The RLE data stream always consists of one byte and some items following. ; If the leading byte is in range of 0<=x<128 then x+1 uncompressed items ; are following the byte. Otherwise the next item is to be taken 257-x ; times. ; ; A new buffer is allocated if a6 was 0 on entering ; ; d0 r < 0 error, > 0 size of data ; a2 c p start of compressed data ; a6 cr address of buffer with uncompressed data ;--- regs reg d1-d3/a0/a2 pt_derle movem.l regs,-(sp) moveq #0,d2 move.l (a2)+,d1 ; ID cmpi.l #'RLE1',d1 beq.s prle_rle addq.w #2,d2 cmpi.l #'RLE2',d1 beq.s prle_rle addq.w #2,d2 cmpi.l #'RLE4',d1 bne.s prle_norle prle_rle move.l a6,d0 ; buffer given? bne.s prle_buffergiven move.l (a2),d0 ; space needed for uncompressed data jsr gu_achpp ; allocated bmi.s prle_exit move.l a0,a6 prle_buffergiven move.l a6,a0 move.l (a2)+,d1 ; uncompressed size move.l d1,-(sp) move.w pt_decomp(pc,d2.w),d2 jsr pt_decomp(pc,d2.w) move.l (sp)+,d0 ; return size of data prle_exit movem.l (sp)+,regs rts prle_norle moveq #0,d0 bra.s prle_exit pt_decomp dc.w prle_1-pt_decomp dc.w prle_2-pt_decomp dc.w prle_4-pt_decomp ; Uncompress byte sized data prle1_loop moveq #0,d0 move.b (a2)+,d0 bmi.s prle1_comp ; compressed data sub.l d0,d1 ; subtract from total data size bcs.s prle_rts ; emergency exit subq.l #1,d1 ; it's x+1 actually prle1_ucloop move.b (a2)+,(a0)+ ; just copy uncompressed data dbf d0,prle1_ucloop bra.s prle_1 prle1_comp move.l #257,d2 sub.l d0,d2 sub.l d2,d1 ; subtract from total size bcs.s prle_rts ; emergency exit subq.l #1,d2 ; dbf loop makes it one less move.b (a2)+,d0 prle1_cloop move.b d0,(a0)+ ; insert item d2 times dbf d2,prle1_cloop prle_1 tst.l d1 bhi.s prle1_loop prle_rts rts ; NOTE : this code necessarily presumed that the processor used is at least ; an 68020 as at some stage there may be word sized MOVEs from odd addresses. ; fixed in 1.01 ; Uncompress 2 byte sized data prle_2 lsr.l #1,d1 ; size in bytes -> size in items bra.s prle2_start prle2_loop moveq #0,d0 move.l a2,d3 ; A2 BEFORE the move.b!!! move.b (a2)+,d0 ; a2 MAY POINT TO ODD ADDRESS after this bmi.s prle2_comp ; compressed data sub.l d0,d1 ; subtract from total data size bcs.s prle_rts ; emergency exit subq.l #1,d1 ; it's x+1 actually btst #0,d3 ; was a2 uneven which means it's now even)? bne.s prle2_ucloop ; no, A2 now is even, use fast loop uneven2 move.b (a2)+,(a0)+ move.b (a2)+,(a0)+ dbf d0,uneven2 ; A2 MAY POINT OT ODD ADDRESS! bra.s prle2_start prle2_ucloop move.w (a2)+,(a0)+ ; just copy uncompressed data dbf d0,prle2_ucloop ; A2 MAY POINT OT ODD ADDRESS! bra.s prle2_start prle2_comp move.l #257,d2 sub.l d0,d2 sub.l d2,d1 ; subtract from total size bcs.s prle_rts ; emergency exit subq.l #1,d2 ; dbf loop makes it one less btst #0,d3 ; A2 pointed to odd address (and now to even)? bne.s iseven21 ; no->.... move.b (a2)+,d0 lsl.w #8,d0 move.b (a2)+,d0 bra.s prle2_cloop iseven21 move.w (a2)+,d0 prle2_cloop move.w d0,(a0)+ ; insert item d2 times dbf d2,prle2_cloop prle2_start tst.l d1 bhi.s prle2_loop rts ; Uncompress 4 byte sized data prle_4 lsr.l #2,d1 ; size in bytes -> size in items bra.s prle4_start prle4_loop moveq #0,d0 move.l a2,d3 move.b (a2)+,d0 bmi.s prle4_comp ; compressed data sub.l d0,d1 ; subtract from total data size bcs prle_rts ; emergency exit subq.l #1,d1 ; it's x+1 actually btst #0,d3 ; was a2 uneven? bne.s prle4_ucloop ; no, use fast loop uneven4 move.b (a2)+,(a0)+ move.b (a2)+,(a0)+ move.b (a2)+,(a0)+ move.b (a2)+,(a0)+ dbf d0,uneven4 ; A2 MAY POINT OT ODD ADDRESS! bra.s prle4_start prle4_ucloop move.l (a2)+,(a0)+ ; just copy uncompressed data dbf d0,prle4_ucloop bra.s prle4_start prle4_comp move.l #257,d2 sub.l d0,d2 sub.l d2,d1 ; subtract from total size bcs prle_rts ; emergency exit subq.l #1,d2 ; dbf loop makes it one less btst #0,d3 ; was A2 uneven bne.s iseven42 move.b (a2)+,d0 swap d0 move.w (a2)+,d0 lsl.l #8,d0 move.b (a2)+,d0 bra.s prle4_cloop iseven42 move.l (a2)+,d0 prle4_cloop move.l d0,(a0)+ ; insert item d2 times dbf d2,prle4_cloop prle4_start tst.l d1 bhi.s prle4_loop rts end
; A132374: Expansion of c(7x^2)/(1-xc(7x^2)), where c(x) is the g.f. of A000108 . ; Submitted by Jamie Morken(s4) ; 1,1,8,15,120,274,2192,5531,44248,118686,949488,2654646,21237168,61189668,489517344,1443039123,11544312984,34648845862,277190766896,844131474530,6753051796240,20813234394492,166505875155936,518373091849502 mov $2,1 mov $3,$0 mov $4,1 mov $5,1 lpb $3 mul $2,$3 div $2,$4 sub $3,1 max $3,1 add $4,1 trn $5,$2 mul $5,7 add $5,$2 lpe mov $0,$5 mul $0,7 sub $0,6
#include "g_local.h" #include "objectives.h" /* ================== CheatsOk ================== */ qboolean CheatsOk( gentity_t *ent ) { if ( !g_cheats->integer ) { gi.SendServerCommand( ent-g_entities, "print \"Cheats are not enabled on this server.\n\""); return qfalse; } if ( ent->health <= 0 ) { gi.SendServerCommand( ent-g_entities, "print \"You must be alive to use this command.\n\""); return qfalse; } return qtrue; } /* ================== ConcatArgs ================== */ char *ConcatArgs( int start ) { int i, c, tlen; static char line[MAX_STRING_CHARS]; int len; char *arg; len = 0; c = gi.argc(); for ( i = start ; i < c ; i++ ) { arg = gi.argv( i ); tlen = strlen( arg ); if ( len + tlen >= MAX_STRING_CHARS - 1 ) { break; } memcpy( line + len, arg, tlen ); len += tlen; if ( i != c - 1 ) { line[len] = ' '; len++; } } line[len] = 0; return line; } /* ================== SanitizeString Remove case and control characters ================== */ void SanitizeString( char *in, char *out ) { while ( *in ) { if ( *in == 27 ) { in += 2; // skip color code continue; } if ( *in < 32 ) { in++; continue; } *out++ = tolower( *in++ ); } *out = 0; } /* ================== ClientNumberFromString Returns a player number for either a number or name string Returns -1 if invalid ================== */ int ClientNumberFromString( gentity_t *to, char *s ) { gclient_t *cl; int idnum; char s2[MAX_STRING_CHARS]; char n2[MAX_STRING_CHARS]; // numeric values are just slot numbers if (s[0] >= '0' && s[0] <= '9') { idnum = atoi( s ); if ( idnum < 0 || idnum >= level.maxclients ) { gi.SendServerCommand( to-g_entities, "print \"Bad client slot: %i\n\"", idnum); return -1; } cl = &level.clients[idnum]; if ( cl->pers.connected != CON_CONNECTED ) { gi.SendServerCommand( to-g_entities, "print \"Client %i is not active\n\"", idnum); return -1; } return idnum; } // check for a name match SanitizeString( s, s2 ); for ( idnum=0,cl=level.clients ; idnum < level.maxclients ; idnum++,cl++ ) { if ( cl->pers.connected != CON_CONNECTED ) { continue; } SanitizeString( cl->pers.netname, n2 ); if ( !strcmp( n2, s2 ) ) { return idnum; } } gi.SendServerCommand( to-g_entities, "print \"User %s is not on the server\n\"", s); return -1; } /* ================== Cmd_Give_f Give items to a client ================== */ void Cmd_Give_f (gentity_t *ent) { char *name; gitem_t *it; int i; qboolean give_all; gentity_t *it_ent; trace_t trace; if ( !CheatsOk( ent ) ) { return; } name = ConcatArgs( 1 ); if (Q_stricmp(name, "all") == 0) give_all = qtrue; else give_all = qfalse; if (give_all || Q_stricmp(gi.argv(1), "health") == 0) { if (gi.argc() == 3) { ent->health = atoi(gi.argv(2)); if (ent->health > ent->client->ps.stats[STAT_MAX_HEALTH]) { ent->health = ent->client->ps.stats[STAT_MAX_HEALTH]; } } else { ent->health = ent->client->ps.stats[STAT_MAX_HEALTH]; } if (!give_all) return; } if (give_all || Q_stricmp(name, "weapons") == 0) { ent->client->ps.stats[STAT_WEAPONS] = (1 << (MAX_PLAYER_WEAPONS+1)) - ( 1 << WP_NONE ); if (!give_all) return; } if ( !give_all && Q_stricmp(gi.argv(1), "weaponnum") == 0 ) { ent->client->ps.stats[STAT_WEAPONS] |= (1 << atoi(gi.argv(2))); return; } if ( Q_stricmp(name, "eweaps") == 0) //for developing, gives you all the weapons, including enemy { ent->client->ps.stats[STAT_WEAPONS] = (unsigned)(1 << WP_NUM_WEAPONS) - ( 1 << WP_NONE ); // NOTE: this wasn't giving the last weapon in the list if (!give_all) return; } if (give_all || Q_stricmp(name, "ammo") == 0) { for ( i = 0 ; i < AMMO_MAX ; i++ ) { ent->client->ps.ammo[i] = ammoData[i].max; } if (!give_all) return; } if (give_all || Q_stricmp(gi.argv(1), "armor") == 0) { if (gi.argc() == 3) ent->client->ps.stats[STAT_ARMOR] = atoi(gi.argv(2)); else ent->client->ps.stats[STAT_ARMOR] = ent->client->ps.stats[STAT_MAX_HEALTH]; if (!give_all) return; } // spawn a specific item right on the player if ( !give_all ) { it = FindItem (name); if (!it) { name = gi.argv(1); it = FindItem (name); if (!it) { gi.SendServerCommand( ent-g_entities, "print \"unknown item\n\""); return; } } it_ent = G_Spawn(); VectorCopy( ent->currentOrigin, it_ent->s.origin ); it_ent->classname = it->classname; G_SpawnItem (it_ent, it); FinishSpawningItem(it_ent ); memset( &trace, 0, sizeof( trace ) ); Touch_Item (it_ent, ent, &trace); if (it_ent->inuse) { G_FreeEntity( it_ent ); } } } /* ================== Cmd_God_f Sets client to godmode argv(0) god ================== */ void Cmd_God_f (gentity_t *ent) { char *msg; if ( !CheatsOk( ent ) ) { return; } ent->flags ^= FL_GODMODE; if (!(ent->flags & FL_GODMODE) ) msg = "godmode OFF\n"; else msg = "godmode ON\n"; gi.SendServerCommand( ent-g_entities, "print \"%s\"", msg); } /* ================== Cmd_Undying_f Sets client to undead mode argv(0) undying ================== */ void Cmd_Undying_f (gentity_t *ent) { char *msg; if ( !CheatsOk( ent ) ) { return; } ent->flags ^= FL_UNDYING; if (!(ent->flags & FL_UNDYING) ) { msg = "undead mode OFF\n"; } else { msg = "undead mode ON\n"; ent->health = ent->max_health = 999; if ( ent->client ) { ent->client->ps.stats[STAT_HEALTH] = ent->client->ps.stats[STAT_MAX_HEALTH] = 999; } } gi.SendServerCommand( ent-g_entities, "print \"%s\"", msg); } /* ================== Cmd_Notarget_f Sets client to notarget argv(0) notarget ================== */ void Cmd_Notarget_f( gentity_t *ent ) { char *msg; if ( !CheatsOk( ent ) ) { return; } ent->flags ^= FL_NOTARGET; if (!(ent->flags & FL_NOTARGET) ) msg = "notarget OFF\n"; else msg = "notarget ON\n"; gi.SendServerCommand( ent-g_entities, "print \"%s\"", msg); } /* ================== Cmd_Noclip_f argv(0) noclip ================== */ void Cmd_Noclip_f( gentity_t *ent ) { char *msg; if ( !CheatsOk( ent ) ) { return; } if ( ent->client->noclip ) { msg = "noclip OFF\n"; } else { msg = "noclip ON\n"; } ent->client->noclip = !ent->client->noclip; gi.SendServerCommand( ent-g_entities, "print \"%s\"", msg); } /* ================== Cmd_LevelShot_f This is just to help generate the level pictures for the menus. It goes to the intermission immediately and sends over a command to the client to resize the view, hide the scoreboard, and take a special screenshot ================== */ void Cmd_LevelShot_f( gentity_t *ent ) { if ( !CheatsOk( ent ) ) { return; } gi.SendServerCommand( ent-g_entities, "clientLevelShot" ); } /* ================= Cmd_Kill_f ================= */ void Cmd_Kill_f( gentity_t *ent ) { if( ( level.time - ent->client->respawnTime ) < 5000 ) { gi.SendServerCommand( ent-g_entities, "cp \"Only one kill every five seconds\n\""); return; } ent->flags &= ~FL_GODMODE; ent->client->ps.stats[STAT_HEALTH] = ent->health = 0; player_die (ent, ent, ent, 100000, MOD_SUICIDE); } /* ================== Cmd_Where_f ================== */ void Cmd_Where_f( gentity_t *ent ) { const char *s = gi.argv(1); const len = strlen(s); gentity_t *check; if ( gi.argc () < 2 ) { gi.Printf("usage: where classname\n"); return; } for (int i = 0; i < globals.num_entities; i++) { check = &g_entities[i]; if(!check || !check->inuse) { continue; } if (!Q_stricmpn(s, check->classname, len) ) { gi.SendServerCommand( ent-g_entities, "print \"%s %s\n\"", check->classname, vtos( check->s.pos.trBase ) ); } } } /* ------------------------- UserSpawn ------------------------- */ extern qboolean G_CallSpawn( gentity_t *ent ); void UserSpawn( gentity_t *ent, const char *name ) { vec3_t origin; vec3_t vf; vec3_t angles; gentity_t *ent2; //Spawn the ent ent2 = G_Spawn(); ent2->classname = G_NewString( name ); //FIXME: This will leave floating memory... //TODO: This should ultimately make sure this is a safe spawn! //Spawn the entity and place it there VectorSet( angles, 0, ent->s.apos.trBase[YAW], 0 ); AngleVectors( angles, vf, NULL, NULL ); VectorMA( ent->s.pos.trBase, 96, vf, origin ); //FIXME: Find the radius size of the object, and push out 32 + radius origin[2] += 8; VectorCopy( origin, ent2->s.pos.trBase ); VectorCopy( origin, ent2->s.origin ); VectorCopy( ent->s.apos.trBase, ent2->s.angles ); gi.linkentity( ent2 ); //Find a valid spawning spot if ( G_CallSpawn( ent2 ) == qfalse ) { gi.SendServerCommand( ent-g_entities, "print \"Failed to spawn '%s'\n\"", name ); G_FreeEntity( ent2 ); return; } } /* ------------------------- Cmd_Spawn ------------------------- */ void Cmd_Spawn( gentity_t *ent ) { char *name; name = ConcatArgs( 1 ); gi.SendServerCommand( ent-g_entities, "print \"Spawning '%s'\n\"", name ); UserSpawn( ent, name ); } /* ================= Cmd_SetViewpos_f ================= */ void Cmd_SetViewpos_f( gentity_t *ent ) { vec3_t origin, angles; int i; if ( !g_cheats->integer ) { gi.SendServerCommand( ent-g_entities, va("print \"Cheats are not enabled on this server.\n\"")); return; } if ( gi.argc() != 5 ) { gi.SendServerCommand( ent-g_entities, va("print \"usage: setviewpos x y z yaw\n\"")); return; } VectorClear( angles ); for ( i = 0 ; i < 3 ; i++ ) { origin[i] = atof( gi.argv( i+1 ) ); } angles[YAW] = atof( gi.argv( 4 ) ); TeleportPlayer( ent, origin, angles, STARFLEET_TELEPORT_FX ); } /* ================= Cmd_SetObjective_f ================= */ void Cmd_SetObjective_f( gentity_t *ent ) { int objectiveI,status,displayStatus; if ( gi.argc() != 4 ) { gi.SendServerCommand( ent-g_entities, va("print \"usage: setobjective <objective #> <display status> <status>\n\"")); return; } if ( !CheatsOk( ent ) ) { return; } objectiveI = atoi(gi.argv(1)); displayStatus = atoi(gi.argv(2)); status = atoi(gi.argv(3)); ent->client->sess.mission_objectives[objectiveI].display = displayStatus; ent->client->sess.mission_objectives[objectiveI].status = status; } /* ================= Cmd_ViewObjective_f ================= */ void Cmd_ViewObjective_f( gentity_t *ent ) { int objectiveI; if ( gi.argc() != 2 ) { gi.SendServerCommand( ent-g_entities, va("print \"usage: viewobjective <objective #>\n\"")); return; } objectiveI = atoi(gi.argv(1)); gi.SendServerCommand( ent-g_entities, va("print \"Objective %d Display Status(1=show): %d Status:%d\n\"",objectiveI,ent->client->sess.mission_objectives[objectiveI].display,ent->client->sess.mission_objectives[objectiveI].status)); } /* ================= ClientCommand ================= */ void ClientCommand( int clientNum ) { gentity_t *ent; char *cmd; ent = g_entities + clientNum; if ( !ent->client ) { return; // not fully in game yet } cmd = gi.argv(0); if (Q_stricmp (cmd, "spawn") == 0) { Cmd_Spawn( ent ); return; } if (Q_stricmp (cmd, "give") == 0) Cmd_Give_f (ent); else if (Q_stricmp (cmd, "god") == 0) Cmd_God_f (ent); else if (Q_stricmp (cmd, "undying") == 0) Cmd_Undying_f (ent); else if (Q_stricmp (cmd, "notarget") == 0) Cmd_Notarget_f (ent); else if (Q_stricmp (cmd, "noclip") == 0) Cmd_Noclip_f (ent); else if (Q_stricmp (cmd, "kill") == 0) Cmd_Kill_f (ent); else if (Q_stricmp (cmd, "levelshot") == 0) Cmd_LevelShot_f (ent); else if (Q_stricmp (cmd, "where") == 0) Cmd_Where_f (ent); else if (Q_stricmp (cmd, "setviewpos") == 0) Cmd_SetViewpos_f( ent ); else if (Q_stricmp (cmd, "setobjective") == 0) Cmd_SetObjective_f( ent ); else if (Q_stricmp (cmd, "viewobjective") == 0) Cmd_ViewObjective_f( ent ); }
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "bgp/bgp_session.h" #include <algorithm> #include "base/logging.h" #include "base/parse_object.h" #include "bgp/bgp_log.h" #include "bgp/bgp_peer.h" #include "bgp/bgp_session_manager.h" #include "bgp/scheduling_group.h" using namespace std; using boost::asio::mutable_buffer; // Extract the total BGP message length. This is a 2 byte field after the // 16 byte marker. If the buffer doesn't have 18 bytes available return -1. int BgpMessageReader::MsgLength(Buffer buffer, int offset) { size_t size = TcpSession::BufferSize(buffer); int remain = size - offset; if (remain < BgpMessageReader::kHeaderLenSize) { return -1; } const uint8_t *data = TcpSession::BufferData(buffer) + offset; data += 16; int length = get_value(data, 2); return length; } BgpMessageReader::BgpMessageReader(TcpSession *session, ReceiveCallback callback) : TcpMessageReader(session, callback) { } BgpMessageReader::~BgpMessageReader() { } BgpSession::BgpSession(BgpSessionManager *session, Socket *socket) : TcpSession(session, socket), peer_(NULL), reader_(new BgpMessageReader(this, boost::bind(&BgpSession::ReceiveMsg, this, _1, _2))) { } BgpSession::~BgpSession() { } // // Handle write ready callback. // // 1. Tell SchedulingGroupManager that the IPeer is send ready. // 2. Tell BgpPeer that it's send ready so that it can resume Keepalives. // // We can ignore any errors since the StateMachine will get informed of the // TcpSession close independently and react to it. // void BgpSession::WriteReady(const boost::system::error_code &error) { if (error || !peer_) return; BgpServer *server = peer_->server(); SchedulingGroupManager *sg_mgr = server->scheduling_group_manager(); sg_mgr->SendReady(peer_); peer_->SetSendReady(); } int BgpSession::GetSessionInstance() const { return peer_->GetIndex(); } void BgpSession::SendNotification(int code, int subcode, const std::string &data) { BgpProto::Notification msg; msg.error = code; msg.subcode = subcode; msg.data = data; uint8_t buf[256]; int result = BgpProto::Encode(&msg, buf, sizeof(buf)); assert(result > BgpProto::kMinMessageSize); // Use SYS_DEBUG for connection collision, SYS_NOTICE for the rest. SandeshLevel::type log_level; if (code == BgpProto::Notification::Cease && subcode == BgpProto::Notification::ConnectionCollision) { log_level = SandeshLevel::SYS_DEBUG; } else { log_level = SandeshLevel::SYS_NOTICE; } BGP_LOG(BgpPeerNotification, log_level, BGP_LOG_FLAG_ALL, peer_ ? peer_->ToUVEKey() : ToString(), BGP_PEER_DIR_OUT, code, subcode, msg.ToString()); Send(buf, result, NULL); }
; ; QSORT - compiled, then hand-adjusted ; Stefano, 29/10/2010 ; ; $Id: qsort_callee.asm,v 1.4 2016-03-04 23:48:13 dom Exp $ ; ; Original code taken from the BDS C by Leor Zolman ; ;void qsort(char *base, unsigned int nel, unsigned int width, void *compar) ;{ int i, j; ; unsigned gap, ngap, t1; ; int jd, t2; ; ; t1 = nel * width; ; for (ngap = nel / 2; ngap > 0; ngap /= 2) { ; gap = ngap * width; ; t2 = gap + width; ; jd = (unsigned int) base + gap; ; for (i = t2; i <= t1; i += width) ; for (j = i - t2; j >= 0; j -= gap) { ; if ((*compar)(base+j, jd+j) <=0) break; ; memswap(base+j, jd+j, width); ; } ; } ;} PUBLIC qsort_sdcc_callee PUBLIC _qsort_sdcc_callee PUBLIC qsort_sdcc_enter EXTERN l_mult EXTERN l_le EXTERN memswap_callee .qsort_sdcc_callee ._qsort_sdcc_callee pop af pop bc exx pop hl pop de pop bc exx push af qsort_sdcc_enter: push bc exx ex (sp),ix call asm_qsort pop ix ret asm_qsort: push de ; ngap push hl ;width ld (_base),bc ; t1 = nel * width; call l_mult ld (_t1),hl ; for (ngap = nel / 2; ngap > 0; ngap /= 2) { .i_3 pop de ; width pop hl ; ngap srl h ; _ngap/2 ..bit rotation rr l ld a,h or l ret z push hl ; ngap push de ; width ; gap = ngap * width; ;ld d,h ;ld e,l ;ld hl,(_width) call l_mult ld (_gap),hl ; t2 = gap + width; pop de push de push hl ;ex de,hl ;ld hl,(_width) add hl,de ld (_t2),hl ; jd = (unsigned int) base + gap; ld de,(_base) ex (sp),hl ; retrieve 'gap' add hl,de ld (_jd),hl pop hl ; t2 jr i_8 .i_6 ld de,(_i) pop hl push hl ;ld hl,(_width) add hl,de ;ld (_i),hl ; for (i = t2 .... .i_8 ld (_i),hl ld de,(_t1) ex de,hl call l_le jr nc,i_3 ; for (j = i - t2.. ld de,(_i) ld hl,(_t2) .i_11 ex de,hl ; same subtraction is used twice in the for loop and a sbc hl,de ld (_j),hl ; for ..; j>0; .. jp m,i_6 push ix ; 1st arg: jd+j push hl ld de,(_jd) add hl,de ex (sp),hl ; 2nd arg: base+j ld de,(_base) add hl,de push hl ld bc,ret_addr push bc jp (ix) ; compare function .ret_addr pop de ; we're keeping the same args for the next call ! pop bc pop ix ; if ((*compar)(base+j, jd+j) <=0) break; dec hl bit 7,h jr nz,i_6 ; Negative sign ? exit loop pop hl ; width push hl push de ; 1st arg: base+j push bc ; 2nd arg: jd+j push hl ; width call memswap_callee ; for ... j -= gap) ld de,(_j) ld hl,(_gap) jr i_11 SECTION bss_clib ._i defs 2 ._j defs 2 ._t1 defs 2 ._t2 defs 2 ._jd defs 2 ;._width defs 2 ._base defs 2 ; ._ngap defs 2 ._gap defs 2
#include <cstdio> #include <cmath> using namespace std; int N; char c; int main() { scanf("%d %c", &N, &c); int h = round(N / 2.0); for (int i = 0; i < h; i++) { for (int j = 0; j < N; j++) printf("%c", c); if (i != h - 1) printf("\n"); } return 0; }
; A184653: floor(n*s+h-h*s), where s=(3+sqrt(3))/2, h=-1/2; complement of A184638. ; 3,5,7,10,12,14,17,19,21,24,26,29,31,33,36,38,40,43,45,48,50,52,55,57,59,62,64,66,69,71,74,76,78,81,83,85,88,90,92,95,97,100,102,104,107,109,111,114,116,118,121,123,126,128,130,133,135,137,140,142,145,147,149,152,154,156,159,161,163,166,168,171,173,175,178,180,182,185,187,189,192,194,197,199,201,204,206,208,211,213,215,218,220,223,225,227,230 mov $3,$0 add $3,1 mov $7,$0 lpb $3 mov $0,$7 sub $3,1 sub $0,$3 mov $10,2 mov $11,$0 lpb $10 sub $10,1 add $0,$10 sub $0,1 mov $2,$0 mov $6,1 lpb $2 sub $5,1 lpb $6 add $6,2 mov $5,$6 trn $6,$2 lpe sub $2,1 add $5,31 lpe mov $4,$5 div $4,82 mov $5,$4 mov $9,$10 lpb $9 mov $8,$5 sub $9,1 lpe lpe lpb $11 sub $8,$5 mov $11,0 lpe mov $5,$8 add $5,2 add $1,$5 lpe add $1,1
;======================================= ; ; MSU-1 Enhanced Audio Patch ; Zelda no Densetsu - Kamigami no Triforce ; Modified for VT Randomizer ; ; Author: qwertymodo ; ; Track List: ; ; 1 - Title ~ Link to the Past ; 2 - Hyrule Field ; 3 - Time of Falling Rain ; 4 - The Silly Pink Rabbit ; 5 - Forest of Mystery ; 6 - Seal of Seven Maidens ; 7 - Kakariko Village ; 8 - Dimensional Shift (Mirror) ; 9 - Dark Golden Land ; 10 - Unsealing the Master Sword ; 11 - Beginning of the Journey ; 12 - Soldiers of Kakariko Village ; 13 - Black Mist ; 14 - Guessing Game House ; 15 - Dark Woods ; 16 - Majestic Castle ; 17 - Lost Ancient Ruins ; 18 - Dank Dungeons ; 19 - Great Victory! ; 20 - Safety in the Sanctuary ; 21 - Anger of the Guardians ; 22 - Dungeon of Shadows ; 23 - Fortune Teller ; 24 - Dank Dungeons (Copy) ; 25 - Princess Zelda's Rescue ; 26 - Meeting the Maidens ; 27 - The Goddess Appears ; 28 - Priest of the Dark Order ; 29 - Release of Ganon ; 30 - Ganon's Message ; 31 - The Prince of Darkness ; 32 - Power of the Gods ; 33 - Epilogue ~ Beautiful Hyrule ; 34 - Staff Roll ; ; Dungeon-specific tracks ; ; 35 - Eastern Palace ; 36 - Desert Palace ; 37 - Agahnim's Tower ; 38 - Swamp Palace ; 39 - Palace of Darkness ; 40 - Misery Mire ; 41 - Skull Woods ; 42 - Ice Palace ; 43 - Tower of Hera ; 44 - Thieves' Town ; 45 - Turtle Rock ; 46 - Ganon's Tower ; 59 - Ganon's Tower (Upstairs) ; ; Bosses ; ; 47 - Eastern Palace ; 48 - Desert Palace ; 49 - Agahnim's Tower ; 50 - Swamp Palace ; 51 - Palace of Darkness ; 52 - Misery Mire ; 53 - Skull Woods ; 54 - Ice Palace ; 55 - Tower of Hera ; 56 - Thieves' Town ; 57 - Turtle Rock ; 58 - Ganon's Tower ; ; Additional tracks ; ; 60 - Light World OW (after ped pull) ; 61 - Dark World OW (with all crystals) ; ;======================================= !REG_MSU_STATUS = $2000 !REG_MSU_ID_0 = $2002 !REG_MSU_ID_1 = $2003 !REG_MSU_ID_2 = $2004 !REG_MSU_ID_3 = $2005 !REG_MSU_ID_4 = $2006 !REG_MSU_ID_5 = $2007 !REG_MSU_ID_01 = $2002 !REG_MSU_ID_23 = $2004 !REG_MSU_ID_45 = $2006 !VAL_MSU_ID_0 = #$53 ; 'S' !VAL_MSU_ID_1 = #$2D ; '-' !VAL_MSU_ID_2 = #$4D ; 'M' !VAL_MSU_ID_3 = #$53 ; 'S' !VAL_MSU_ID_4 = #$55 ; 'U' !VAL_MSU_ID_5 = #$31 ; '1' !VAL_MSU_ID_01 = #$2D53 ; 'S-' !VAL_MSU_ID_23 = #$534D ; 'MS' !VAL_MSU_ID_45 = #$3155 ; 'U1' !REG_MSU_TRACK = $2004 !REG_MSU_TRACK_LO = $2004 !REG_MSU_TRACK_HI = $2005 !REG_MSU_VOLUME = $2006 !REG_MSU_CONTROL = $2007 !FLAG_MSU_PLAY = #$01 !FLAG_MSU_REPEAT = #$02 !FLAG_MSU_STATUS_TRACK_MISSING = #$08 !FLAG_MSU_STATUS_AUDIO_PLAYING = #$10 !FLAG_MSU_STATUS_AUDIO_REPEATING = #$20 !FLAG_MSU_STATUS_AUDIO_BUSY = #$40 !FLAG_MSU_STATUS_DATA_BUSY = #$80 !REG_CURRENT_MSU_TRACK = $010B !REG_CURRENT_VOLUME = $0127 !REG_TARGET_VOLUME = $0129 !REG_CURRENT_TRACK = $0130 !REG_CURRENT_COMMAND = $0133 !REG_SPC_CONTROL = $2140 !REG_NMI_FLAGS = $4210 !VAL_COMMAND_STOP_PLAYBACK = #$F0 !VAL_COMMAND_FADE_OUT = #$F1 !VAL_COMMAND_FADE_HALF = #$F2 !VAL_COMMAND_FULL_VOLUME = #$F3 !VAL_COMMAND_MUTE_SPC = #$FA !VAL_COMMAND_UNMUTE_SPC = #$FB !VAL_COMMAND_LOAD_NEW_BANK = #$FF !VAL_VOLUME_INCREMENT = #$10 !VAL_VOLUME_DECREMENT = #$02 !VAL_VOLUME_HALF = #$80 !VAL_VOLUME_FULL = #$FF ;================================================================================ ; Extended OST/SPC fallback, decide which track to actually play ;-------------------------------------------------------------------------------- CheckMusicLoadRequest: PHP : REP #$10 : PHA : PHX : PHY LDA !REG_MUSIC_CONTROL_REQUEST : BEQ .skip+3 : BMI .skip+3 CMP !REG_CURRENT_COMMAND : BNE .continue CMP.b #22 : BNE .skip ; Check GT when mirroring from upstairs LDA !REG_CURRENT_MSU_TRACK : CMP.b #59 : BNE .skip LDA.b #$00 : STA !REG_CURRENT_COMMAND BRA .continue .skip LDA !REG_MUSIC_CONTROL_REQUEST STA !REG_MUSIC_CONTROL : STZ !REG_MUSIC_CONTROL_REQUEST PLY : PLX : PLA : PLP RTL .continue LDA TournamentSeed : BNE +++ LDA !REG_MSU_PACK_REQUEST CMP !REG_MSU_PACK_CURRENT : BEQ +++ CMP !REG_MSU_PACK_COUNT : !BLT ++ CMP #$FE : !BLT + STA !REG_MSU_PACK_CURRENT SEP #$10 LDA #$00 LDX #$07 - STA !REG_MSU_FALLBACK_TABLE,X DEX : BPL - REP #$10 BRA +++ + : LDA !REG_MSU_PACK_CURRENT : STA !REG_MSU_PACK_REQUEST ++ : STA !REG_MSU_PACK_CURRENT JSL MSUInit_check_fallback +++ LDA !REG_MUSIC_CONTROL_REQUEST : CMP #$08 : BEQ ++ ; Mirror SFX is not affected by NoBGM or pack $FE LDA NoBGM : BNE + LDA !REG_MSU_PACK_CURRENT : CMP #$FE : BNE ++ + : BRL .mute ++ LDX !REG_MSU_ID_01 : CPX !VAL_MSU_ID_01 : BEQ + - : BRL .unmute + LDX !REG_MSU_ID_23 : CPX !VAL_MSU_ID_23 : BNE - LDX !REG_MSU_ID_45 : CPX !VAL_MSU_ID_45 : BNE - SEP #$10 ; Load alternate or dungeon-specific tracks LDA !REG_MUSIC_CONTROL_REQUEST CMP.b #02 : BEQ .lightworld CMP.b #09 : BEQ .darkworld CMP.b #13 : BEQ .darkwoods CMP.b #15 : BEQ .darkwoods CMP.b #16 : BEQ .castle CMP.b #17 : BEQ .dungeon CMP.b #22 : BEQ .dungeon CMP.b #21 : BNE .check_fallback ;.boss LDA $040C : LSR : !ADD.b #45 BRA .check_fallback-3 .lightworld PHA LDA $7EF300 : AND.b #$40 : BEQ + PLA LDA.b #60 : BRA .check_fallback-3 + -- : PLA : BRA .check_fallback-3 .darkworld PHA LDA $7EF37A : CMP.b #$7F : BNE -- - : PLA LDA.b #61 : BRA .check_fallback-3 .darkwoods PHA LDA $7EF37A : CMP.b #$7F : BEQ - LDA $7EF3CA : BEQ -- LDA $8A : CMP #$40 : BNE -- PLA LDA.b #15 : BRA .check_fallback-3 .castle LDA $040C CMP.b #$08 : BNE .check_fallback ; Hyrule Castle 2 .dungeon LDA $040C : LSR : !ADD.b #33 : STA !REG_MUSIC_CONTROL_REQUEST .check_fallback LDX !REG_MUSIC_CONTROL_REQUEST LDA MusicShuffleTable-1,X : DEC : PHA AND.b #$07 : TAY PLA : LSR #3 : TAX LDA !REG_MSU_FALLBACK_TABLE,X : BEQ .secondary_fallback : CMP.b #$FF : BEQ .mute - : CPY #$00 : BEQ + LSR : DEY : BRA - + AND.b #$01 : BEQ .secondary_fallback .mute LDA.b !VAL_COMMAND_MUTE_SPC BRA .load .secondary_fallback LDX !REG_MUSIC_CONTROL_REQUEST : LDA MSUExtendedFallbackList-1,X PHX TAX : LDA MusicShuffleTable-1,X PLX CMP !REG_MUSIC_CONTROL_REQUEST : BEQ .unmute CPX #35 : !BLT + CPX #47 : !BLT .dungeon_fallback + STA !REG_MUSIC_CONTROL_REQUEST BRA .check_fallback .dungeon_fallback PHB : REP #$10 LDX $040C LDA.b #Music_Eastern>>16 : PHA : PLB ; Set bank to music pointers LDY $00 : PHY REP #$20 LDA MSUDungeonFallbackList,X : STA $00 SEP #$20 LDA ($00) PLY : STY $00 : SEP #$10 : PLB TAX : LDA MusicShuffleTable-1,X STA !REG_MUSIC_CONTROL_REQUEST BRL .check_fallback .unmute LDA.b !VAL_COMMAND_UNMUTE_SPC .load REP #$10 STZ $4200 STA !REG_SPC_CONTROL - : CMP !REG_SPC_CONTROL : BNE - ; Wait until mute/unmute command is ACK'ed STZ !REG_SPC_CONTROL - : LDA !REG_SPC_CONTROL : BNE - ; Wait until mute/unmute command is completed LDA.b #$81 : STA $4200 LDA !REG_MUSIC_CONTROL_REQUEST : CMP.b #08 : BEQ .done+3 ; No SFX during warp track LDA $10 CMP.b #$07 : BEQ .sfx_indoors CMP.b #$0E : BEQ .sfx_indoors CMP.b #$09 : BNE .done .sfx_outdoors SEP #$10 LDX.b #$09 LDA $8A ; Dark Death Mountain CMP.b #$43 : BEQ + : CMP.b #$45 : BEQ + : CMP.b #$47 : BEQ + LDX.b #$05 + CMP.b #$70 : BNE + ; Misery Mire LDA $7EF2F0 : AND.b #$20 : BEQ .rain + LDA $7EF3C5 : CMP.b #$02 : BCS + .rain LDX.b #$01 + STX $012D REP #$10 .done LDA !REG_MUSIC_CONTROL_REQUEST : STA !REG_MUSIC_CONTROL : STZ !REG_MUSIC_CONTROL_REQUEST PLY : PLX : PLA : PLP RTL .sfx_indoors LDA !REG_MUSIC_CONTROL_REQUEST : STA !REG_MUSIC_CONTROL : STZ !REG_MUSIC_CONTROL_REQUEST PLY : PLX : PLA : PLP LDA.b #$05 : STA $012D JML Module_PreDungeon_setAmbientSfx ;-------------------------------------------------------------------------------- ;================================================================================ ; Fade out music if we're changing tracks on a stair transition ;-------------------------------------------------------------------------------- SpiralStairsPreCheck: REP #$20 ; thing we wrote over LDA $A0 CMP.w #$000C : BNE + LDA !REG_CURRENT_MSU_TRACK : AND.w #$00FF : CMP.w #59 : BNE .done BRA .fade + CMP.w #$006B : BNE .done+2 LDA TournamentSeed : CMP.w #$0001 : BEQ + LDA !REG_MSU_ID_01 : CMP !VAL_MSU_ID_01 : BNE .done LDA !REG_MSU_ID_23 : CMP !VAL_MSU_ID_23 : BNE .done LDA !REG_MSU_ID_45 : CMP !VAL_MSU_ID_45 : BNE .done + LDA $7EF366 : AND.w #$0004 : BEQ .done ; Check that we have the GT big key LDA !REG_MSU_FALLBACK_TABLE+7 : AND.w #$0004 : BEQ .done ; Check that we have the extended track .fade LDX.b #$F1 : STX !REG_MUSIC_CONTROL_REQUEST .done LDA $A0 ; thing we wrote over RTL ;-------------------------------------------------------------------------------- ;================================================================================ ; Change music on stair transition (ToH/GT) ;-------------------------------------------------------------------------------- SpiralStairsPostCheck: LDA $A0 CMP.w #$000C : BNE + ; Ganon's tower entrance LDX $0130 : CPX.b #$F1 : BNE .done ; Check that we were fading out LDX #22 : STX !REG_MUSIC_CONTROL_REQUEST BRA .done + CMP.w #$006B : BNE .done ; Ganon's tower upstairs (with big key) LDX $0130 : CPX.b #$F1 : BNE .done ; Check that we were fading out LDX #59 : STX !REG_MUSIC_CONTROL_REQUEST .done LDX.b #$1C : LDA $A0 ; thing we wrote over RTL ;-------------------------------------------------------------------------------- ;================================================================================ ; Make sure expanded OST tracks load properly after death/fairy revival ;-------------------------------------------------------------------------------- StoreMusicOnDeath: STA.l $7EC227 ; thing we wrote over LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_AUDIO_PLAYING : BEQ .done LDA !REG_CURRENT_MSU_TRACK : STA.l $7EC227 .done RTL ;-------------------------------------------------------------------------------- ;================================================================================ ; Check if MSU-1 is enabled and scan for missing tracks ;-------------------------------------------------------------------------------- MSUInit: PHP LDA NoBGM : BNE .done REP #$20 LDA !REG_MSU_ID_01 : CMP !VAL_MSU_ID_01 : BNE .done LDA !REG_MSU_ID_23 : CMP !VAL_MSU_ID_23 : BNE .done LDA !REG_MSU_ID_45 : CMP !VAL_MSU_ID_45 : BNE .done ; Count the number of available MSU-1 packs LDA.w #$0000 LDX.b #$FF LDY.b #$01 SEP #$20 .check_pack TYA REP #$20 STA !REG_MSU_TRACK !ADD.w #100 INX SEP #$20 TAY .wait_pack LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_AUDIO_BUSY : BNE .wait_pack LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_TRACK_MISSING : BEQ .check_pack TXA : STA !REG_MSU_PACK_COUNT BRA + ; Check the current MSU-1 pack for tracks that require SPC fallback .check_fallback PHP : SEP #$10 LDA NoBGM : BNE .done + : LDA.b #64 LDX.b #7 LDY.b #7 .check_track STA !REG_MSU_TRACK_LO STZ !REG_MSU_TRACK_HI PHA CLC .wait_track LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_AUDIO_BUSY : BNE .wait_track LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_TRACK_MISSING : BNE + SEC + LDA !REG_MSU_FALLBACK_TABLE,X : ROL : STA !REG_MSU_FALLBACK_TABLE,X DEY : BPL .next_track DEX : BPL + PLA .done PLP RTL + LDY.b #7 .next_track PLA : DEC BRA .check_track ;-------------------------------------------------------------------------------- ;================================================================================ ; Play MSU-1 audio track ;-------------------------------------------------------------------------------- MSUMain: SEP #$20 ; set 8-BIT accumulator LDA $4210 ; thing we wrote over REP #$20 ; set 16-BIT accumulator LDA !REG_MSU_ID_01 : CMP !VAL_MSU_ID_01 : BEQ .continue .nomsu SEP #$30 JML SPCContinue .continue LDA !REG_MSU_ID_23 : CMP !VAL_MSU_ID_23 : BNE .nomsu LDA !REG_MSU_ID_45 : CMP !VAL_MSU_ID_45 : BNE .nomsu SEP #$30 LDX !REG_MUSIC_CONTROL : BEQ + BRL .command_ff + LDA !REG_MSU_DELAYED_COMMAND : BEQ .do_fade .check_busy LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_AUDIO_BUSY : BEQ .ready JML SPCContinue .ready LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_TRACK_MISSING : BEQ .start JML SPCContinue .start LDA !VAL_VOLUME_FULL STA !REG_TARGET_VOLUME STA !REG_CURRENT_VOLUME STA !REG_MSU_VOLUME LDA !REG_CURRENT_MSU_TRACK : DEC : PHA AND.b #$07 : TAY PLA : LSR #3 : TAX LDA !REG_MSU_FALLBACK_TABLE,X : BEQ +++ : CMP.b #$FF : BEQ ++ - : CPY #$00 : BEQ + LSR : DEY : BRA - + AND.b #$01 : BEQ +++ ++ : LDA !REG_MSU_DELAYED_COMMAND +++ : STA !REG_MSU_CONTROL LDA.b #$00 STA !REG_MSU_DELAYED_COMMAND JML SPCContinue .do_fade: LDA !REG_CURRENT_VOLUME : CMP !REG_TARGET_VOLUME : BNE + JML SPCContinue + : BCC .increment .decrement SBC !VAL_VOLUME_DECREMENT : BCC .mute CMP !REG_TARGET_VOLUME : !BGE .set LDA !REG_TARGET_VOLUME : BRA .set .mute STZ !REG_CURRENT_VOLUME STZ !REG_MSU_CONTROL BRA .set .increment ADC !VAL_VOLUME_INCREMENT : BCS .max CMP !REG_TARGET_VOLUME : !BLT .set LDA !REG_TARGET_VOLUME : BRA .set .max LDA !VAL_VOLUME_FULL .set STA !REG_CURRENT_VOLUME STA !REG_MSU_VOLUME JML SPCContinue .command_ff: CPX !VAL_COMMAND_LOAD_NEW_BANK : BNE .command_f3 JML SPCContinue .command_f3: CPX !VAL_COMMAND_FULL_VOLUME : BNE .command_f2 LDA !VAL_VOLUME_FULL STA !REG_TARGET_VOLUME JML SPCContinue .command_f2: CPX !VAL_COMMAND_FADE_HALF : BNE .command_f1 LDA !VAL_VOLUME_HALF STA !REG_TARGET_VOLUME JML SPCContinue .command_f1: CPX !VAL_COMMAND_FADE_OUT : BNE .command_f0 STZ !REG_TARGET_VOLUME STZ !REG_CURRENT_MSU_TRACK JML SPCContinue .command_f0: CPX !VAL_COMMAND_STOP_PLAYBACK : !BLT .load_track CPX !VAL_COMMAND_MUTE_SPC : BEQ + ; Don't allow executing the mute/umute CPX !VAL_COMMAND_UNMUTE_SPC : BNE ++ ; commands during NMI like this + : LDA.b #$00 : STA !REG_MUSIC_CONTROL ++ : JML SPCContinue .load_track: CPX !REG_CURRENT_MSU_TRACK : BNE + - : CPX #27 : BEQ + TXA BRA .done+1 + CPX !REG_CURRENT_COMMAND : BEQ - LDA.b #$00 : XBA LDA !REG_MSU_PACK_CURRENT : BEQ + - : CMP !REG_MSU_PACK_COUNT : !BLT + !SUB !REG_MSU_PACK_COUNT : BRA - + PHX : PHA : TXA : PLX REP #$20 BEQ + - !ADD.w #100 DEX : BNE - + STA !REG_MSU_TRACK SEP #$20 STZ !REG_MSU_CONTROL PLX STX !REG_CURRENT_MSU_TRACK LDA !REG_MSU_PACK_CURRENT : CMP #$FE : !BLT + LDA #$00 : BRA ++ + : LDA MSUTrackList-1,X ++ : STA !REG_MSU_DELAYED_COMMAND LDA MSUExtendedFallbackList-1,X CMP.b #17 : BEQ + CMP.b #22 : BEQ + CMP.b #35 : !BLT .done CMP.b #47 : !BGE .done + : PHB : REP #$10 LDX $040C LDA.b #Music_Eastern>>16 : PHA : PLB ; Set bank to music pointers LDY $00 : PHY REP #$20 LDA MSUDungeonFallbackList,X : STA $00 SEP #$20 LDA ($00) PLY : STY $00 : SEP #$10 : PLB .done - : TAX : CMP MSUExtendedFallbackList-1,X : BEQ + LDA MSUExtendedFallbackList-1,X : BRA - + STA !REG_MUSIC_CONTROL JML SPCContinue ;-------------------------------------------------------------------------------- ;================================================================================ ; Wait for the fanfare music to start, or else it can get skipped entirely ;-------------------------------------------------------------------------------- FanfarePreload: STA !REG_MUSIC_CONTROL_REQUEST ; thing we wrote over PHA JSL CheckMusicLoadRequest WAI PLA - : CMP !REG_SPC_CONTROL : BNE - JML AddReceivedItem_doneWithSoundEffects ;-------------------------------------------------------------------------------- ;================================================================================ ; Wait for pendant fanfare to finish ;-------------------------------------------------------------------------------- PendantFanfareWait: LDA TournamentSeed : BNE .spc LDA FastFanfare : BNE .done REP #$20 LDA !REG_MSU_ID_01 : CMP !VAL_MSU_ID_01 : BNE .spc LDA !REG_MSU_ID_23 : CMP !VAL_MSU_ID_23 : BNE .spc LDA !REG_MSU_ID_45 : CMP !VAL_MSU_ID_45 : BNE .spc SEP #$20 LDA !REG_MSU_PACK_CURRENT : CMP #$FE : !BGE .spc LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_TRACK_MISSING : BNE .spc LDA !REG_MSU_DELAYED_COMMAND : BNE .continue LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_AUDIO_PLAYING : BEQ .done .continue jml PendantFanfareContinue .spc SEP #$20 LDA !REG_SPC_CONTROL : BNE .continue .done jml PendantFanfareDone ;-------------------------------------------------------------------------------- ;================================================================================ ; Wait for crystal fanfare to finish ;-------------------------------------------------------------------------------- CrystalFanfareWait: LDA TournamentSeed : BNE .spc LDA FastFanfare : BNE .done REP #$20 LDA !REG_MSU_ID_01 : CMP !VAL_MSU_ID_01 : BNE .spc LDA !REG_MSU_ID_23 : CMP !VAL_MSU_ID_23 : BNE .spc LDA !REG_MSU_ID_45 : CMP !VAL_MSU_ID_45 : BNE .spc SEP #$20 LDA !REG_MSU_PACK_CURRENT : CMP #$FE : !BGE .spc LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_TRACK_MISSING : BNE .spc LDA !REG_MSU_DELAYED_COMMAND : BNE .continue LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_AUDIO_PLAYING : BEQ .done .continue jml CrystalFanfareContinue .spc SEP #$20 LDA !REG_SPC_CONTROL : BNE .continue .done jml CrystalFanfareDone ;-------------------------------------------------------------------------------- ;================================================================================ ; Delay input scanning on startup/S&Q to avoid hard-lock from button mashing ;-------------------------------------------------------------------------------- StartupWait: LDA $11 : CMP.b #$04 : BCC .done ; thing we wrote over LDA !REG_SPC_CONTROL : BEQ .done-1 CMP.b #$01 : BEQ .done CLC .done RTL ;-------------------------------------------------------------------------------- ;================================================================================ ; Wait for ending credits music to finish ;-------------------------------------------------------------------------------- EndingMusicWait: REP #$20 LDA !REG_MSU_ID_01 : CMP !VAL_MSU_ID_01 : BNE .done LDA !REG_MSU_ID_23 : CMP !VAL_MSU_ID_23 : BNE .done LDA !REG_MSU_ID_45 : CMP !VAL_MSU_ID_45 : BNE .done SEP #$20 .wait LDA !REG_MSU_STATUS : BIT !FLAG_MSU_STATUS_AUDIO_PLAYING : BNE .wait .done SEP #$20 LDA.b #$22 RTL ;--------------------------------------------------------------------------------
copyright zengfr site:http://github.com/zengfr/romhack 001590 lea ($20,A0), A0 002474 bgt $249c [123p+ 34, enemy+34] 00248C move.l A4, ($2c,A0) [123p+ 34, enemy+34] 0024A6 movea.l (A4), A4 [123p+ 34, enemy+34] 0024C2 bgt $24f0 [123p+ 34, enemy+34] 0024DA move.l A4, ($2c,A0) [123p+ 34, enemy+34] 0024FA movea.l (A4), A4 [123p+ 34, enemy+34] 00406E rts [enemy+34] 012266 move.l (A2)+, (A3)+ [enemy+30, enemy+32] 012268 move.l (A2)+, (A3)+ [enemy+34, enemy+36] 01A75E dbra D4, $1a75c copyright zengfr site:http://github.com/zengfr/romhack
; ; Graphics routines for the Robotron Z9001 ; Stefano - Sept 2016 ; ; $Id: w_pixladdr.asm,v 1.1 2016-09-30 12:20:04 stefano Exp $ ; SECTION code_clib PUBLIC w_pixeladdress INCLUDE "graphics/grafix.inc" ; ; $Id: w_pixladdr.asm,v 1.1 2016-09-30 12:20:04 stefano Exp $ ; ; ****************************************************************** ; Get absolute pixel address in map of virtual (x,y) coordinate. ; in: (x,y) coordinate of pixel (hl,de) ; ; out: de = address of pixel byte ; a = bit number of byte where pixel is to be placed ; fz = 1 if bit number is 0 of pixel position ; ; registers changed after return: ; ..bc..../ixiy same ; af..dehl/.... different .w_pixeladdress ld a,e and 7 or @00001000 ; graphics on out ($B8), a ld a,191 sub e ld e,a ; ld a,7 ; sub e ; and 7 ; filter graphics bank selection ld b, h ld c, l ld a,c ex af,af ;push bc ld a, e and @11111000 ld e,a ld d, 0 ld h, d ld l, e ; HL := DE add hl, hl ;*2 add hl, hl ;*4 add hl, de ;*5 ld de, $EC00+40*23 ex de,hl xor a sbc hl,de ; last row byte - 5*row ;pop bc ;bc/8 srl b rr c srl b rr c srl b rr c ; add hl, bc ; add column offset ld d,h ld e,l ex af,af ;pop af and @00000111 ; a = x mod 8 xor @00000111 ; a = 7 - a ret
; ;Based on the SG C Tools 1.7 ;(C) 1993 Steve Goldsmith ; ;$Id: vdcget.asm,v 1.3 2016-06-16 21:13:07 dom Exp $ ; ;get vdc reg, d = reg, e = val SECTION code_clib PUBLIC vdcget PUBLIC _vdcget vdcget: _vdcget: ld bc,0d600h out (c),d loop2: in d,(c) bit 7,d jr z,loop2 inc bc in e,(c) ret
./out/sar.out: ファイル形式 elf32-mist32 セクション .text の逆アセンブル: 00000000 <_start>: 0: 0d 40 00 00 wl16 r0,0x0 4: 0d 60 00 0f wh16 r0,0xf 8: 1c 00 00 00 srspw r0 c: 14 30 00 18 br 6c <check>,#al 00000010 <compare>: 10: 00 c0 01 09 cmp r8,r9 14: 14 41 03 e0 b rret,#eq 00000018 <error>: 18: 0d 40 00 00 wl16 r0,0x0 1c: 0d 60 00 02 wh16 r0,0x2 20: 0e c0 00 20 lil r1,0 24: 10 a0 00 20 st32 r1,r0 28: 0d 40 00 0c wl16 r0,0xc 2c: 0d 60 00 02 wh16 r0,0x2 30: 10 a0 00 40 st32 r2,r0 34: 0d 40 00 08 wl16 r0,0x8 38: 0d 60 00 02 wh16 r0,0x2 3c: 10 a0 00 60 st32 r3,r0 40: 0d 40 00 10 wl16 r0,0x10 44: 0d 60 00 02 wh16 r0,0x2 48: 10 a0 01 00 st32 r8,r0 4c: 0d 40 00 14 wl16 r0,0x14 50: 0d 60 00 02 wh16 r0,0x2 54: 10 a0 01 20 st32 r9,r0 00000058 <finish>: 58: 0d 40 00 04 wl16 r0,0x4 5c: 0d 60 00 02 wh16 r0,0x2 60: 0e c0 00 21 lil r1,1 64: 10 a0 00 20 st32 r1,r0 68: 14 30 00 00 br 68 <finish+0x10>,#al 0000006c <check>: 6c: 0c 40 00 42 xor r2,r2 70: 0c 40 00 63 xor r3,r3 74: 0d 40 01 00 wl16 r8,0x0 78: 0d 60 01 03 wh16 r8,0x3 7c: 10 40 01 08 ld32 r8,r8 80: 0d 40 16 1c wl16 r16,0xbc 84: 0d 60 02 03 wh16 r16,0x3 88: 10 40 02 10 ld32 r16,r16 8c: 0d 40 2d 38 wl16 r9,0x178 90: 0d 60 01 23 wh16 r9,0x3 94: 10 40 01 29 ld32 r9,r9 98: 08 a0 01 10 sar r8,r16 9c: 20 70 03 e2 movepc rret,8 a0: 14 30 ff dc br 10 <compare>,#al a4: 00 10 00 41 add r2,1 a8: 0d 40 01 04 wl16 r8,0x4 ac: 0d 60 01 03 wh16 r8,0x3 b0: 10 40 01 08 ld32 r8,r8 b4: 0d 40 1a 00 wl16 r16,0xc0 b8: 0d 60 02 03 wh16 r16,0x3 bc: 10 40 02 10 ld32 r16,r16 c0: 0d 40 2d 3c wl16 r9,0x17c c4: 0d 60 01 23 wh16 r9,0x3 c8: 10 40 01 29 ld32 r9,r9 cc: 08 a0 01 10 sar r8,r16 d0: 20 70 03 e2 movepc rret,8 d4: 14 30 ff cf br 10 <compare>,#al d8: 00 10 00 41 add r2,1 dc: 0d 40 01 08 wl16 r8,0x8 e0: 0d 60 01 03 wh16 r8,0x3 e4: 10 40 01 08 ld32 r8,r8 e8: 0d 40 1a 04 wl16 r16,0xc4 ec: 0d 60 02 03 wh16 r16,0x3 f0: 10 40 02 10 ld32 r16,r16 f4: 0d 40 31 20 wl16 r9,0x180 f8: 0d 60 01 23 wh16 r9,0x3 fc: 10 40 01 29 ld32 r9,r9 100: 08 a0 01 10 sar r8,r16 104: 20 70 03 e2 movepc rret,8 108: 14 30 ff c2 br 10 <compare>,#al 10c: 00 10 00 41 add r2,1 110: 0d 40 01 0c wl16 r8,0xc 114: 0d 60 01 03 wh16 r8,0x3 118: 10 40 01 08 ld32 r8,r8 11c: 0d 40 1a 08 wl16 r16,0xc8 120: 0d 60 02 03 wh16 r16,0x3 124: 10 40 02 10 ld32 r16,r16 128: 0d 40 31 24 wl16 r9,0x184 12c: 0d 60 01 23 wh16 r9,0x3 130: 10 40 01 29 ld32 r9,r9 134: 08 a0 01 10 sar r8,r16 138: 20 70 03 e2 movepc rret,8 13c: 14 30 ff b5 br 10 <compare>,#al 140: 00 10 00 41 add r2,1 144: 0d 40 01 10 wl16 r8,0x10 148: 0d 60 01 03 wh16 r8,0x3 14c: 10 40 01 08 ld32 r8,r8 150: 0d 40 1a 0c wl16 r16,0xcc 154: 0d 60 02 03 wh16 r16,0x3 158: 10 40 02 10 ld32 r16,r16 15c: 0d 40 31 28 wl16 r9,0x188 160: 0d 60 01 23 wh16 r9,0x3 164: 10 40 01 29 ld32 r9,r9 168: 08 a0 01 10 sar r8,r16 16c: 20 70 03 e2 movepc rret,8 170: 14 30 ff a8 br 10 <compare>,#al 174: 00 10 00 41 add r2,1 178: 0d 40 01 14 wl16 r8,0x14 17c: 0d 60 01 03 wh16 r8,0x3 180: 10 40 01 08 ld32 r8,r8 184: 0d 40 1a 10 wl16 r16,0xd0 188: 0d 60 02 03 wh16 r16,0x3 18c: 10 40 02 10 ld32 r16,r16 190: 0d 40 31 2c wl16 r9,0x18c 194: 0d 60 01 23 wh16 r9,0x3 198: 10 40 01 29 ld32 r9,r9 19c: 08 a0 01 10 sar r8,r16 1a0: 20 70 03 e2 movepc rret,8 1a4: 14 30 ff 9b br 10 <compare>,#al 1a8: 00 10 00 41 add r2,1 1ac: 0d 40 01 18 wl16 r8,0x18 1b0: 0d 60 01 03 wh16 r8,0x3 1b4: 10 40 01 08 ld32 r8,r8 1b8: 0d 40 1a 14 wl16 r16,0xd4 1bc: 0d 60 02 03 wh16 r16,0x3 1c0: 10 40 02 10 ld32 r16,r16 1c4: 0d 40 31 30 wl16 r9,0x190 1c8: 0d 60 01 23 wh16 r9,0x3 1cc: 10 40 01 29 ld32 r9,r9 1d0: 08 a0 01 10 sar r8,r16 1d4: 20 70 03 e2 movepc rret,8 1d8: 14 30 ff 8e br 10 <compare>,#al 1dc: 00 10 00 41 add r2,1 1e0: 0d 40 01 1c wl16 r8,0x1c 1e4: 0d 60 01 03 wh16 r8,0x3 1e8: 10 40 01 08 ld32 r8,r8 1ec: 0d 40 1a 18 wl16 r16,0xd8 1f0: 0d 60 02 03 wh16 r16,0x3 1f4: 10 40 02 10 ld32 r16,r16 1f8: 0d 40 31 34 wl16 r9,0x194 1fc: 0d 60 01 23 wh16 r9,0x3 200: 10 40 01 29 ld32 r9,r9 204: 08 a0 01 10 sar r8,r16 208: 20 70 03 e2 movepc rret,8 20c: 14 30 ff 81 br 10 <compare>,#al 210: 00 10 00 41 add r2,1 214: 0d 40 05 00 wl16 r8,0x20 218: 0d 60 01 03 wh16 r8,0x3 21c: 10 40 01 08 ld32 r8,r8 220: 0d 40 1a 1c wl16 r16,0xdc 224: 0d 60 02 03 wh16 r16,0x3 228: 10 40 02 10 ld32 r16,r16 22c: 0d 40 31 38 wl16 r9,0x198 230: 0d 60 01 23 wh16 r9,0x3 234: 10 40 01 29 ld32 r9,r9 238: 08 a0 01 10 sar r8,r16 23c: 20 70 03 e2 movepc rret,8 240: 14 30 ff 74 br 10 <compare>,#al 244: 00 10 00 41 add r2,1 248: 0d 40 05 04 wl16 r8,0x24 24c: 0d 60 01 03 wh16 r8,0x3 250: 10 40 01 08 ld32 r8,r8 254: 0d 40 1e 00 wl16 r16,0xe0 258: 0d 60 02 03 wh16 r16,0x3 25c: 10 40 02 10 ld32 r16,r16 260: 0d 40 31 3c wl16 r9,0x19c 264: 0d 60 01 23 wh16 r9,0x3 268: 10 40 01 29 ld32 r9,r9 26c: 08 a0 01 10 sar r8,r16 270: 20 70 03 e2 movepc rret,8 274: 14 30 ff 67 br 10 <compare>,#al 278: 00 10 00 41 add r2,1 27c: 0d 40 05 08 wl16 r8,0x28 280: 0d 60 01 03 wh16 r8,0x3 284: 10 40 01 08 ld32 r8,r8 288: 0d 40 1e 04 wl16 r16,0xe4 28c: 0d 60 02 03 wh16 r16,0x3 290: 10 40 02 10 ld32 r16,r16 294: 0d 40 35 20 wl16 r9,0x1a0 298: 0d 60 01 23 wh16 r9,0x3 29c: 10 40 01 29 ld32 r9,r9 2a0: 08 a0 01 10 sar r8,r16 2a4: 20 70 03 e2 movepc rret,8 2a8: 14 30 ff 5a br 10 <compare>,#al 2ac: 00 10 00 41 add r2,1 2b0: 0d 40 05 0c wl16 r8,0x2c 2b4: 0d 60 01 03 wh16 r8,0x3 2b8: 10 40 01 08 ld32 r8,r8 2bc: 0d 40 1e 08 wl16 r16,0xe8 2c0: 0d 60 02 03 wh16 r16,0x3 2c4: 10 40 02 10 ld32 r16,r16 2c8: 0d 40 35 24 wl16 r9,0x1a4 2cc: 0d 60 01 23 wh16 r9,0x3 2d0: 10 40 01 29 ld32 r9,r9 2d4: 08 a0 01 10 sar r8,r16 2d8: 20 70 03 e2 movepc rret,8 2dc: 14 30 ff 4d br 10 <compare>,#al 2e0: 00 10 00 41 add r2,1 2e4: 0d 40 05 10 wl16 r8,0x30 2e8: 0d 60 01 03 wh16 r8,0x3 2ec: 10 40 01 08 ld32 r8,r8 2f0: 0d 40 1e 0c wl16 r16,0xec 2f4: 0d 60 02 03 wh16 r16,0x3 2f8: 10 40 02 10 ld32 r16,r16 2fc: 0d 40 35 28 wl16 r9,0x1a8 300: 0d 60 01 23 wh16 r9,0x3 304: 10 40 01 29 ld32 r9,r9 308: 08 a0 01 10 sar r8,r16 30c: 20 70 03 e2 movepc rret,8 310: 14 30 ff 40 br 10 <compare>,#al 314: 00 10 00 41 add r2,1 318: 0d 40 05 14 wl16 r8,0x34 31c: 0d 60 01 03 wh16 r8,0x3 320: 10 40 01 08 ld32 r8,r8 324: 0d 40 1e 10 wl16 r16,0xf0 328: 0d 60 02 03 wh16 r16,0x3 32c: 10 40 02 10 ld32 r16,r16 330: 0d 40 35 2c wl16 r9,0x1ac 334: 0d 60 01 23 wh16 r9,0x3 338: 10 40 01 29 ld32 r9,r9 33c: 08 a0 01 10 sar r8,r16 340: 20 70 03 e2 movepc rret,8 344: 14 30 ff 33 br 10 <compare>,#al 348: 00 10 00 41 add r2,1 34c: 0d 40 05 18 wl16 r8,0x38 350: 0d 60 01 03 wh16 r8,0x3 354: 10 40 01 08 ld32 r8,r8 358: 0d 40 1e 14 wl16 r16,0xf4 35c: 0d 60 02 03 wh16 r16,0x3 360: 10 40 02 10 ld32 r16,r16 364: 0d 40 35 30 wl16 r9,0x1b0 368: 0d 60 01 23 wh16 r9,0x3 36c: 10 40 01 29 ld32 r9,r9 370: 08 a0 01 10 sar r8,r16 374: 20 70 03 e2 movepc rret,8 378: 14 30 ff 26 br 10 <compare>,#al 37c: 00 10 00 41 add r2,1 380: 0d 40 05 1c wl16 r8,0x3c 384: 0d 60 01 03 wh16 r8,0x3 388: 10 40 01 08 ld32 r8,r8 38c: 0d 40 1e 18 wl16 r16,0xf8 390: 0d 60 02 03 wh16 r16,0x3 394: 10 40 02 10 ld32 r16,r16 398: 0d 40 35 34 wl16 r9,0x1b4 39c: 0d 60 01 23 wh16 r9,0x3 3a0: 10 40 01 29 ld32 r9,r9 3a4: 08 a0 01 10 sar r8,r16 3a8: 20 70 03 e2 movepc rret,8 3ac: 14 30 ff 19 br 10 <compare>,#al 3b0: 00 10 00 41 add r2,1 3b4: 0d 40 09 00 wl16 r8,0x40 3b8: 0d 60 01 03 wh16 r8,0x3 3bc: 10 40 01 08 ld32 r8,r8 3c0: 0d 40 1e 1c wl16 r16,0xfc 3c4: 0d 60 02 03 wh16 r16,0x3 3c8: 10 40 02 10 ld32 r16,r16 3cc: 0d 40 35 38 wl16 r9,0x1b8 3d0: 0d 60 01 23 wh16 r9,0x3 3d4: 10 40 01 29 ld32 r9,r9 3d8: 08 a0 01 10 sar r8,r16 3dc: 20 70 03 e2 movepc rret,8 3e0: 14 30 ff 0c br 10 <compare>,#al 3e4: 00 10 00 41 add r2,1 3e8: 0d 40 09 04 wl16 r8,0x44 3ec: 0d 60 01 03 wh16 r8,0x3 3f0: 10 40 01 08 ld32 r8,r8 3f4: 0d 40 22 00 wl16 r16,0x100 3f8: 0d 60 02 03 wh16 r16,0x3 3fc: 10 40 02 10 ld32 r16,r16 400: 0d 40 35 3c wl16 r9,0x1bc 404: 0d 60 01 23 wh16 r9,0x3 408: 10 40 01 29 ld32 r9,r9 40c: 08 a0 01 10 sar r8,r16 410: 20 70 03 e2 movepc rret,8 414: 14 30 fe ff br 10 <compare>,#al 418: 00 10 00 41 add r2,1 41c: 0d 40 09 08 wl16 r8,0x48 420: 0d 60 01 03 wh16 r8,0x3 424: 10 40 01 08 ld32 r8,r8 428: 0d 40 22 04 wl16 r16,0x104 42c: 0d 60 02 03 wh16 r16,0x3 430: 10 40 02 10 ld32 r16,r16 434: 0d 40 39 20 wl16 r9,0x1c0 438: 0d 60 01 23 wh16 r9,0x3 43c: 10 40 01 29 ld32 r9,r9 440: 08 a0 01 10 sar r8,r16 444: 20 70 03 e2 movepc rret,8 448: 14 30 fe f2 br 10 <compare>,#al 44c: 00 10 00 41 add r2,1 450: 0d 40 09 0c wl16 r8,0x4c 454: 0d 60 01 03 wh16 r8,0x3 458: 10 40 01 08 ld32 r8,r8 45c: 0d 40 22 08 wl16 r16,0x108 460: 0d 60 02 03 wh16 r16,0x3 464: 10 40 02 10 ld32 r16,r16 468: 0d 40 39 24 wl16 r9,0x1c4 46c: 0d 60 01 23 wh16 r9,0x3 470: 10 40 01 29 ld32 r9,r9 474: 08 a0 01 10 sar r8,r16 478: 20 70 03 e2 movepc rret,8 47c: 14 30 fe e5 br 10 <compare>,#al 480: 00 10 00 41 add r2,1 484: 0d 40 09 10 wl16 r8,0x50 488: 0d 60 01 03 wh16 r8,0x3 48c: 10 40 01 08 ld32 r8,r8 490: 0d 40 22 0c wl16 r16,0x10c 494: 0d 60 02 03 wh16 r16,0x3 498: 10 40 02 10 ld32 r16,r16 49c: 0d 40 39 28 wl16 r9,0x1c8 4a0: 0d 60 01 23 wh16 r9,0x3 4a4: 10 40 01 29 ld32 r9,r9 4a8: 08 a0 01 10 sar r8,r16 4ac: 20 70 03 e2 movepc rret,8 4b0: 14 30 fe d8 br 10 <compare>,#al 4b4: 00 10 00 41 add r2,1 4b8: 0d 40 09 14 wl16 r8,0x54 4bc: 0d 60 01 03 wh16 r8,0x3 4c0: 10 40 01 08 ld32 r8,r8 4c4: 0d 40 22 10 wl16 r16,0x110 4c8: 0d 60 02 03 wh16 r16,0x3 4cc: 10 40 02 10 ld32 r16,r16 4d0: 0d 40 39 2c wl16 r9,0x1cc 4d4: 0d 60 01 23 wh16 r9,0x3 4d8: 10 40 01 29 ld32 r9,r9 4dc: 08 a0 01 10 sar r8,r16 4e0: 20 70 03 e2 movepc rret,8 4e4: 14 30 fe cb br 10 <compare>,#al 4e8: 00 10 00 41 add r2,1 4ec: 0d 40 09 18 wl16 r8,0x58 4f0: 0d 60 01 03 wh16 r8,0x3 4f4: 10 40 01 08 ld32 r8,r8 4f8: 0d 40 22 14 wl16 r16,0x114 4fc: 0d 60 02 03 wh16 r16,0x3 500: 10 40 02 10 ld32 r16,r16 504: 0d 40 39 30 wl16 r9,0x1d0 508: 0d 60 01 23 wh16 r9,0x3 50c: 10 40 01 29 ld32 r9,r9 510: 08 a0 01 10 sar r8,r16 514: 20 70 03 e2 movepc rret,8 518: 14 30 fe be br 10 <compare>,#al 51c: 00 10 00 41 add r2,1 520: 0d 40 09 1c wl16 r8,0x5c 524: 0d 60 01 03 wh16 r8,0x3 528: 10 40 01 08 ld32 r8,r8 52c: 0d 40 22 18 wl16 r16,0x118 530: 0d 60 02 03 wh16 r16,0x3 534: 10 40 02 10 ld32 r16,r16 538: 0d 40 39 34 wl16 r9,0x1d4 53c: 0d 60 01 23 wh16 r9,0x3 540: 10 40 01 29 ld32 r9,r9 544: 08 a0 01 10 sar r8,r16 548: 20 70 03 e2 movepc rret,8 54c: 14 30 fe b1 br 10 <compare>,#al 550: 00 10 00 41 add r2,1 554: 0d 40 0d 00 wl16 r8,0x60 558: 0d 60 01 03 wh16 r8,0x3 55c: 10 40 01 08 ld32 r8,r8 560: 0d 40 22 1c wl16 r16,0x11c 564: 0d 60 02 03 wh16 r16,0x3 568: 10 40 02 10 ld32 r16,r16 56c: 0d 40 39 38 wl16 r9,0x1d8 570: 0d 60 01 23 wh16 r9,0x3 574: 10 40 01 29 ld32 r9,r9 578: 08 a0 01 10 sar r8,r16 57c: 20 70 03 e2 movepc rret,8 580: 14 30 fe a4 br 10 <compare>,#al 584: 00 10 00 41 add r2,1 588: 0d 40 0d 04 wl16 r8,0x64 58c: 0d 60 01 03 wh16 r8,0x3 590: 10 40 01 08 ld32 r8,r8 594: 0d 40 26 00 wl16 r16,0x120 598: 0d 60 02 03 wh16 r16,0x3 59c: 10 40 02 10 ld32 r16,r16 5a0: 0d 40 39 3c wl16 r9,0x1dc 5a4: 0d 60 01 23 wh16 r9,0x3 5a8: 10 40 01 29 ld32 r9,r9 5ac: 08 a0 01 10 sar r8,r16 5b0: 20 70 03 e2 movepc rret,8 5b4: 14 30 fe 97 br 10 <compare>,#al 5b8: 00 10 00 41 add r2,1 5bc: 0d 40 0d 08 wl16 r8,0x68 5c0: 0d 60 01 03 wh16 r8,0x3 5c4: 10 40 01 08 ld32 r8,r8 5c8: 0d 40 26 04 wl16 r16,0x124 5cc: 0d 60 02 03 wh16 r16,0x3 5d0: 10 40 02 10 ld32 r16,r16 5d4: 0d 40 3d 20 wl16 r9,0x1e0 5d8: 0d 60 01 23 wh16 r9,0x3 5dc: 10 40 01 29 ld32 r9,r9 5e0: 08 a0 01 10 sar r8,r16 5e4: 20 70 03 e2 movepc rret,8 5e8: 14 30 fe 8a br 10 <compare>,#al 5ec: 00 10 00 41 add r2,1 5f0: 0d 40 0d 0c wl16 r8,0x6c 5f4: 0d 60 01 03 wh16 r8,0x3 5f8: 10 40 01 08 ld32 r8,r8 5fc: 0d 40 26 08 wl16 r16,0x128 600: 0d 60 02 03 wh16 r16,0x3 604: 10 40 02 10 ld32 r16,r16 608: 0d 40 3d 24 wl16 r9,0x1e4 60c: 0d 60 01 23 wh16 r9,0x3 610: 10 40 01 29 ld32 r9,r9 614: 08 a0 01 10 sar r8,r16 618: 20 70 03 e2 movepc rret,8 61c: 14 30 fe 7d br 10 <compare>,#al 620: 00 10 00 41 add r2,1 624: 0d 40 0d 10 wl16 r8,0x70 628: 0d 60 01 03 wh16 r8,0x3 62c: 10 40 01 08 ld32 r8,r8 630: 0d 40 26 0c wl16 r16,0x12c 634: 0d 60 02 03 wh16 r16,0x3 638: 10 40 02 10 ld32 r16,r16 63c: 0d 40 3d 28 wl16 r9,0x1e8 640: 0d 60 01 23 wh16 r9,0x3 644: 10 40 01 29 ld32 r9,r9 648: 08 a0 01 10 sar r8,r16 64c: 20 70 03 e2 movepc rret,8 650: 14 30 fe 70 br 10 <compare>,#al 654: 00 10 00 41 add r2,1 658: 0d 40 0d 14 wl16 r8,0x74 65c: 0d 60 01 03 wh16 r8,0x3 660: 10 40 01 08 ld32 r8,r8 664: 0d 40 26 10 wl16 r16,0x130 668: 0d 60 02 03 wh16 r16,0x3 66c: 10 40 02 10 ld32 r16,r16 670: 0d 40 3d 2c wl16 r9,0x1ec 674: 0d 60 01 23 wh16 r9,0x3 678: 10 40 01 29 ld32 r9,r9 67c: 08 a0 01 10 sar r8,r16 680: 20 70 03 e2 movepc rret,8 684: 14 30 fe 63 br 10 <compare>,#al 688: 00 10 00 41 add r2,1 68c: 0d 40 0d 18 wl16 r8,0x78 690: 0d 60 01 03 wh16 r8,0x3 694: 10 40 01 08 ld32 r8,r8 698: 0d 40 26 14 wl16 r16,0x134 69c: 0d 60 02 03 wh16 r16,0x3 6a0: 10 40 02 10 ld32 r16,r16 6a4: 0d 40 3d 30 wl16 r9,0x1f0 6a8: 0d 60 01 23 wh16 r9,0x3 6ac: 10 40 01 29 ld32 r9,r9 6b0: 08 a0 01 10 sar r8,r16 6b4: 20 70 03 e2 movepc rret,8 6b8: 14 30 fe 56 br 10 <compare>,#al 6bc: 00 10 00 41 add r2,1 6c0: 0d 40 0d 1c wl16 r8,0x7c 6c4: 0d 60 01 03 wh16 r8,0x3 6c8: 10 40 01 08 ld32 r8,r8 6cc: 0d 40 26 18 wl16 r16,0x138 6d0: 0d 60 02 03 wh16 r16,0x3 6d4: 10 40 02 10 ld32 r16,r16 6d8: 0d 40 3d 34 wl16 r9,0x1f4 6dc: 0d 60 01 23 wh16 r9,0x3 6e0: 10 40 01 29 ld32 r9,r9 6e4: 08 a0 01 10 sar r8,r16 6e8: 20 70 03 e2 movepc rret,8 6ec: 14 30 fe 49 br 10 <compare>,#al 6f0: 00 10 00 41 add r2,1 6f4: 0d 40 11 00 wl16 r8,0x80 6f8: 0d 60 01 03 wh16 r8,0x3 6fc: 10 40 01 08 ld32 r8,r8 700: 0d 40 26 1c wl16 r16,0x13c 704: 0d 60 02 03 wh16 r16,0x3 708: 10 40 02 10 ld32 r16,r16 70c: 0d 40 3d 38 wl16 r9,0x1f8 710: 0d 60 01 23 wh16 r9,0x3 714: 10 40 01 29 ld32 r9,r9 718: 08 a0 01 10 sar r8,r16 71c: 20 70 03 e2 movepc rret,8 720: 14 30 fe 3c br 10 <compare>,#al 724: 00 10 00 41 add r2,1 728: 0d 40 11 04 wl16 r8,0x84 72c: 0d 60 01 03 wh16 r8,0x3 730: 10 40 01 08 ld32 r8,r8 734: 0d 40 2a 00 wl16 r16,0x140 738: 0d 60 02 03 wh16 r16,0x3 73c: 10 40 02 10 ld32 r16,r16 740: 0d 40 3d 3c wl16 r9,0x1fc 744: 0d 60 01 23 wh16 r9,0x3 748: 10 40 01 29 ld32 r9,r9 74c: 08 a0 01 10 sar r8,r16 750: 20 70 03 e2 movepc rret,8 754: 14 30 fe 2f br 10 <compare>,#al 758: 00 10 00 41 add r2,1 75c: 0d 40 11 08 wl16 r8,0x88 760: 0d 60 01 03 wh16 r8,0x3 764: 10 40 01 08 ld32 r8,r8 768: 0d 40 2a 04 wl16 r16,0x144 76c: 0d 60 02 03 wh16 r16,0x3 770: 10 40 02 10 ld32 r16,r16 774: 0d 40 41 20 wl16 r9,0x200 778: 0d 60 01 23 wh16 r9,0x3 77c: 10 40 01 29 ld32 r9,r9 780: 08 a0 01 10 sar r8,r16 784: 20 70 03 e2 movepc rret,8 788: 14 30 fe 22 br 10 <compare>,#al 78c: 00 10 00 41 add r2,1 790: 0d 40 11 0c wl16 r8,0x8c 794: 0d 60 01 03 wh16 r8,0x3 798: 10 40 01 08 ld32 r8,r8 79c: 0d 40 2a 08 wl16 r16,0x148 7a0: 0d 60 02 03 wh16 r16,0x3 7a4: 10 40 02 10 ld32 r16,r16 7a8: 0d 40 41 24 wl16 r9,0x204 7ac: 0d 60 01 23 wh16 r9,0x3 7b0: 10 40 01 29 ld32 r9,r9 7b4: 08 a0 01 10 sar r8,r16 7b8: 20 70 03 e2 movepc rret,8 7bc: 14 30 fe 15 br 10 <compare>,#al 7c0: 00 10 00 41 add r2,1 7c4: 0d 40 11 10 wl16 r8,0x90 7c8: 0d 60 01 03 wh16 r8,0x3 7cc: 10 40 01 08 ld32 r8,r8 7d0: 0d 40 2a 0c wl16 r16,0x14c 7d4: 0d 60 02 03 wh16 r16,0x3 7d8: 10 40 02 10 ld32 r16,r16 7dc: 0d 40 41 28 wl16 r9,0x208 7e0: 0d 60 01 23 wh16 r9,0x3 7e4: 10 40 01 29 ld32 r9,r9 7e8: 08 a0 01 10 sar r8,r16 7ec: 20 70 03 e2 movepc rret,8 7f0: 14 30 fe 08 br 10 <compare>,#al 7f4: 00 10 00 41 add r2,1 7f8: 0d 40 11 14 wl16 r8,0x94 7fc: 0d 60 01 03 wh16 r8,0x3 800: 10 40 01 08 ld32 r8,r8 804: 0d 40 2a 10 wl16 r16,0x150 808: 0d 60 02 03 wh16 r16,0x3 80c: 10 40 02 10 ld32 r16,r16 810: 0d 40 41 2c wl16 r9,0x20c 814: 0d 60 01 23 wh16 r9,0x3 818: 10 40 01 29 ld32 r9,r9 81c: 08 a0 01 10 sar r8,r16 820: 20 70 03 e2 movepc rret,8 824: 14 30 fd fb br 10 <compare>,#al 828: 00 10 00 41 add r2,1 82c: 0d 40 11 18 wl16 r8,0x98 830: 0d 60 01 03 wh16 r8,0x3 834: 10 40 01 08 ld32 r8,r8 838: 0d 40 2a 14 wl16 r16,0x154 83c: 0d 60 02 03 wh16 r16,0x3 840: 10 40 02 10 ld32 r16,r16 844: 0d 40 41 30 wl16 r9,0x210 848: 0d 60 01 23 wh16 r9,0x3 84c: 10 40 01 29 ld32 r9,r9 850: 08 a0 01 10 sar r8,r16 854: 20 70 03 e2 movepc rret,8 858: 14 30 fd ee br 10 <compare>,#al 85c: 00 10 00 41 add r2,1 860: 0d 40 11 1c wl16 r8,0x9c 864: 0d 60 01 03 wh16 r8,0x3 868: 10 40 01 08 ld32 r8,r8 86c: 0d 40 2a 18 wl16 r16,0x158 870: 0d 60 02 03 wh16 r16,0x3 874: 10 40 02 10 ld32 r16,r16 878: 0d 40 41 34 wl16 r9,0x214 87c: 0d 60 01 23 wh16 r9,0x3 880: 10 40 01 29 ld32 r9,r9 884: 08 a0 01 10 sar r8,r16 888: 20 70 03 e2 movepc rret,8 88c: 14 30 fd e1 br 10 <compare>,#al 890: 00 10 00 41 add r2,1 894: 0d 40 15 00 wl16 r8,0xa0 898: 0d 60 01 03 wh16 r8,0x3 89c: 10 40 01 08 ld32 r8,r8 8a0: 0d 40 2a 1c wl16 r16,0x15c 8a4: 0d 60 02 03 wh16 r16,0x3 8a8: 10 40 02 10 ld32 r16,r16 8ac: 0d 40 41 38 wl16 r9,0x218 8b0: 0d 60 01 23 wh16 r9,0x3 8b4: 10 40 01 29 ld32 r9,r9 8b8: 08 a0 01 10 sar r8,r16 8bc: 20 70 03 e2 movepc rret,8 8c0: 14 30 fd d4 br 10 <compare>,#al 8c4: 00 10 00 41 add r2,1 8c8: 0d 40 15 04 wl16 r8,0xa4 8cc: 0d 60 01 03 wh16 r8,0x3 8d0: 10 40 01 08 ld32 r8,r8 8d4: 0d 40 2e 00 wl16 r16,0x160 8d8: 0d 60 02 03 wh16 r16,0x3 8dc: 10 40 02 10 ld32 r16,r16 8e0: 0d 40 41 3c wl16 r9,0x21c 8e4: 0d 60 01 23 wh16 r9,0x3 8e8: 10 40 01 29 ld32 r9,r9 8ec: 08 a0 01 10 sar r8,r16 8f0: 20 70 03 e2 movepc rret,8 8f4: 14 30 fd c7 br 10 <compare>,#al 8f8: 00 10 00 41 add r2,1 8fc: 0d 40 15 08 wl16 r8,0xa8 900: 0d 60 01 03 wh16 r8,0x3 904: 10 40 01 08 ld32 r8,r8 908: 0d 40 2e 04 wl16 r16,0x164 90c: 0d 60 02 03 wh16 r16,0x3 910: 10 40 02 10 ld32 r16,r16 914: 0d 40 45 20 wl16 r9,0x220 918: 0d 60 01 23 wh16 r9,0x3 91c: 10 40 01 29 ld32 r9,r9 920: 08 a0 01 10 sar r8,r16 924: 20 70 03 e2 movepc rret,8 928: 14 30 fd ba br 10 <compare>,#al 92c: 00 10 00 41 add r2,1 930: 0d 40 15 0c wl16 r8,0xac 934: 0d 60 01 03 wh16 r8,0x3 938: 10 40 01 08 ld32 r8,r8 93c: 0d 40 2e 08 wl16 r16,0x168 940: 0d 60 02 03 wh16 r16,0x3 944: 10 40 02 10 ld32 r16,r16 948: 0d 40 45 24 wl16 r9,0x224 94c: 0d 60 01 23 wh16 r9,0x3 950: 10 40 01 29 ld32 r9,r9 954: 08 a0 01 10 sar r8,r16 958: 20 70 03 e2 movepc rret,8 95c: 14 30 fd ad br 10 <compare>,#al 960: 00 10 00 41 add r2,1 964: 0d 40 15 10 wl16 r8,0xb0 968: 0d 60 01 03 wh16 r8,0x3 96c: 10 40 01 08 ld32 r8,r8 970: 0d 40 2e 0c wl16 r16,0x16c 974: 0d 60 02 03 wh16 r16,0x3 978: 10 40 02 10 ld32 r16,r16 97c: 0d 40 45 28 wl16 r9,0x228 980: 0d 60 01 23 wh16 r9,0x3 984: 10 40 01 29 ld32 r9,r9 988: 08 a0 01 10 sar r8,r16 98c: 20 70 03 e2 movepc rret,8 990: 14 30 fd a0 br 10 <compare>,#al 994: 00 10 00 41 add r2,1 998: 0d 40 15 14 wl16 r8,0xb4 99c: 0d 60 01 03 wh16 r8,0x3 9a0: 10 40 01 08 ld32 r8,r8 9a4: 0d 40 2e 10 wl16 r16,0x170 9a8: 0d 60 02 03 wh16 r16,0x3 9ac: 10 40 02 10 ld32 r16,r16 9b0: 0d 40 45 2c wl16 r9,0x22c 9b4: 0d 60 01 23 wh16 r9,0x3 9b8: 10 40 01 29 ld32 r9,r9 9bc: 08 a0 01 10 sar r8,r16 9c0: 20 70 03 e2 movepc rret,8 9c4: 14 30 fd 93 br 10 <compare>,#al 9c8: 00 10 00 41 add r2,1 9cc: 0d 40 15 18 wl16 r8,0xb8 9d0: 0d 60 01 03 wh16 r8,0x3 9d4: 10 40 01 08 ld32 r8,r8 9d8: 0d 40 2e 14 wl16 r16,0x174 9dc: 0d 60 02 03 wh16 r16,0x3 9e0: 10 40 02 10 ld32 r16,r16 9e4: 0d 40 45 30 wl16 r9,0x230 9e8: 0d 60 01 23 wh16 r9,0x3 9ec: 10 40 01 29 ld32 r9,r9 9f0: 08 a0 01 10 sar r8,r16 9f4: 20 70 03 e2 movepc rret,8 9f8: 14 30 fd 86 br 10 <compare>,#al 9fc: 00 10 00 41 add r2,1 a00: 0c 40 00 42 xor r2,r2 a04: 00 10 00 61 add r3,1 a08: 0d 40 45 14 wl16 r8,0x234 a0c: 0d 60 01 03 wh16 r8,0x3 a10: 10 40 01 08 ld32 r8,r8 a14: 0d 40 5d 30 wl16 r9,0x2f0 a18: 0d 60 01 23 wh16 r9,0x3 a1c: 10 40 01 29 ld32 r9,r9 a20: 08 b0 01 01 sar r8,0x1 a24: 20 70 03 e2 movepc rret,8 a28: 14 30 fd 7a br 10 <compare>,#al a2c: 00 10 00 41 add r2,1 a30: 0d 40 45 18 wl16 r8,0x238 a34: 0d 60 01 03 wh16 r8,0x3 a38: 10 40 01 08 ld32 r8,r8 a3c: 0d 40 5d 34 wl16 r9,0x2f4 a40: 0d 60 01 23 wh16 r9,0x3 a44: 10 40 01 29 ld32 r9,r9 a48: 08 b0 01 02 sar r8,0x2 a4c: 20 70 03 e2 movepc rret,8 a50: 14 30 fd 70 br 10 <compare>,#al a54: 00 10 00 41 add r2,1 a58: 0d 40 45 1c wl16 r8,0x23c a5c: 0d 60 01 03 wh16 r8,0x3 a60: 10 40 01 08 ld32 r8,r8 a64: 0d 40 5d 38 wl16 r9,0x2f8 a68: 0d 60 01 23 wh16 r9,0x3 a6c: 10 40 01 29 ld32 r9,r9 a70: 08 b0 01 04 sar r8,0x4 a74: 20 70 03 e2 movepc rret,8 a78: 14 30 fd 66 br 10 <compare>,#al a7c: 00 10 00 41 add r2,1 a80: 0d 40 49 00 wl16 r8,0x240 a84: 0d 60 01 03 wh16 r8,0x3 a88: 10 40 01 08 ld32 r8,r8 a8c: 0d 40 5d 3c wl16 r9,0x2fc a90: 0d 60 01 23 wh16 r9,0x3 a94: 10 40 01 29 ld32 r9,r9 a98: 08 b0 01 08 sar r8,0x8 a9c: 20 70 03 e2 movepc rret,8 aa0: 14 30 fd 5c br 10 <compare>,#al aa4: 00 10 00 41 add r2,1 aa8: 0d 40 49 04 wl16 r8,0x244 aac: 0d 60 01 03 wh16 r8,0x3 ab0: 10 40 01 08 ld32 r8,r8 ab4: 0d 40 61 20 wl16 r9,0x300 ab8: 0d 60 01 23 wh16 r9,0x3 abc: 10 40 01 29 ld32 r9,r9 ac0: 08 b0 01 10 sar r8,0x10 ac4: 20 70 03 e2 movepc rret,8 ac8: 14 30 fd 52 br 10 <compare>,#al acc: 00 10 00 41 add r2,1 ad0: 0d 40 49 08 wl16 r8,0x248 ad4: 0d 60 01 03 wh16 r8,0x3 ad8: 10 40 01 08 ld32 r8,r8 adc: 0d 40 61 24 wl16 r9,0x304 ae0: 0d 60 01 23 wh16 r9,0x3 ae4: 10 40 01 29 ld32 r9,r9 ae8: 08 b0 05 00 sar r8,0x20 aec: 20 70 03 e2 movepc rret,8 af0: 14 30 fd 48 br 10 <compare>,#al af4: 00 10 00 41 add r2,1 af8: 0d 40 49 0c wl16 r8,0x24c afc: 0d 60 01 03 wh16 r8,0x3 b00: 10 40 01 08 ld32 r8,r8 b04: 0d 40 61 28 wl16 r9,0x308 b08: 0d 60 01 23 wh16 r9,0x3 b0c: 10 40 01 29 ld32 r9,r9 b10: 08 b0 01 01 sar r8,0x1 b14: 20 70 03 e2 movepc rret,8 b18: 14 30 fd 3e br 10 <compare>,#al b1c: 00 10 00 41 add r2,1 b20: 0d 40 49 10 wl16 r8,0x250 b24: 0d 60 01 03 wh16 r8,0x3 b28: 10 40 01 08 ld32 r8,r8 b2c: 0d 40 61 2c wl16 r9,0x30c b30: 0d 60 01 23 wh16 r9,0x3 b34: 10 40 01 29 ld32 r9,r9 b38: 08 b0 01 02 sar r8,0x2 b3c: 20 70 03 e2 movepc rret,8 b40: 14 30 fd 34 br 10 <compare>,#al b44: 00 10 00 41 add r2,1 b48: 0d 40 49 14 wl16 r8,0x254 b4c: 0d 60 01 03 wh16 r8,0x3 b50: 10 40 01 08 ld32 r8,r8 b54: 0d 40 61 30 wl16 r9,0x310 b58: 0d 60 01 23 wh16 r9,0x3 b5c: 10 40 01 29 ld32 r9,r9 b60: 08 b0 01 04 sar r8,0x4 b64: 20 70 03 e2 movepc rret,8 b68: 14 30 fd 2a br 10 <compare>,#al b6c: 00 10 00 41 add r2,1 b70: 0d 40 49 18 wl16 r8,0x258 b74: 0d 60 01 03 wh16 r8,0x3 b78: 10 40 01 08 ld32 r8,r8 b7c: 0d 40 61 34 wl16 r9,0x314 b80: 0d 60 01 23 wh16 r9,0x3 b84: 10 40 01 29 ld32 r9,r9 b88: 08 b0 01 08 sar r8,0x8 b8c: 20 70 03 e2 movepc rret,8 b90: 14 30 fd 20 br 10 <compare>,#al b94: 00 10 00 41 add r2,1 b98: 0d 40 49 1c wl16 r8,0x25c b9c: 0d 60 01 03 wh16 r8,0x3 ba0: 10 40 01 08 ld32 r8,r8 ba4: 0d 40 61 38 wl16 r9,0x318 ba8: 0d 60 01 23 wh16 r9,0x3 bac: 10 40 01 29 ld32 r9,r9 bb0: 08 b0 01 10 sar r8,0x10 bb4: 20 70 03 e2 movepc rret,8 bb8: 14 30 fd 16 br 10 <compare>,#al bbc: 00 10 00 41 add r2,1 bc0: 0d 40 4d 00 wl16 r8,0x260 bc4: 0d 60 01 03 wh16 r8,0x3 bc8: 10 40 01 08 ld32 r8,r8 bcc: 0d 40 61 3c wl16 r9,0x31c bd0: 0d 60 01 23 wh16 r9,0x3 bd4: 10 40 01 29 ld32 r9,r9 bd8: 08 b0 05 00 sar r8,0x20 bdc: 20 70 03 e2 movepc rret,8 be0: 14 30 fd 0c br 10 <compare>,#al be4: 00 10 00 41 add r2,1 be8: 0d 40 4d 04 wl16 r8,0x264 bec: 0d 60 01 03 wh16 r8,0x3 bf0: 10 40 01 08 ld32 r8,r8 bf4: 0d 40 65 20 wl16 r9,0x320 bf8: 0d 60 01 23 wh16 r9,0x3 bfc: 10 40 01 29 ld32 r9,r9 c00: 08 b0 01 01 sar r8,0x1 c04: 20 70 03 e2 movepc rret,8 c08: 14 30 fd 02 br 10 <compare>,#al c0c: 00 10 00 41 add r2,1 c10: 0d 40 4d 08 wl16 r8,0x268 c14: 0d 60 01 03 wh16 r8,0x3 c18: 10 40 01 08 ld32 r8,r8 c1c: 0d 40 65 24 wl16 r9,0x324 c20: 0d 60 01 23 wh16 r9,0x3 c24: 10 40 01 29 ld32 r9,r9 c28: 08 b0 01 02 sar r8,0x2 c2c: 20 70 03 e2 movepc rret,8 c30: 14 30 fc f8 br 10 <compare>,#al c34: 00 10 00 41 add r2,1 c38: 0d 40 4d 0c wl16 r8,0x26c c3c: 0d 60 01 03 wh16 r8,0x3 c40: 10 40 01 08 ld32 r8,r8 c44: 0d 40 65 28 wl16 r9,0x328 c48: 0d 60 01 23 wh16 r9,0x3 c4c: 10 40 01 29 ld32 r9,r9 c50: 08 b0 01 04 sar r8,0x4 c54: 20 70 03 e2 movepc rret,8 c58: 14 30 fc ee br 10 <compare>,#al c5c: 00 10 00 41 add r2,1 c60: 0d 40 4d 10 wl16 r8,0x270 c64: 0d 60 01 03 wh16 r8,0x3 c68: 10 40 01 08 ld32 r8,r8 c6c: 0d 40 65 2c wl16 r9,0x32c c70: 0d 60 01 23 wh16 r9,0x3 c74: 10 40 01 29 ld32 r9,r9 c78: 08 b0 01 08 sar r8,0x8 c7c: 20 70 03 e2 movepc rret,8 c80: 14 30 fc e4 br 10 <compare>,#al c84: 00 10 00 41 add r2,1 c88: 0d 40 4d 14 wl16 r8,0x274 c8c: 0d 60 01 03 wh16 r8,0x3 c90: 10 40 01 08 ld32 r8,r8 c94: 0d 40 65 30 wl16 r9,0x330 c98: 0d 60 01 23 wh16 r9,0x3 c9c: 10 40 01 29 ld32 r9,r9 ca0: 08 b0 01 10 sar r8,0x10 ca4: 20 70 03 e2 movepc rret,8 ca8: 14 30 fc da br 10 <compare>,#al cac: 00 10 00 41 add r2,1 cb0: 0d 40 4d 18 wl16 r8,0x278 cb4: 0d 60 01 03 wh16 r8,0x3 cb8: 10 40 01 08 ld32 r8,r8 cbc: 0d 40 65 34 wl16 r9,0x334 cc0: 0d 60 01 23 wh16 r9,0x3 cc4: 10 40 01 29 ld32 r9,r9 cc8: 08 b0 05 00 sar r8,0x20 ccc: 20 70 03 e2 movepc rret,8 cd0: 14 30 fc d0 br 10 <compare>,#al cd4: 00 10 00 41 add r2,1 cd8: 0d 40 4d 1c wl16 r8,0x27c cdc: 0d 60 01 03 wh16 r8,0x3 ce0: 10 40 01 08 ld32 r8,r8 ce4: 0d 40 65 38 wl16 r9,0x338 ce8: 0d 60 01 23 wh16 r9,0x3 cec: 10 40 01 29 ld32 r9,r9 cf0: 08 b0 01 01 sar r8,0x1 cf4: 20 70 03 e2 movepc rret,8 cf8: 14 30 fc c6 br 10 <compare>,#al cfc: 00 10 00 41 add r2,1 d00: 0d 40 51 00 wl16 r8,0x280 d04: 0d 60 01 03 wh16 r8,0x3 d08: 10 40 01 08 ld32 r8,r8 d0c: 0d 40 65 3c wl16 r9,0x33c d10: 0d 60 01 23 wh16 r9,0x3 d14: 10 40 01 29 ld32 r9,r9 d18: 08 b0 01 02 sar r8,0x2 d1c: 20 70 03 e2 movepc rret,8 d20: 14 30 fc bc br 10 <compare>,#al d24: 00 10 00 41 add r2,1 d28: 0d 40 51 04 wl16 r8,0x284 d2c: 0d 60 01 03 wh16 r8,0x3 d30: 10 40 01 08 ld32 r8,r8 d34: 0d 40 69 20 wl16 r9,0x340 d38: 0d 60 01 23 wh16 r9,0x3 d3c: 10 40 01 29 ld32 r9,r9 d40: 08 b0 01 04 sar r8,0x4 d44: 20 70 03 e2 movepc rret,8 d48: 14 30 fc b2 br 10 <compare>,#al d4c: 00 10 00 41 add r2,1 d50: 0d 40 51 08 wl16 r8,0x288 d54: 0d 60 01 03 wh16 r8,0x3 d58: 10 40 01 08 ld32 r8,r8 d5c: 0d 40 69 24 wl16 r9,0x344 d60: 0d 60 01 23 wh16 r9,0x3 d64: 10 40 01 29 ld32 r9,r9 d68: 08 b0 01 08 sar r8,0x8 d6c: 20 70 03 e2 movepc rret,8 d70: 14 30 fc a8 br 10 <compare>,#al d74: 00 10 00 41 add r2,1 d78: 0d 40 51 0c wl16 r8,0x28c d7c: 0d 60 01 03 wh16 r8,0x3 d80: 10 40 01 08 ld32 r8,r8 d84: 0d 40 69 28 wl16 r9,0x348 d88: 0d 60 01 23 wh16 r9,0x3 d8c: 10 40 01 29 ld32 r9,r9 d90: 08 b0 01 10 sar r8,0x10 d94: 20 70 03 e2 movepc rret,8 d98: 14 30 fc 9e br 10 <compare>,#al d9c: 00 10 00 41 add r2,1 da0: 0d 40 51 10 wl16 r8,0x290 da4: 0d 60 01 03 wh16 r8,0x3 da8: 10 40 01 08 ld32 r8,r8 dac: 0d 40 69 2c wl16 r9,0x34c db0: 0d 60 01 23 wh16 r9,0x3 db4: 10 40 01 29 ld32 r9,r9 db8: 08 b0 05 00 sar r8,0x20 dbc: 20 70 03 e2 movepc rret,8 dc0: 14 30 fc 94 br 10 <compare>,#al dc4: 00 10 00 41 add r2,1 dc8: 0d 40 51 14 wl16 r8,0x294 dcc: 0d 60 01 03 wh16 r8,0x3 dd0: 10 40 01 08 ld32 r8,r8 dd4: 0d 40 69 30 wl16 r9,0x350 dd8: 0d 60 01 23 wh16 r9,0x3 ddc: 10 40 01 29 ld32 r9,r9 de0: 08 b0 01 01 sar r8,0x1 de4: 20 70 03 e2 movepc rret,8 de8: 14 30 fc 8a br 10 <compare>,#al dec: 00 10 00 41 add r2,1 df0: 0d 40 51 18 wl16 r8,0x298 df4: 0d 60 01 03 wh16 r8,0x3 df8: 10 40 01 08 ld32 r8,r8 dfc: 0d 40 69 34 wl16 r9,0x354 e00: 0d 60 01 23 wh16 r9,0x3 e04: 10 40 01 29 ld32 r9,r9 e08: 08 b0 01 02 sar r8,0x2 e0c: 20 70 03 e2 movepc rret,8 e10: 14 30 fc 80 br 10 <compare>,#al e14: 00 10 00 41 add r2,1 e18: 0d 40 51 1c wl16 r8,0x29c e1c: 0d 60 01 03 wh16 r8,0x3 e20: 10 40 01 08 ld32 r8,r8 e24: 0d 40 69 38 wl16 r9,0x358 e28: 0d 60 01 23 wh16 r9,0x3 e2c: 10 40 01 29 ld32 r9,r9 e30: 08 b0 01 04 sar r8,0x4 e34: 20 70 03 e2 movepc rret,8 e38: 14 30 fc 76 br 10 <compare>,#al e3c: 00 10 00 41 add r2,1 e40: 0d 40 55 00 wl16 r8,0x2a0 e44: 0d 60 01 03 wh16 r8,0x3 e48: 10 40 01 08 ld32 r8,r8 e4c: 0d 40 69 3c wl16 r9,0x35c e50: 0d 60 01 23 wh16 r9,0x3 e54: 10 40 01 29 ld32 r9,r9 e58: 08 b0 01 08 sar r8,0x8 e5c: 20 70 03 e2 movepc rret,8 e60: 14 30 fc 6c br 10 <compare>,#al e64: 00 10 00 41 add r2,1 e68: 0d 40 55 04 wl16 r8,0x2a4 e6c: 0d 60 01 03 wh16 r8,0x3 e70: 10 40 01 08 ld32 r8,r8 e74: 0d 40 6d 20 wl16 r9,0x360 e78: 0d 60 01 23 wh16 r9,0x3 e7c: 10 40 01 29 ld32 r9,r9 e80: 08 b0 01 10 sar r8,0x10 e84: 20 70 03 e2 movepc rret,8 e88: 14 30 fc 62 br 10 <compare>,#al e8c: 00 10 00 41 add r2,1 e90: 0d 40 55 08 wl16 r8,0x2a8 e94: 0d 60 01 03 wh16 r8,0x3 e98: 10 40 01 08 ld32 r8,r8 e9c: 0d 40 6d 24 wl16 r9,0x364 ea0: 0d 60 01 23 wh16 r9,0x3 ea4: 10 40 01 29 ld32 r9,r9 ea8: 08 b0 05 00 sar r8,0x20 eac: 20 70 03 e2 movepc rret,8 eb0: 14 30 fc 58 br 10 <compare>,#al eb4: 00 10 00 41 add r2,1 eb8: 0d 40 55 0c wl16 r8,0x2ac ebc: 0d 60 01 03 wh16 r8,0x3 ec0: 10 40 01 08 ld32 r8,r8 ec4: 0d 40 6d 28 wl16 r9,0x368 ec8: 0d 60 01 23 wh16 r9,0x3 ecc: 10 40 01 29 ld32 r9,r9 ed0: 08 b0 01 01 sar r8,0x1 ed4: 20 70 03 e2 movepc rret,8 ed8: 14 30 fc 4e br 10 <compare>,#al edc: 00 10 00 41 add r2,1 ee0: 0d 40 55 10 wl16 r8,0x2b0 ee4: 0d 60 01 03 wh16 r8,0x3 ee8: 10 40 01 08 ld32 r8,r8 eec: 0d 40 6d 2c wl16 r9,0x36c ef0: 0d 60 01 23 wh16 r9,0x3 ef4: 10 40 01 29 ld32 r9,r9 ef8: 08 b0 01 02 sar r8,0x2 efc: 20 70 03 e2 movepc rret,8 f00: 14 30 fc 44 br 10 <compare>,#al f04: 00 10 00 41 add r2,1 f08: 0d 40 55 14 wl16 r8,0x2b4 f0c: 0d 60 01 03 wh16 r8,0x3 f10: 10 40 01 08 ld32 r8,r8 f14: 0d 40 6d 30 wl16 r9,0x370 f18: 0d 60 01 23 wh16 r9,0x3 f1c: 10 40 01 29 ld32 r9,r9 f20: 08 b0 01 04 sar r8,0x4 f24: 20 70 03 e2 movepc rret,8 f28: 14 30 fc 3a br 10 <compare>,#al f2c: 00 10 00 41 add r2,1 f30: 0d 40 55 18 wl16 r8,0x2b8 f34: 0d 60 01 03 wh16 r8,0x3 f38: 10 40 01 08 ld32 r8,r8 f3c: 0d 40 6d 34 wl16 r9,0x374 f40: 0d 60 01 23 wh16 r9,0x3 f44: 10 40 01 29 ld32 r9,r9 f48: 08 b0 01 08 sar r8,0x8 f4c: 20 70 03 e2 movepc rret,8 f50: 14 30 fc 30 br 10 <compare>,#al f54: 00 10 00 41 add r2,1 f58: 0d 40 55 1c wl16 r8,0x2bc f5c: 0d 60 01 03 wh16 r8,0x3 f60: 10 40 01 08 ld32 r8,r8 f64: 0d 40 6d 38 wl16 r9,0x378 f68: 0d 60 01 23 wh16 r9,0x3 f6c: 10 40 01 29 ld32 r9,r9 f70: 08 b0 01 10 sar r8,0x10 f74: 20 70 03 e2 movepc rret,8 f78: 14 30 fc 26 br 10 <compare>,#al f7c: 00 10 00 41 add r2,1 f80: 0d 40 59 00 wl16 r8,0x2c0 f84: 0d 60 01 03 wh16 r8,0x3 f88: 10 40 01 08 ld32 r8,r8 f8c: 0d 40 6d 3c wl16 r9,0x37c f90: 0d 60 01 23 wh16 r9,0x3 f94: 10 40 01 29 ld32 r9,r9 f98: 08 b0 05 00 sar r8,0x20 f9c: 20 70 03 e2 movepc rret,8 fa0: 14 30 fc 1c br 10 <compare>,#al fa4: 00 10 00 41 add r2,1 fa8: 0d 40 59 04 wl16 r8,0x2c4 fac: 0d 60 01 03 wh16 r8,0x3 fb0: 10 40 01 08 ld32 r8,r8 fb4: 0d 40 71 20 wl16 r9,0x380 fb8: 0d 60 01 23 wh16 r9,0x3 fbc: 10 40 01 29 ld32 r9,r9 fc0: 08 b0 01 01 sar r8,0x1 fc4: 20 70 03 e2 movepc rret,8 fc8: 14 30 fc 12 br 10 <compare>,#al fcc: 00 10 00 41 add r2,1 fd0: 0d 40 59 08 wl16 r8,0x2c8 fd4: 0d 60 01 03 wh16 r8,0x3 fd8: 10 40 01 08 ld32 r8,r8 fdc: 0d 40 71 24 wl16 r9,0x384 fe0: 0d 60 01 23 wh16 r9,0x3 fe4: 10 40 01 29 ld32 r9,r9 fe8: 08 b0 01 02 sar r8,0x2 fec: 20 70 03 e2 movepc rret,8 ff0: 14 30 fc 08 br 10 <compare>,#al ff4: 00 10 00 41 add r2,1 ff8: 0d 40 59 0c wl16 r8,0x2cc ffc: 0d 60 01 03 wh16 r8,0x3 1000: 10 40 01 08 ld32 r8,r8 1004: 0d 40 71 28 wl16 r9,0x388 1008: 0d 60 01 23 wh16 r9,0x3 100c: 10 40 01 29 ld32 r9,r9 1010: 08 b0 01 04 sar r8,0x4 1014: 20 70 03 e2 movepc rret,8 1018: 14 30 fb fe br 10 <compare>,#al 101c: 00 10 00 41 add r2,1 1020: 0d 40 59 10 wl16 r8,0x2d0 1024: 0d 60 01 03 wh16 r8,0x3 1028: 10 40 01 08 ld32 r8,r8 102c: 0d 40 71 2c wl16 r9,0x38c 1030: 0d 60 01 23 wh16 r9,0x3 1034: 10 40 01 29 ld32 r9,r9 1038: 08 b0 01 08 sar r8,0x8 103c: 20 70 03 e2 movepc rret,8 1040: 14 30 fb f4 br 10 <compare>,#al 1044: 00 10 00 41 add r2,1 1048: 0d 40 59 14 wl16 r8,0x2d4 104c: 0d 60 01 03 wh16 r8,0x3 1050: 10 40 01 08 ld32 r8,r8 1054: 0d 40 71 30 wl16 r9,0x390 1058: 0d 60 01 23 wh16 r9,0x3 105c: 10 40 01 29 ld32 r9,r9 1060: 08 b0 01 10 sar r8,0x10 1064: 20 70 03 e2 movepc rret,8 1068: 14 30 fb ea br 10 <compare>,#al 106c: 00 10 00 41 add r2,1 1070: 0d 40 59 18 wl16 r8,0x2d8 1074: 0d 60 01 03 wh16 r8,0x3 1078: 10 40 01 08 ld32 r8,r8 107c: 0d 40 71 34 wl16 r9,0x394 1080: 0d 60 01 23 wh16 r9,0x3 1084: 10 40 01 29 ld32 r9,r9 1088: 08 b0 05 00 sar r8,0x20 108c: 20 70 03 e2 movepc rret,8 1090: 14 30 fb e0 br 10 <compare>,#al 1094: 00 10 00 41 add r2,1 1098: 0d 40 59 1c wl16 r8,0x2dc 109c: 0d 60 01 03 wh16 r8,0x3 10a0: 10 40 01 08 ld32 r8,r8 10a4: 0d 40 71 38 wl16 r9,0x398 10a8: 0d 60 01 23 wh16 r9,0x3 10ac: 10 40 01 29 ld32 r9,r9 10b0: 08 b0 01 03 sar r8,0x3 10b4: 20 70 03 e2 movepc rret,8 10b8: 14 30 fb d6 br 10 <compare>,#al 10bc: 00 10 00 41 add r2,1 10c0: 0d 40 5d 00 wl16 r8,0x2e0 10c4: 0d 60 01 03 wh16 r8,0x3 10c8: 10 40 01 08 ld32 r8,r8 10cc: 0d 40 71 3c wl16 r9,0x39c 10d0: 0d 60 01 23 wh16 r9,0x3 10d4: 10 40 01 29 ld32 r9,r9 10d8: 08 b0 01 07 sar r8,0x7 10dc: 20 70 03 e2 movepc rret,8 10e0: 14 30 fb cc br 10 <compare>,#al 10e4: 00 10 00 41 add r2,1 10e8: 0d 40 5d 04 wl16 r8,0x2e4 10ec: 0d 60 01 03 wh16 r8,0x3 10f0: 10 40 01 08 ld32 r8,r8 10f4: 0d 40 75 20 wl16 r9,0x3a0 10f8: 0d 60 01 23 wh16 r9,0x3 10fc: 10 40 01 29 ld32 r9,r9 1100: 08 b0 01 0f sar r8,0xf 1104: 20 70 03 e2 movepc rret,8 1108: 14 30 fb c2 br 10 <compare>,#al 110c: 00 10 00 41 add r2,1 1110: 0d 40 5d 08 wl16 r8,0x2e8 1114: 0d 60 01 03 wh16 r8,0x3 1118: 10 40 01 08 ld32 r8,r8 111c: 0d 40 75 24 wl16 r9,0x3a4 1120: 0d 60 01 23 wh16 r9,0x3 1124: 10 40 01 29 ld32 r9,r9 1128: 08 b0 01 1f sar r8,0x1f 112c: 20 70 03 e2 movepc rret,8 1130: 14 30 fb b8 br 10 <compare>,#al 1134: 00 10 00 41 add r2,1 1138: 0d 40 5d 0c wl16 r8,0x2ec 113c: 0d 60 01 03 wh16 r8,0x3 1140: 10 40 01 08 ld32 r8,r8 1144: 0d 40 75 28 wl16 r9,0x3a8 1148: 0d 60 01 23 wh16 r9,0x3 114c: 10 40 01 29 ld32 r9,r9 1150: 08 b0 05 1f sar r8,0x3f 1154: 20 70 03 e2 movepc rret,8 1158: 14 30 fb ae br 10 <compare>,#al 115c: 00 10 00 41 add r2,1 1160: 14 30 fb be br 58 <finish>,#al セクション .assert の逆アセンブル: 00020000 <CHECK_FLAG>: 20000: 00 00 00 01 add r0,r1 00020004 <CHECK_FINISH>: 20004: 00 00 00 00 add r0,r0 00020008 <ERROR_TYPE>: 20008: 00 00 00 00 add r0,r0 0002000c <ERROR_NUMBER>: 2000c: 00 00 00 00 add r0,r0 00020010 <ERROR_RESULT>: 20010: 00 00 00 00 add r0,r0 00020014 <ERROR_EXPECT>: 20014: 00 00 00 00 add r0,r0 セクション .data の逆アセンブル: 00030000 <T_SRC0_0>: 30000: 00 00 00 00 add r0,r0 00030004 <T_SRC0_1>: 30004: 00 00 00 00 add r0,r0 00030008 <T_SRC0_2>: 30008: 00 00 00 00 add r0,r0 0003000c <T_SRC0_3>: 3000c: 00 00 00 00 add r0,r0 00030010 <T_SRC0_4>: 30010: 00 00 00 00 add r0,r0 00030014 <T_SRC0_5>: 30014: 00 00 00 00 add r0,r0 00030018 <T_SRC0_6>: 30018: 00 00 00 01 add r0,r1 0003001c <T_SRC0_7>: 3001c: 00 00 00 01 add r0,r1 00030020 <T_SRC0_8>: 30020: 00 00 00 01 add r0,r1 00030024 <T_SRC0_9>: 30024: 00 00 00 01 add r0,r1 00030028 <T_SRC0_10>: 30028: 00 00 00 01 add r0,r1 0003002c <T_SRC0_11>: 3002c: 00 00 00 01 add r0,r1 00030030 <T_SRC0_12>: 30030: 00 00 00 02 add r0,r2 00030034 <T_SRC0_13>: 30034: 00 00 00 02 add r0,r2 00030038 <T_SRC0_14>: 30038: 00 00 00 02 add r0,r2 0003003c <T_SRC0_15>: 3003c: 00 00 00 02 add r0,r2 00030040 <T_SRC0_16>: 30040: 00 00 00 02 add r0,r2 00030044 <T_SRC0_17>: 30044: 00 00 00 02 add r0,r2 00030048 <T_SRC0_18>: 30048: 00 00 00 04 add r0,r4 0003004c <T_SRC0_19>: 3004c: 00 00 00 04 add r0,r4 00030050 <T_SRC0_20>: 30050: 00 00 00 04 add r0,r4 00030054 <T_SRC0_21>: 30054: 00 00 00 04 add r0,r4 00030058 <T_SRC0_22>: 30058: 00 00 00 04 add r0,r4 0003005c <T_SRC0_23>: 3005c: 00 00 00 04 add r0,r4 00030060 <T_SRC0_24>: 30060: 00 00 00 08 add r0,r8 00030064 <T_SRC0_25>: 30064: 00 00 00 08 add r0,r8 00030068 <T_SRC0_26>: 30068: 00 00 00 08 add r0,r8 0003006c <T_SRC0_27>: 3006c: 00 00 00 08 add r0,r8 00030070 <T_SRC0_28>: 30070: 00 00 00 08 add r0,r8 00030074 <T_SRC0_29>: 30074: 00 00 00 08 add r0,r8 00030078 <T_SRC0_30>: 30078: 00 00 00 10 add r0,r16 0003007c <T_SRC0_31>: 3007c: 00 00 00 10 add r0,r16 00030080 <T_SRC0_32>: 30080: 00 00 00 10 add r0,r16 00030084 <T_SRC0_33>: 30084: 00 00 00 10 add r0,r16 00030088 <T_SRC0_34>: 30088: 00 00 00 10 add r0,r16 0003008c <T_SRC0_35>: 3008c: 00 00 00 10 add r0,r16 00030090 <T_SRC0_36>: 30090: 00 00 00 20 add r1,r0 00030094 <T_SRC0_37>: 30094: 00 00 00 20 add r1,r0 00030098 <T_SRC0_38>: 30098: 00 00 00 20 add r1,r0 0003009c <T_SRC0_39>: 3009c: 00 00 00 20 add r1,r0 000300a0 <T_SRC0_40>: 300a0: 00 00 00 20 add r1,r0 000300a4 <T_SRC0_41>: 300a4: 00 00 00 20 add r1,r0 000300a8 <T_SRC0_42>: 300a8: 00 00 00 03 add r0,r3 000300ac <T_SRC0_43>: 300ac: 00 00 00 07 add r0,rtmp 000300b0 <T_SRC0_44>: 300b0: 00 00 00 0f add r0,r15 000300b4 <T_SRC0_45>: 300b4: 00 00 00 1f add r0,rret 000300b8 <T_SRC0_46>: 300b8: 00 00 00 3f add r1,rret 000300bc <T_SRC1_0>: 300bc: 00 00 00 01 add r0,r1 000300c0 <T_SRC1_1>: 300c0: 00 00 00 02 add r0,r2 000300c4 <T_SRC1_2>: 300c4: 00 00 00 04 add r0,r4 000300c8 <T_SRC1_3>: 300c8: 00 00 00 08 add r0,r8 000300cc <T_SRC1_4>: 300cc: 00 00 00 10 add r0,r16 000300d0 <T_SRC1_5>: 300d0: 00 00 00 20 add r1,r0 000300d4 <T_SRC1_6>: 300d4: 00 00 00 01 add r0,r1 000300d8 <T_SRC1_7>: 300d8: 00 00 00 02 add r0,r2 000300dc <T_SRC1_8>: 300dc: 00 00 00 04 add r0,r4 000300e0 <T_SRC1_9>: 300e0: 00 00 00 08 add r0,r8 000300e4 <T_SRC1_10>: 300e4: 00 00 00 10 add r0,r16 000300e8 <T_SRC1_11>: 300e8: 00 00 00 20 add r1,r0 000300ec <T_SRC1_12>: 300ec: 00 00 00 01 add r0,r1 000300f0 <T_SRC1_13>: 300f0: 00 00 00 02 add r0,r2 000300f4 <T_SRC1_14>: 300f4: 00 00 00 04 add r0,r4 000300f8 <T_SRC1_15>: 300f8: 00 00 00 08 add r0,r8 000300fc <T_SRC1_16>: 300fc: 00 00 00 10 add r0,r16 00030100 <T_SRC1_17>: 30100: 00 00 00 20 add r1,r0 00030104 <T_SRC1_18>: 30104: 00 00 00 01 add r0,r1 00030108 <T_SRC1_19>: 30108: 00 00 00 02 add r0,r2 0003010c <T_SRC1_20>: 3010c: 00 00 00 04 add r0,r4 00030110 <T_SRC1_21>: 30110: 00 00 00 08 add r0,r8 00030114 <T_SRC1_22>: 30114: 00 00 00 10 add r0,r16 00030118 <T_SRC1_23>: 30118: 00 00 00 20 add r1,r0 0003011c <T_SRC1_24>: 3011c: 00 00 00 01 add r0,r1 00030120 <T_SRC1_25>: 30120: 00 00 00 02 add r0,r2 00030124 <T_SRC1_26>: 30124: 00 00 00 04 add r0,r4 00030128 <T_SRC1_27>: 30128: 00 00 00 08 add r0,r8 0003012c <T_SRC1_28>: 3012c: 00 00 00 10 add r0,r16 00030130 <T_SRC1_29>: 30130: 00 00 00 20 add r1,r0 00030134 <T_SRC1_30>: 30134: 00 00 00 01 add r0,r1 00030138 <T_SRC1_31>: 30138: 00 00 00 02 add r0,r2 0003013c <T_SRC1_32>: 3013c: 00 00 00 04 add r0,r4 00030140 <T_SRC1_33>: 30140: 00 00 00 08 add r0,r8 00030144 <T_SRC1_34>: 30144: 00 00 00 10 add r0,r16 00030148 <T_SRC1_35>: 30148: 00 00 00 20 add r1,r0 0003014c <T_SRC1_36>: 3014c: 00 00 00 01 add r0,r1 00030150 <T_SRC1_37>: 30150: 00 00 00 02 add r0,r2 00030154 <T_SRC1_38>: 30154: 00 00 00 04 add r0,r4 00030158 <T_SRC1_39>: 30158: 00 00 00 08 add r0,r8 0003015c <T_SRC1_40>: 3015c: 00 00 00 10 add r0,r16 00030160 <T_SRC1_41>: 30160: 00 00 00 20 add r1,r0 00030164 <T_SRC1_42>: 30164: 00 00 00 03 add r0,r3 00030168 <T_SRC1_43>: 30168: 00 00 00 07 add r0,rtmp 0003016c <T_SRC1_44>: 3016c: 00 00 00 0f add r0,r15 00030170 <T_SRC1_45>: 30170: 00 00 00 1f add r0,rret 00030174 <T_SRC1_46>: 30174: 00 00 00 3f add r1,rret 00030178 <T_EXPECT0>: 30178: 00 00 00 00 add r0,r0 0003017c <T_EXPECT1>: 3017c: 00 00 00 00 add r0,r0 00030180 <T_EXPECT2>: 30180: 00 00 00 00 add r0,r0 00030184 <T_EXPECT3>: 30184: 00 00 00 00 add r0,r0 00030188 <T_EXPECT4>: 30188: 00 00 00 00 add r0,r0 0003018c <T_EXPECT5>: 3018c: 00 00 00 00 add r0,r0 00030190 <T_EXPECT6>: 30190: 00 00 00 00 add r0,r0 00030194 <T_EXPECT7>: 30194: 00 00 00 00 add r0,r0 00030198 <T_EXPECT8>: 30198: 00 00 00 00 add r0,r0 0003019c <T_EXPECT9>: 3019c: 00 00 00 00 add r0,r0 000301a0 <T_EXPECT10>: 301a0: 00 00 00 00 add r0,r0 000301a4 <T_EXPECT11>: 301a4: 00 00 00 00 add r0,r0 000301a8 <T_EXPECT12>: 301a8: 00 00 00 01 add r0,r1 000301ac <T_EXPECT13>: 301ac: 00 00 00 00 add r0,r0 000301b0 <T_EXPECT14>: 301b0: 00 00 00 00 add r0,r0 000301b4 <T_EXPECT15>: 301b4: 00 00 00 00 add r0,r0 000301b8 <T_EXPECT16>: 301b8: 00 00 00 00 add r0,r0 000301bc <T_EXPECT17>: 301bc: 00 00 00 00 add r0,r0 000301c0 <T_EXPECT18>: 301c0: 00 00 00 02 add r0,r2 000301c4 <T_EXPECT19>: 301c4: 00 00 00 01 add r0,r1 000301c8 <T_EXPECT20>: 301c8: 00 00 00 00 add r0,r0 000301cc <T_EXPECT21>: 301cc: 00 00 00 00 add r0,r0 000301d0 <T_EXPECT22>: 301d0: 00 00 00 00 add r0,r0 000301d4 <T_EXPECT23>: 301d4: 00 00 00 00 add r0,r0 000301d8 <T_EXPECT24>: 301d8: 00 00 00 04 add r0,r4 000301dc <T_EXPECT25>: 301dc: 00 00 00 02 add r0,r2 000301e0 <T_EXPECT26>: 301e0: 00 00 00 00 add r0,r0 000301e4 <T_EXPECT27>: 301e4: 00 00 00 00 add r0,r0 000301e8 <T_EXPECT28>: 301e8: 00 00 00 00 add r0,r0 000301ec <T_EXPECT29>: 301ec: 00 00 00 00 add r0,r0 000301f0 <T_EXPECT30>: 301f0: 00 00 00 08 add r0,r8 000301f4 <T_EXPECT31>: 301f4: 00 00 00 04 add r0,r4 000301f8 <T_EXPECT32>: 301f8: 00 00 00 01 add r0,r1 000301fc <T_EXPECT33>: 301fc: 00 00 00 00 add r0,r0 00030200 <T_EXPECT34>: 30200: 00 00 00 00 add r0,r0 00030204 <T_EXPECT35>: 30204: 00 00 00 00 add r0,r0 00030208 <T_EXPECT36>: 30208: 00 00 00 10 add r0,r16 0003020c <T_EXPECT37>: 3020c: 00 00 00 08 add r0,r8 00030210 <T_EXPECT38>: 30210: 00 00 00 02 add r0,r2 00030214 <T_EXPECT39>: 30214: 00 00 00 00 add r0,r0 00030218 <T_EXPECT40>: 30218: 00 00 00 00 add r0,r0 0003021c <T_EXPECT41>: 3021c: 00 00 00 00 add r0,r0 00030220 <T_EXPECT42>: 30220: 00 00 00 00 add r0,r0 00030224 <T_EXPECT43>: 30224: 00 00 00 00 add r0,r0 00030228 <T_EXPECT44>: 30228: 00 00 00 00 add r0,r0 0003022c <T_EXPECT45>: 3022c: 00 00 00 00 add r0,r0 00030230 <T_EXPECT46>: 30230: 00 00 00 00 add r0,r0 00030234 <T_IMM_DST0>: 30234: 00 00 00 00 add r0,r0 00030238 <T_IMM_DST1>: 30238: 00 00 00 00 add r0,r0 0003023c <T_IMM_DST2>: 3023c: 00 00 00 00 add r0,r0 00030240 <T_IMM_DST3>: 30240: 00 00 00 00 add r0,r0 00030244 <T_IMM_DST4>: 30244: 00 00 00 00 add r0,r0 00030248 <T_IMM_DST5>: 30248: 00 00 00 00 add r0,r0 0003024c <T_IMM_DST6>: 3024c: 00 00 00 01 add r0,r1 00030250 <T_IMM_DST7>: 30250: 00 00 00 01 add r0,r1 00030254 <T_IMM_DST8>: 30254: 00 00 00 01 add r0,r1 00030258 <T_IMM_DST9>: 30258: 00 00 00 01 add r0,r1 0003025c <T_IMM_DST10>: 3025c: 00 00 00 01 add r0,r1 00030260 <T_IMM_DST11>: 30260: 00 00 00 01 add r0,r1 00030264 <T_IMM_DST12>: 30264: 00 00 00 02 add r0,r2 00030268 <T_IMM_DST13>: 30268: 00 00 00 02 add r0,r2 0003026c <T_IMM_DST14>: 3026c: 00 00 00 02 add r0,r2 00030270 <T_IMM_DST15>: 30270: 00 00 00 02 add r0,r2 00030274 <T_IMM_DST16>: 30274: 00 00 00 02 add r0,r2 00030278 <T_IMM_DST17>: 30278: 00 00 00 02 add r0,r2 0003027c <T_IMM_DST18>: 3027c: 00 00 00 04 add r0,r4 00030280 <T_IMM_DST19>: 30280: 00 00 00 04 add r0,r4 00030284 <T_IMM_DST20>: 30284: 00 00 00 04 add r0,r4 00030288 <T_IMM_DST21>: 30288: 00 00 00 04 add r0,r4 0003028c <T_IMM_DST22>: 3028c: 00 00 00 04 add r0,r4 00030290 <T_IMM_DST23>: 30290: 00 00 00 04 add r0,r4 00030294 <T_IMM_DST24>: 30294: 00 00 00 08 add r0,r8 00030298 <T_IMM_DST25>: 30298: 00 00 00 08 add r0,r8 0003029c <T_IMM_DST26>: 3029c: 00 00 00 08 add r0,r8 000302a0 <T_IMM_DST27>: 302a0: 00 00 00 08 add r0,r8 000302a4 <T_IMM_DST28>: 302a4: 00 00 00 08 add r0,r8 000302a8 <T_IMM_DST29>: 302a8: 00 00 00 08 add r0,r8 000302ac <T_IMM_DST30>: 302ac: 00 00 00 10 add r0,r16 000302b0 <T_IMM_DST31>: 302b0: 00 00 00 10 add r0,r16 000302b4 <T_IMM_DST32>: 302b4: 00 00 00 10 add r0,r16 000302b8 <T_IMM_DST33>: 302b8: 00 00 00 10 add r0,r16 000302bc <T_IMM_DST34>: 302bc: 00 00 00 10 add r0,r16 000302c0 <T_IMM_DST35>: 302c0: 00 00 00 10 add r0,r16 000302c4 <T_IMM_DST36>: 302c4: 00 00 00 20 add r1,r0 000302c8 <T_IMM_DST37>: 302c8: 00 00 00 20 add r1,r0 000302cc <T_IMM_DST38>: 302cc: 00 00 00 20 add r1,r0 000302d0 <T_IMM_DST39>: 302d0: 00 00 00 20 add r1,r0 000302d4 <T_IMM_DST40>: 302d4: 00 00 00 20 add r1,r0 000302d8 <T_IMM_DST41>: 302d8: 00 00 00 20 add r1,r0 000302dc <T_IMM_DST42>: 302dc: 00 00 00 03 add r0,r3 000302e0 <T_IMM_DST43>: 302e0: 00 00 00 07 add r0,rtmp 000302e4 <T_IMM_DST44>: 302e4: 00 00 00 0f add r0,r15 000302e8 <T_IMM_DST45>: 302e8: 00 00 00 1f add r0,rret 000302ec <T_IMM_DST46>: 302ec: 00 00 00 3f add r1,rret 000302f0 <T_IMM_EXPECT0>: 302f0: 00 00 00 00 add r0,r0 000302f4 <T_IMM_EXPECT1>: 302f4: 00 00 00 00 add r0,r0 000302f8 <T_IMM_EXPECT2>: 302f8: 00 00 00 00 add r0,r0 000302fc <T_IMM_EXPECT3>: 302fc: 00 00 00 00 add r0,r0 00030300 <T_IMM_EXPECT4>: 30300: 00 00 00 00 add r0,r0 00030304 <T_IMM_EXPECT5>: 30304: 00 00 00 00 add r0,r0 00030308 <T_IMM_EXPECT6>: 30308: 00 00 00 00 add r0,r0 0003030c <T_IMM_EXPECT7>: 3030c: 00 00 00 00 add r0,r0 00030310 <T_IMM_EXPECT8>: 30310: 00 00 00 00 add r0,r0 00030314 <T_IMM_EXPECT9>: 30314: 00 00 00 00 add r0,r0 00030318 <T_IMM_EXPECT10>: 30318: 00 00 00 00 add r0,r0 0003031c <T_IMM_EXPECT11>: 3031c: 00 00 00 00 add r0,r0 00030320 <T_IMM_EXPECT12>: 30320: 00 00 00 01 add r0,r1 00030324 <T_IMM_EXPECT13>: 30324: 00 00 00 00 add r0,r0 00030328 <T_IMM_EXPECT14>: 30328: 00 00 00 00 add r0,r0 0003032c <T_IMM_EXPECT15>: 3032c: 00 00 00 00 add r0,r0 00030330 <T_IMM_EXPECT16>: 30330: 00 00 00 00 add r0,r0 00030334 <T_IMM_EXPECT17>: 30334: 00 00 00 00 add r0,r0 00030338 <T_IMM_EXPECT18>: 30338: 00 00 00 02 add r0,r2 0003033c <T_IMM_EXPECT19>: 3033c: 00 00 00 01 add r0,r1 00030340 <T_IMM_EXPECT20>: 30340: 00 00 00 00 add r0,r0 00030344 <T_IMM_EXPECT21>: 30344: 00 00 00 00 add r0,r0 00030348 <T_IMM_EXPECT22>: 30348: 00 00 00 00 add r0,r0 0003034c <T_IMM_EXPECT23>: 3034c: 00 00 00 00 add r0,r0 00030350 <T_IMM_EXPECT24>: 30350: 00 00 00 04 add r0,r4 00030354 <T_IMM_EXPECT25>: 30354: 00 00 00 02 add r0,r2 00030358 <T_IMM_EXPECT26>: 30358: 00 00 00 00 add r0,r0 0003035c <T_IMM_EXPECT27>: 3035c: 00 00 00 00 add r0,r0 00030360 <T_IMM_EXPECT28>: 30360: 00 00 00 00 add r0,r0 00030364 <T_IMM_EXPECT29>: 30364: 00 00 00 00 add r0,r0 00030368 <T_IMM_EXPECT30>: 30368: 00 00 00 08 add r0,r8 0003036c <T_IMM_EXPECT31>: 3036c: 00 00 00 04 add r0,r4 00030370 <T_IMM_EXPECT32>: 30370: 00 00 00 01 add r0,r1 00030374 <T_IMM_EXPECT33>: 30374: 00 00 00 00 add r0,r0 00030378 <T_IMM_EXPECT34>: 30378: 00 00 00 00 add r0,r0 0003037c <T_IMM_EXPECT35>: 3037c: 00 00 00 00 add r0,r0 00030380 <T_IMM_EXPECT36>: 30380: 00 00 00 10 add r0,r16 00030384 <T_IMM_EXPECT37>: 30384: 00 00 00 08 add r0,r8 00030388 <T_IMM_EXPECT38>: 30388: 00 00 00 02 add r0,r2 0003038c <T_IMM_EXPECT39>: 3038c: 00 00 00 00 add r0,r0 00030390 <T_IMM_EXPECT40>: 30390: 00 00 00 00 add r0,r0 00030394 <T_IMM_EXPECT41>: 30394: 00 00 00 00 add r0,r0 00030398 <T_IMM_EXPECT42>: 30398: 00 00 00 00 add r0,r0 0003039c <T_IMM_EXPECT43>: 3039c: 00 00 00 00 add r0,r0 000303a0 <T_IMM_EXPECT44>: 303a0: 00 00 00 00 add r0,r0 000303a4 <T_IMM_EXPECT45>: 303a4: 00 00 00 00 add r0,r0 000303a8 <T_IMM_EXPECT46>: 303a8: 00 00 00 00 add r0,r0 セクション .stack の逆アセンブル: 000f0000 <STACK_INDEX>: f0000: 00 00 00 00 add r0,r0
// Copyright (c) YugaByte, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software distributed under the License // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express // or implied. See the License for the specific language governing permissions and limitations // under the License. // #include "yb/util/cross_thread_mutex.h" namespace yb { void CrossThreadMutex::lock() { std::unique_lock<std::mutex> lk(mutex_); condition_variable_.wait(lk, NotLockedLambda()); is_locked_ = true; } void CrossThreadMutex::unlock() { { std::lock_guard<std::mutex> lk(mutex_); is_locked_ = false; } condition_variable_.notify_one(); } } // namespace yb
; A291271: The arithmetic function v_4(n,2). ; 0,1,0,2,2,3,2,4,4,5,4,6,6,7,6,8,8,9,8,10,10,11,10,12,12,13,12,14,14,15,14,16,16,17,16,18,18,19,18,20,20,21,20,22,22,23,22,24,24,25,24,26,26,27,26,28,28,29,28,30,30,31,30,32,32,33,32,34,34 add $0,2 mov $1,$0 gcd $1,262148 sub $0,$1 div $0,2
// Copyright (c) 2011-2013 The Bitcoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #define BOOST_TEST_MODULE Bitcoin Test Suite #include "main.h" #include "txdb.h" #include "ui_interface.h" #include "util.h" #include "activemasternode.h" #ifdef ENABLE_WALLET #include "db.h" #include "wallet.h" #endif #include <boost/filesystem.hpp> #include <boost/test/unit_test.hpp> CWallet* pwalletMain; extern bool fPrintToConsole; extern void noui_connect(); struct TestingSetup { CCoinsViewDB *pcoinsdbview; boost::filesystem::path pathTemp; boost::thread_group threadGroup; TestingSetup() { fPrintToDebugLog = false; // don't want to write to debug.log file noui_connect(); #ifdef ENABLE_WALLET bitdb.MakeMock(); #endif pathTemp = GetTempPath() / strprintf("test_lexium_%lu_%i", (unsigned long)GetTime(), (int)(GetRand(100000))); boost::filesystem::create_directories(pathTemp); mapArgs["-datadir"] = pathTemp.string(); pblocktree = new CBlockTreeDB(1 << 20, true); pcoinsdbview = new CCoinsViewDB(1 << 23, true); pcoinsTip = new CCoinsViewCache(*pcoinsdbview); InitBlockIndex(); #ifdef ENABLE_WALLET bool fFirstRun; pwalletMain = new CWallet("wallet.dat"); pwalletMain->LoadWallet(fFirstRun); RegisterWallet(pwalletMain); #endif nScriptCheckThreads = 3; for (int i=0; i < nScriptCheckThreads-1; i++) threadGroup.create_thread(&ThreadScriptCheck); RegisterNodeSignals(GetNodeSignals()); } ~TestingSetup() { threadGroup.interrupt_all(); threadGroup.join_all(); UnregisterNodeSignals(GetNodeSignals()); #ifdef ENABLE_WALLET delete pwalletMain; pwalletMain = NULL; #endif delete pcoinsTip; delete pcoinsdbview; delete pblocktree; #ifdef ENABLE_WALLET bitdb.Flush(true); #endif boost::filesystem::remove_all(pathTemp); } }; BOOST_GLOBAL_FIXTURE(TestingSetup); void Shutdown(void* parg) { exit(0); } void StartShutdown() { exit(0); } bool ShutdownRequested() { return false; }
section .text global _start _start: sub ah, ah sub al, '4' sub al, '3' aas or al, 30h mov [result], ax mov edx, len mov ecx, msg mov ebx, 1 mov eax, 4 int 0x80 ;kernel mov edx, 1 mov ecx, result mov ebx, 1 mov eax, 4 int 0x80 mov eax, 1 int 0x80 section .data msg db "result :", 0xA len equ $ -msg section .bss res resb 1 ;ouput ;result : ; 1
; A015001: q-factorial numbers for q=3. ; 1,1,4,52,2080,251680,91611520,100131391360,328430963660800,3232089113385932800,95424198983606279987200,8452007576574959037306265600,2245867453247498115393020895232000,1790317944898228845164815929864036352000,4281516720136995911550134659214965111226368000,30717540477337030728608598256208784087133349576704000,661144682008296753702905159363753895069642450945247805440000,42690165669994964058633636075435497468712313698573177362333040640000 mov $2,1 lpb $0 sub $0,1 add $3,1 mul $2,$3 mul $3,3 lpe mov $0,$2
; A020786: Decimal expansion of 1/sqrt(29). ; Submitted by Christian Krause ; 1,8,5,6,9,5,3,3,8,1,7,7,0,5,1,8,6,3,1,4,6,5,7,6,2,2,3,8,4,6,2,1,8,2,6,0,5,6,1,9,0,0,6,9,5,2,2,9,1,3,0,6,4,9,5,7,5,1,8,5,8,1,6,2,0,7,4,7,0,5,5,0,4,4,2,3,3,3,0,5,8,3,7,5,0,5,6,3,3,7,2,9,9,3,0,4,6,7,1,8 mov $1,1 mov $2,1 mov $3,$0 add $3,8 mov $4,$0 add $4,3 mov $7,10 pow $7,$4 mov $9,10 lpb $3 mov $0,2 mov $4,$2 pow $4,2 mul $4,29 mov $5,$1 pow $5,2 add $4,$5 mov $6,$1 mov $1,$4 mul $6,$2 mul $6,2 mov $2,$6 mov $8,$4 div $8,$7 max $8,2 div $1,$8 div $2,$8 sub $3,1 lpe mov $3,$9 pow $3,$0 div $2,$3 mov $0,$2 mod $0,10
dnl AMD K6-2 mpn_popcount, mpn_hamdist -- mpn bit population count and dnl hamming distance. dnl Copyright 2000, 2001, 2002 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or dnl modify it under the terms of the GNU Lesser General Public License as dnl published by the Free Software Foundation; either version 2.1 of the dnl License, or (at your option) any later version. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl Lesser General Public License for more details. dnl dnl You should have received a copy of the GNU Lesser General Public dnl License along with the GNU MP Library; see the file COPYING.LIB. If dnl not, write to the Free Software Foundation, Inc., 51 Franklin Street, dnl Fifth Floor, Boston, MA 02110-1301, USA. include(`../config.m4') C popcount hamdist C K6-2: 9.0 11.5 cycles/limb C K6: 12.5 13.0 C unsigned long mpn_popcount (mp_srcptr src, mp_size_t size); C unsigned long mpn_hamdist (mp_srcptr src, mp_srcptr src2, mp_size_t size); C C The code here isn't optimal, but it's already a 2x speedup over the plain C integer mpn/generic/popcount.c,hamdist.c. define(`OPERATION_popcount',1) ifdef(`OPERATION_popcount',, `ifdef(`OPERATION_hamdist',, `m4_error(`Need OPERATION_popcount or OPERATION_hamdist ')m4exit(1)')') define(HAM, m4_assert_numargs(1) `ifdef(`OPERATION_hamdist',`$1')') define(POP, m4_assert_numargs(1) `ifdef(`OPERATION_popcount',`$1')') HAM(` defframe(PARAM_SIZE, 12) defframe(PARAM_SRC2, 8) defframe(PARAM_SRC, 4) define(M4_function,mpn_hamdist) ') POP(` defframe(PARAM_SIZE, 8) defframe(PARAM_SRC, 4) define(M4_function,mpn_popcount) ') ifdef(`PIC',,` dnl non-PIC RODATA ALIGN(8) L(rodata_AAAAAAAAAAAAAAAA): .long 0xAAAAAAAA .long 0xAAAAAAAA L(rodata_3333333333333333): .long 0x33333333 .long 0x33333333 L(rodata_0F0F0F0F0F0F0F0F): .long 0x0F0F0F0F .long 0x0F0F0F0F L(rodata_000000FF000000FF): .long 0x000000FF .long 0x000000FF ') TEXT ALIGN(32) POP(`ifdef(`PIC', ` C avoid shrl crossing a 32-byte boundary nop')') PROLOGUE(M4_function) deflit(`FRAME',0) movl PARAM_SIZE, %ecx ifdef(`PIC',` movl $0xAAAAAAAA, %eax movl $0x33333333, %edx movd %eax, %mm7 movd %edx, %mm6 movl $0x0F0F0F0F, %eax movl $0x000000FF, %edx punpckldq %mm7, %mm7 punpckldq %mm6, %mm6 movd %eax, %mm5 movd %edx, %mm4 punpckldq %mm5, %mm5 punpckldq %mm4, %mm4 ',` movq L(rodata_AAAAAAAAAAAAAAAA), %mm7 movq L(rodata_3333333333333333), %mm6 movq L(rodata_0F0F0F0F0F0F0F0F), %mm5 movq L(rodata_000000FF000000FF), %mm4 ') define(REG_AAAAAAAAAAAAAAAA, %mm7) define(REG_3333333333333333, %mm6) define(REG_0F0F0F0F0F0F0F0F, %mm5) define(REG_000000FF000000FF, %mm4) movl PARAM_SRC, %eax HAM(` movl PARAM_SRC2, %edx') pxor %mm2, %mm2 C total shrl %ecx jnc L(top) Zdisp( movd, 0,(%eax,%ecx,8), %mm1) HAM(` Zdisp( movd, 0,(%edx,%ecx,8), %mm0) pxor %mm0, %mm1 ') incl %ecx jmp L(loaded) ALIGN(16) POP(` nop C alignment to avoid crossing 32-byte boundaries') L(top): C eax src C ebx C ecx counter, qwords, decrementing C edx [hamdist] src2 C C mm0 (scratch) C mm1 (scratch) C mm2 total (low dword) C mm3 C mm4 \ C mm5 | special constants C mm6 | C mm7 / movq -8(%eax,%ecx,8), %mm1 HAM(` pxor -8(%edx,%ecx,8), %mm1') L(loaded): movq %mm1, %mm0 pand REG_AAAAAAAAAAAAAAAA, %mm1 psrlq $1, %mm1 HAM(` nop C code alignment') psubd %mm1, %mm0 C bit pairs HAM(` nop C code alignment') movq %mm0, %mm1 psrlq $2, %mm0 pand REG_3333333333333333, %mm0 pand REG_3333333333333333, %mm1 paddd %mm1, %mm0 C nibbles movq %mm0, %mm1 psrlq $4, %mm0 pand REG_0F0F0F0F0F0F0F0F, %mm0 pand REG_0F0F0F0F0F0F0F0F, %mm1 paddd %mm1, %mm0 C bytes movq %mm0, %mm1 psrlq $8, %mm0 paddb %mm1, %mm0 C words movq %mm0, %mm1 psrlq $16, %mm0 paddd %mm1, %mm0 C dwords pand REG_000000FF000000FF, %mm0 paddd %mm0, %mm2 C low to total psrlq $32, %mm0 paddd %mm0, %mm2 C high to total loop L(top) movd %mm2, %eax emms ret EPILOGUE()
; A108171: Tribonacci version of A076662 using beta positive real Pisot root of x^3 - x^2 - x - 1. ; 4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3,4,3,3,4,3,4,3,3 mov $5,$0 mov $7,2 lpb $7 mov $0,$5 sub $7,1 add $0,$7 mov $4,$0 mul $0,2 lpb $0 sub $0,1 add $4,4 lpe mov $3,2 mul $4,2 mov $2,$4 sub $2,1 div $2,47 add $3,$4 div $3,2 add $3,$2 mov $6,$3 mov $8,$7 lpb $8 mov $1,$6 sub $8,1 lpe lpe lpb $5 sub $1,$6 mov $5,0 lpe sub $1,6
; A076839: A simple example of the Lyness 5-cycle: a(1) = a(2) = 1; a(n) = (a(n-1)+1)/a(n-2) (for n>2). ; 1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2,1,1,2,3,2 bin $0,2 pow $0,3 mod $0,5 mov $1,$0 add $1,1
; A208971: Number of 4-bead necklaces labeled with numbers -n..n allowing reversal, with sum zero and first and second differences in -n..n. ; 1,3,4,8,11,18,24,35,45,61,76,98,119,148,176,213,249,295,340,396,451,518,584,663,741,833,924,1030,1135,1256,1376,1513,1649,1803,1956,2128,2299,2490,2680,2891,3101,3333,3564,3818,4071,4348,4624,4925,5225,5551,5876 mov $1,1 mov $3,1 lpb $0 add $2,$3 add $2,$0 trn $0,2 add $1,$2 trn $3,5 add $4,2 sub $2,$4 lpe
org $c2ecbb base $82ecbb jsr seed_display org $c2f800 base $82f800 seed_display: pha phx php rep #$30 lda.l $420000 and #$003f asl asl asl tay ldx #$0000 - lda WordTable, y and #$00ff asl phx tax lda CharTable, x plx sta $7fc052, x inx inx iny cpx #$000E bne - lda.l $420001 and #$003f asl asl asl tay ldx #$0000 - lda WordTable, y and #$00ff asl phx tax lda CharTable, x plx sta $7fc060, x inx inx iny cpx #$000E bne - lda.l $420002 and #$003f asl asl asl tay ldx #$0000 - lda WordTable, y and #$00ff asl phx tax lda CharTable, x plx sta $7fc092, x inx inx iny cpx #$000E bne - lda.l $420003 and #$003f asl asl asl tay ldx #$0000 - lda WordTable, y and #$00ff asl phx tax lda CharTable, x plx sta $7fc0a0, x inx inx iny cpx #$000E bne - plp plx pla ldx #$07fe rts CharTable: ; 0x00 0x0F dw $000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f ; 0x10 0x0F dw $000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f,$000f ; 0x20 0x0F dw $000f,$0084,$002d,$000f,$000f,$000f,$000f,$0022,$008a,$008b,$000f,$0086,$0089,$0087,$0088,$000f NumTable: ; 0x30 0x0F dw $0060,$0061,$0062,$0063,$0064,$0065,$0066,$0067,$0068,$0069,$000f,$000f,$000f,$000f,$000f,$0085 ; 0x40 0x0F dw $000f,$006a,$006b,$006c,$006d,$006e,$006f,$0070,$0071,$0072,$0073,$0074,$0075,$0076,$0077,$0078 ; 0x50 0x0F dw $0079,$007a,$007b,$007c,$007d,$007e,$007f,$0080,$0081,$0082,$0083,$000f,$000f,$000f,$000f,$000f WordTable: db "GEEMER " db "RIPPER " db "ATOMIC " db "POWAMP " db "SCISER " db "NAMIHE " db "PUROMI " db "ALCOON " db "BEETOM " db "OWTCH " db "ZEBBO " db "ZEELA " db "HOLTZ " db "VIOLA " db "WAVER " db "RINKA " db "BOYON " db "CHOOT " db "KAGO " db "SKREE " db "COVERN " db "EVIR " db "TATORI " db "OUM " db "PUYO " db "YARD " db "ZOA " db "FUNE " db "GAMET " db "GERUTA " db "SOVA " db "BULL " db "ARRGI " db "BABUSU " db "BORU " db "HACHI " db "BABURU " db "TAINON " db "GERUDO " db "GIBO " db "KOPPI " db "PON " db "HOBA " db "HYU " db "KISU " db "KYUNE " db "RIBA " db "MEDUSA " db "TERU " db "FANGIN " db "PIKKU " db "POPO " db "NOMOSU " db "GUZU " db "AIGORU " db "ROPA " db "GAPURA " db "HEISHI " db "SUTARU " db "TOZOKU " db "TOPPO " db "WAINDA " db "KURIPI " db "ZORA "
; ; FILENAME : f64_fpclass.asm ; ; DESCRIPTION : ; different implementation of fma ops ; some of them are not "perfect" fma operations ; they only use the additional 11bits of precision ; between f64 and f80 ; ; assembly module written for MASM/NASM ; ; AUTHOR : Rainer Erdmann ; ; Copyright 2016-2019 Rainer Erdmann ; ; License: see accompanying file license.txt ; ; CHANGES : ; ; REF NO VERSION DATE WHO DETAIL ; IFDEF @Version INCLUDE common.masm ELSE INCLUDE 'common.nasm' ENDIF USE_XMM EQU 1 USE_GP EQU 0 IMPORT M7FF, ?M7FF@@3XA IMPORT D_INF, ?D_INF@@3NA IFDEF _M_X64 ; 64bit ; x64 - x64 - x64 - x64 - x64 - x64 - x64 - x64 - x64 - x64 - x64 .data INFS dq 0ffe0000000000000h .code ; counterpart to our __f128 + __f256 fpclass ; we have the following definition: ; -1 < 0 ; 0 == 0 ; 1 > 0 ; 2 +/-INF ; 3 +/-NAN ; int __cdecl fpclassd(double) ENTRY fpclassd, YAHN@Z ; ~5.5 SAN ; ~12.5 HAS ??? pextrw eax, xmm0, 3 ; hi word xor edx, edx btr eax, 15 ; make positive setc dl ; remember sign cmp eax, 07ff0h jge .z10ni ; NAN/INF test eax, eax jz .z10dz ; DEN/ZERO mov eax, 1 sub eax, edx sub eax, edx ret ; x is +/-NAN or +/-INF .z10ni: ; NAN/INF movq rcx, xmm0 xor eax, eax shl rcx, 12 ; shift out exp+sign setnz al ; 1 on NAN add eax, 2 ret ; x is DEN or ZERO; edx is 0 if pos, 1 if neg .z10dz: ; DEN/ZERO movq rcx, xmm0 xor eax, eax shl rcx, 1 ; shift out sign setnz al and edx, eax sub eax, edx sub eax, edx ret ; int __cdecl _isnand(double) ENTRY _isnand, YAHN@Z xor eax, eax comisd xmm0, xmm0 setp al ret .data ALIGN 16 M800 dq 08000000000000000h, 08000000000000000h M3FE dq 03fe0000000000000h, 03fe0000000000000h .code ; round from trunc(x +/- 0.5) ALIGN 16 ;"double __cdecl _roundd(double)" (?_roundd@@YANN@Z) ENTRY _roundd, YANN@Z ; 7.2..7.4 san vpsrlq xmm1, xmm0, 63 ; copy and isolate sign psllq xmm1, 63 ; sign of x without mask por xmm1, _X [M3FE] addsd xmm0, xmm1 roundsd xmm0, xmm0, 08h+03h ; no except, toward zero ret ALIGN 16 ; 7.2..7.4 san ; faster than C vpand xmm1, xmm0, [M800] por xmm1, _X [M3FE] addsd xmm0, xmm1 roundsd xmm0, xmm0, 08h+03h ; no except, toward zero ret ALIGN 16 ; using generated constants; slightly slower than C ; we need the sign bit vpsrlq xmm1, xmm0, 63 psllq xmm1, 63 ; we need 0.5 pcmpeqw xmm2, xmm2 psllq xmm2, 55 psrlq xmm2, 2 ; por xmm1, xmm2 addsd xmm0, xmm1 roundsd xmm0, xmm0, 08h+03h ; no except, toward zero ret ; needed in fapm_cheby IF 1 ; "void __cdecl fma3_f80(struct __f80 &,struct __f80 &,struct __f80 &)" (?fma3_f80@@YAXAEAU__f80@@00@Z) ENTRY fma3_f80, YAXAEAU__f80@@00@Z fld _T [rcx] fld _T [rdx] fmulp ST(1), ST(0) fld _T [r8] faddp ST(1), ST(0) fstp _T [rcx] ret ENDIF FUNC ENDP ELSE ; x86 - x86 - x86 - x86 - x86 - x86 - x86 - x86 - x86 - .code ;"double __vectorcall _fabsd(double)" (?_fabsd@@YANN@Z) ENTRY _fabsd, YQNN@Z psllq xmm0, 1 psrlq xmm0, 1 ret ENTRY fpclassd, YQHN@Z pextrw eax, xmm0, 3 ; hi word xor edx, edx btr eax, 15 ; make positive setc dl ; remember sign cmp eax, 07ff0h jge _z10ni ; NAN/INF test eax, eax jz _z10dz ; DEN/ZERO mov eax, 1 sub eax, edx sub eax, edx ret ; x is +/-NAN or +/-INF _z10ni: ; NAN/INF movd ecx, xmm0 psrlq xmm0, 32 movd edx, xmm0 xor eax, eax shl edx, 12 ; shift out exp+sign or edx, ecx setnz al ; 1 on NAN add eax, 2 ret ; x is DEN or ZERO; edx is 0 if pos, 1 if neg _z10dz: ; DEN/ZERO movd eax, xmm0 psrlq xmm0, 32 movd ecx, xmm0 shl ecx, 1 ; shift out sign or ecx, eax setnz al movzx eax, al and edx, eax sub eax, edx sub eax, edx ret ENDIF END
#ifndef SNDRIFT_WIRE_HH #define SNDRIFT_WIRE_HH #include <mutex> //local #include "utils.hh" #include "geomodel.hh" #include "fields.hh" //*********************************** // Charge signal class // to be used as an interface // to the algorithm. //*********************************** class Electrode { private: bool active; // pointer to geometry for constructing fields GeometryModel* gm; // pointer to comsol fields for constructing fields ComsolFields* femfields; Fields* field; // specific for each electrode, constructed at creation std::mutex mtx; protected: public: // Constructor // using geometry data Electrode(ComsolFields* fem, GeometryModel* g); // Default destructor ~Electrode(); // access void initfields(); // out of constructor - takes time. bool isactive() {return active;} Point3 getFieldValue(bool& analytic, Point3 p); }; #endif
; A084088: a(n) = 2 mod 3 and exponent of highest power of 2 dividing a(n) is even. ; Submitted by Jon Maiga ; 5,11,17,20,23,29,35,41,44,47,53,59,65,68,71,77,80,83,89,92,95,101,107,113,116,119,125,131,137,140,143,149,155,161,164,167,173,176,179,185,188,191,197,203,209,212,215,221,227,233,236,239,245 mov $1,14 mov $2,$0 add $2,2 pow $2,2 lpb $2 sub $2,1 mov $3,$1 seq $3,328979 ; Trajectory of 0 under repeated application of the morphism 0 -> 0010, 1 -> 1010. sub $0,$3 add $1,34 mov $4,$0 max $4,0 cmp $4,$0 mul $2,$4 lpe mov $0,$1 sub $0,48 div $0,34 mul $0,3 add $0,5
; A059721: Mean of first six positive powers of n, i.e., (n + n^2 + n^3 + n^4 + n^5 + n^6)/6. ; 0,1,21,182,910,3255,9331,22876,49932,99645,185185,324786,542906,871507,1351455,2034040,2982616,4274361,6002157,8276590,11228070,15009071,19796491,25794132,33235300,42385525,53545401,67053546,83289682,102677835,125689655,152847856,184729776,221971057,265269445,315388710,373162686,439499431,515385507,601890380,700170940,811476141,937151761,1078645282,1237510890,1415414595,1614139471,1835591016,2081802632,2354941225,2657312925,2991368926,3359711446,3765099807,4210456635,4698874180,5233620756 mov $1,10 mov $2,$0 lpb $1 add $0,1 mul $0,$2 sub $1,2 lpe div $0,6
; A032119: Number of labeled series-reduced dyslexic planted planar trees (root unlabeled) with n leaves. ; Submitted by Christian Krause ; 1,1,6,57,750,12645,260190,6322365,177181830,5625873225,199608636150,7826601269025,336070622037150,15684327120386925,790493799998652750,42790196611446409125,2475921578709979149750,152499324058939789556625,9961887269457311273835750,687922376268803482237055625,50071665931962039555909468750,3831395578289634654171991243125,307468486722845282854191080658750,25821599740742181918912125488858125,2264887014640102791030726905364843750,207111507583803318917636764569661265625 mov $1,2 mov $2,1 mov $3,$0 mov $4,2 lpb $3 add $0,1 mul $1,$3 mul $1,$0 mul $2,$5 sub $3,1 add $5,$4 div $1,$5 add $2,$1 div $2,2 lpe mov $0,$2
// // MailStream.cpp // // $Id: //poco/1.4/Net/src/MailStream.cpp#1 $ // // Library: Net // Package: Mail // Module: MailStream // // Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #include "Poco/Net/MailStream.h" namespace Poco { namespace Net { MailStreamBuf::MailStreamBuf(std::istream& istr): _pIstr(&istr), _pOstr(0), _state(ST_CR_LF) { } MailStreamBuf::MailStreamBuf(std::ostream& ostr): _pIstr(0), _pOstr(&ostr), _state(ST_CR_LF) { } MailStreamBuf::~MailStreamBuf() { } void MailStreamBuf::close() { if (_pOstr && _state != ST_CR_LF_DOT_CR_LF) { if (!_buffer.empty()) _pOstr->write(_buffer.data(), (std::streamsize) _buffer.length()); if (_state != ST_CR_LF) _pOstr->write("\r\n", 2); _pOstr->write(".\r\n", 3); _state = ST_CR_LF_DOT_CR_LF; } } int MailStreamBuf::readFromDevice() { int c = std::char_traits<char>::eof(); if (!_buffer.empty()) { c = _buffer[0]; _buffer.erase(0, 1); } else { c = readOne(); while (c != std::char_traits<char>::eof() && _state != ST_DATA && _state != ST_CR_LF_DOT_CR_LF) c = readOne(); if (!_buffer.empty()) { c = _buffer[0]; _buffer.erase(0, 1); } } return c; } int MailStreamBuf::readOne() { int c = std::char_traits<char>::eof(); if (_state != ST_CR_LF_DOT_CR_LF) { c = _pIstr->get(); switch (c) { case '\r': if (_state == ST_CR_LF_DOT) _state = ST_CR_LF_DOT_CR; else _state = ST_CR; break; case '\n': if (_state == ST_CR) _state = ST_CR_LF; else if (_state == ST_CR_LF_DOT_CR) _state = ST_CR_LF_DOT_CR_LF; else _state = ST_DATA; break; case '.': if (_state == ST_CR_LF) _state = ST_CR_LF_DOT; else if (_state == ST_CR_LF_DOT) _state = ST_CR_LF_DOT_DOT; else _state = ST_DATA; break; default: _state = ST_DATA; } if (_state == ST_CR_LF_DOT_DOT) _state = ST_DATA; else if (_state == ST_CR_LF_DOT_CR_LF) _buffer.resize(_buffer.size() - 2); else if (c != std::char_traits<char>::eof()) _buffer += (char) c; } return c; } int MailStreamBuf::writeToDevice(char c) { switch (c) { case '\r': _state = ST_CR; break; case '\n': if (_state == ST_CR) _state = ST_CR_LF; else _state = ST_DATA; break; case '.': if (_state == ST_CR_LF) _state = ST_CR_LF_DOT; else _state = ST_DATA; break; default: _state = ST_DATA; } if (_state == ST_DATA) { if (!_buffer.empty()) { _pOstr->write(_buffer.data(), (std::streamsize) _buffer.length()); _buffer.clear(); } _pOstr->put(c); } else if (_state == ST_CR_LF_DOT) { // buffer contains one or more CR-LF pairs _pOstr->write(_buffer.data(), (std::streamsize) _buffer.length()); _pOstr->write("..", 2); _state = ST_DATA; _buffer.clear(); } else _buffer += c; return charToInt(c); } MailIOS::MailIOS(std::istream& istr): _buf(istr) { poco_ios_init(&_buf); } MailIOS::MailIOS(std::ostream& ostr): _buf(ostr) { poco_ios_init(&_buf); } MailIOS::~MailIOS() { } void MailIOS::close() { _buf.close(); } MailStreamBuf* MailIOS::rdbuf() { return &_buf; } MailInputStream::MailInputStream(std::istream& istr): MailIOS(istr), std::istream(&_buf) { } MailInputStream::~MailInputStream() { } MailOutputStream::MailOutputStream(std::ostream& ostr): MailIOS(ostr), std::ostream(&_buf) { } MailOutputStream::~MailOutputStream() { } } } // namespace Poco::Net
; A319392: a(n) = Sum_{k=0..n} (-1)^(n-k)*binomial(n,k)*k!*n^k. ; Submitted by Jon Maiga ; 1,0,5,116,4785,307024,28435285,3598112580,596971515329,125802906617600,32834740225688901,10399056510149276980,3929349957207906673585,1746371472945523953503376,901944505258819679842017365,535692457387043907059336566724,362573376628272441934460817960705,277430014360887942524111327371888000,238297036214159091830034781504173803269,228326035015318481259861289515226956872820,242666488684032470621467709395683741814231601,284621964187093351644409282652839098230958094160 mov $1,1 mov $2,2 mov $3,$0 mov $4,1 lpb $3 add $1,$4 mul $1,$3 mul $1,$0 mul $2,-1 add $2,$1 sub $3,1 add $4,38 cmp $4,0 lpe mov $0,$2 div $0,2
; A158622: Numerator of the reduced fraction A158620(n)/A158621(n). ; 7,13,7,31,43,19,73,91,37,133,157,61,211,241,91,307,343,127,421,463,169,553,601,217,703,757,271,871,931,331,1057,1123,397,1261,1333,469,1483,1561,547,1723,1807,631,1981,2071,721,2257,2353,817,2551,2653,919,2863,2971,1027,3193,3307,1141,3541,3661,1261,3907,4033,1387,4291,4423,1519,4693,4831,1657,5113,5257,1801,5551,5701,1951,6007,6163,2107,6481,6643,2269,6973,7141,2437,7483,7657,2611,8011,8191,2791,8557,8743,2977,9121,9313,3169,9703,9901,3367,10303,10507,3571,10921,11131,3781,11557,11773,3997,12211,12433,4219,12883,13111,4447,13573,13807,4681,14281,14521,4921,15007,15253,5167,15751,16003,5419,16513,16771,5677,17293,17557,5941,18091,18361,6211,18907,19183,6487,19741,20023,6769,20593,20881,7057,21463,21757,7351,22351,22651,7651,23257,23563,7957,24181,24493,8269,25123,25441,8587,26083,26407,8911,27061,27391,9241,28057,28393,9577,29071,29413,9919,30103,30451,10267,31153,31507,10621,32221,32581,10981,33307,33673,11347,34411,34783,11719,35533,35911,12097,36673,37057,12481,37831,38221,12871,39007,39403,13267,40201,40603,13669,41413,41821,14077,42643,43057,14491,43891,44311,14911,45157,45583,15337,46441,46873,15769,47743,48181,16207,49063,49507,16651,50401,50851,17101,51757,52213,17557,53131,53593,18019,54523,54991,18487,55933,56407,18961,57361,57841,19441,58807,59293,19927,60271,60763,20419,61753,62251,20917,63253 mov $2,$0 add $2,3 bin $2,2 mov $1,$2 mov $3,$0 add $3,25 gcd $3,3 div $1,$3 sub $1,3 div $1,3 mul $1,6 add $1,7
_init: file format elf32-i386 Disassembly of section .text: 00000000 <main>: char *argv[] = { "sh", 0 }; int main(void) { 0: f3 0f 1e fb endbr32 4: 8d 4c 24 04 lea 0x4(%esp),%ecx 8: 83 e4 f0 and $0xfffffff0,%esp b: ff 71 fc pushl -0x4(%ecx) e: 55 push %ebp f: 89 e5 mov %esp,%ebp 11: 53 push %ebx 12: 51 push %ecx int pid, wpid; if(open("console", O_RDWR) < 0){ 13: 83 ec 08 sub $0x8,%esp 16: 6a 02 push $0x2 18: 68 88 08 00 00 push $0x888 1d: e8 71 03 00 00 call 393 <open> 22: 83 c4 10 add $0x10,%esp 25: 85 c0 test %eax,%eax 27: 0f 88 9b 00 00 00 js c8 <main+0xc8> mknod("console", 1, 1); open("console", O_RDWR); } dup(0); // stdout 2d: 83 ec 0c sub $0xc,%esp 30: 6a 00 push $0x0 32: e8 94 03 00 00 call 3cb <dup> dup(0); // stderr 37: c7 04 24 00 00 00 00 movl $0x0,(%esp) 3e: e8 88 03 00 00 call 3cb <dup> 43: 83 c4 10 add $0x10,%esp 46: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 4d: 8d 76 00 lea 0x0(%esi),%esi for(;;){ printf(1, "init: starting sh\n"); 50: 83 ec 08 sub $0x8,%esp 53: 68 90 08 00 00 push $0x890 58: 6a 01 push $0x1 5a: e8 c1 04 00 00 call 520 <printf> pid = fork(); 5f: e8 e7 02 00 00 call 34b <fork> if(pid < 0){ 64: 83 c4 10 add $0x10,%esp pid = fork(); 67: 89 c3 mov %eax,%ebx if(pid < 0){ 69: 85 c0 test %eax,%eax 6b: 78 24 js 91 <main+0x91> printf(1, "init: fork failed\n"); exit(); } if(pid == 0){ 6d: 74 35 je a4 <main+0xa4> 6f: 90 nop exec("sh", argv); printf(1, "init: exec sh failed\n"); exit(); } while((wpid=wait()) >= 0 && wpid != pid) 70: e8 e6 02 00 00 call 35b <wait> 75: 85 c0 test %eax,%eax 77: 78 d7 js 50 <main+0x50> 79: 39 c3 cmp %eax,%ebx 7b: 74 d3 je 50 <main+0x50> printf(1, "zombie!\n"); 7d: 83 ec 08 sub $0x8,%esp 80: 68 cf 08 00 00 push $0x8cf 85: 6a 01 push $0x1 87: e8 94 04 00 00 call 520 <printf> 8c: 83 c4 10 add $0x10,%esp 8f: eb df jmp 70 <main+0x70> printf(1, "init: fork failed\n"); 91: 53 push %ebx 92: 53 push %ebx 93: 68 a3 08 00 00 push $0x8a3 98: 6a 01 push $0x1 9a: e8 81 04 00 00 call 520 <printf> exit(); 9f: e8 af 02 00 00 call 353 <exit> exec("sh", argv); a4: 50 push %eax a5: 50 push %eax a6: 68 8c 0b 00 00 push $0xb8c ab: 68 b6 08 00 00 push $0x8b6 b0: e8 d6 02 00 00 call 38b <exec> printf(1, "init: exec sh failed\n"); b5: 5a pop %edx b6: 59 pop %ecx b7: 68 b9 08 00 00 push $0x8b9 bc: 6a 01 push $0x1 be: e8 5d 04 00 00 call 520 <printf> exit(); c3: e8 8b 02 00 00 call 353 <exit> mknod("console", 1, 1); c8: 50 push %eax c9: 6a 01 push $0x1 cb: 6a 01 push $0x1 cd: 68 88 08 00 00 push $0x888 d2: e8 c4 02 00 00 call 39b <mknod> open("console", O_RDWR); d7: 58 pop %eax d8: 5a pop %edx d9: 6a 02 push $0x2 db: 68 88 08 00 00 push $0x888 e0: e8 ae 02 00 00 call 393 <open> e5: 83 c4 10 add $0x10,%esp e8: e9 40 ff ff ff jmp 2d <main+0x2d> ed: 66 90 xchg %ax,%ax ef: 90 nop 000000f0 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { f0: f3 0f 1e fb endbr32 f4: 55 push %ebp char *os; os = s; while((*s++ = *t++) != 0) f5: 31 c0 xor %eax,%eax { f7: 89 e5 mov %esp,%ebp f9: 53 push %ebx fa: 8b 4d 08 mov 0x8(%ebp),%ecx fd: 8b 5d 0c mov 0xc(%ebp),%ebx while((*s++ = *t++) != 0) 100: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx 104: 88 14 01 mov %dl,(%ecx,%eax,1) 107: 83 c0 01 add $0x1,%eax 10a: 84 d2 test %dl,%dl 10c: 75 f2 jne 100 <strcpy+0x10> ; return os; } 10e: 89 c8 mov %ecx,%eax 110: 5b pop %ebx 111: 5d pop %ebp 112: c3 ret 113: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 11a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000120 <strcmp>: int strcmp(const char *p, const char *q) { 120: f3 0f 1e fb endbr32 124: 55 push %ebp 125: 89 e5 mov %esp,%ebp 127: 53 push %ebx 128: 8b 4d 08 mov 0x8(%ebp),%ecx 12b: 8b 55 0c mov 0xc(%ebp),%edx while(*p && *p == *q) 12e: 0f b6 01 movzbl (%ecx),%eax 131: 0f b6 1a movzbl (%edx),%ebx 134: 84 c0 test %al,%al 136: 75 19 jne 151 <strcmp+0x31> 138: eb 26 jmp 160 <strcmp+0x40> 13a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 140: 0f b6 41 01 movzbl 0x1(%ecx),%eax p++, q++; 144: 83 c1 01 add $0x1,%ecx 147: 83 c2 01 add $0x1,%edx while(*p && *p == *q) 14a: 0f b6 1a movzbl (%edx),%ebx 14d: 84 c0 test %al,%al 14f: 74 0f je 160 <strcmp+0x40> 151: 38 d8 cmp %bl,%al 153: 74 eb je 140 <strcmp+0x20> return (uchar)*p - (uchar)*q; 155: 29 d8 sub %ebx,%eax } 157: 5b pop %ebx 158: 5d pop %ebp 159: c3 ret 15a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 160: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; 162: 29 d8 sub %ebx,%eax } 164: 5b pop %ebx 165: 5d pop %ebp 166: c3 ret 167: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 16e: 66 90 xchg %ax,%ax 00000170 <strlen>: uint strlen(const char *s) { 170: f3 0f 1e fb endbr32 174: 55 push %ebp 175: 89 e5 mov %esp,%ebp 177: 8b 55 08 mov 0x8(%ebp),%edx int n; for(n = 0; s[n]; n++) 17a: 80 3a 00 cmpb $0x0,(%edx) 17d: 74 21 je 1a0 <strlen+0x30> 17f: 31 c0 xor %eax,%eax 181: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 188: 83 c0 01 add $0x1,%eax 18b: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 18f: 89 c1 mov %eax,%ecx 191: 75 f5 jne 188 <strlen+0x18> ; return n; } 193: 89 c8 mov %ecx,%eax 195: 5d pop %ebp 196: c3 ret 197: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 19e: 66 90 xchg %ax,%ax for(n = 0; s[n]; n++) 1a0: 31 c9 xor %ecx,%ecx } 1a2: 5d pop %ebp 1a3: 89 c8 mov %ecx,%eax 1a5: c3 ret 1a6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1ad: 8d 76 00 lea 0x0(%esi),%esi 000001b0 <memset>: void* memset(void *dst, int c, uint n) { 1b0: f3 0f 1e fb endbr32 1b4: 55 push %ebp 1b5: 89 e5 mov %esp,%ebp 1b7: 57 push %edi 1b8: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 1bb: 8b 4d 10 mov 0x10(%ebp),%ecx 1be: 8b 45 0c mov 0xc(%ebp),%eax 1c1: 89 d7 mov %edx,%edi 1c3: fc cld 1c4: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 1c6: 89 d0 mov %edx,%eax 1c8: 5f pop %edi 1c9: 5d pop %ebp 1ca: c3 ret 1cb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1cf: 90 nop 000001d0 <strchr>: char* strchr(const char *s, char c) { 1d0: f3 0f 1e fb endbr32 1d4: 55 push %ebp 1d5: 89 e5 mov %esp,%ebp 1d7: 8b 45 08 mov 0x8(%ebp),%eax 1da: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for(; *s; s++) 1de: 0f b6 10 movzbl (%eax),%edx 1e1: 84 d2 test %dl,%dl 1e3: 75 16 jne 1fb <strchr+0x2b> 1e5: eb 21 jmp 208 <strchr+0x38> 1e7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 1ee: 66 90 xchg %ax,%ax 1f0: 0f b6 50 01 movzbl 0x1(%eax),%edx 1f4: 83 c0 01 add $0x1,%eax 1f7: 84 d2 test %dl,%dl 1f9: 74 0d je 208 <strchr+0x38> if(*s == c) 1fb: 38 d1 cmp %dl,%cl 1fd: 75 f1 jne 1f0 <strchr+0x20> return (char*)s; return 0; } 1ff: 5d pop %ebp 200: c3 ret 201: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return 0; 208: 31 c0 xor %eax,%eax } 20a: 5d pop %ebp 20b: c3 ret 20c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000210 <gets>: char* gets(char *buf, int max) { 210: f3 0f 1e fb endbr32 214: 55 push %ebp 215: 89 e5 mov %esp,%ebp 217: 57 push %edi 218: 56 push %esi int i, cc; char c; for(i=0; i+1 < max; ){ 219: 31 f6 xor %esi,%esi { 21b: 53 push %ebx 21c: 89 f3 mov %esi,%ebx 21e: 83 ec 1c sub $0x1c,%esp 221: 8b 7d 08 mov 0x8(%ebp),%edi for(i=0; i+1 < max; ){ 224: eb 33 jmp 259 <gets+0x49> 226: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 22d: 8d 76 00 lea 0x0(%esi),%esi cc = read(0, &c, 1); 230: 83 ec 04 sub $0x4,%esp 233: 8d 45 e7 lea -0x19(%ebp),%eax 236: 6a 01 push $0x1 238: 50 push %eax 239: 6a 00 push $0x0 23b: e8 2b 01 00 00 call 36b <read> if(cc < 1) 240: 83 c4 10 add $0x10,%esp 243: 85 c0 test %eax,%eax 245: 7e 1c jle 263 <gets+0x53> break; buf[i++] = c; 247: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 24b: 83 c7 01 add $0x1,%edi 24e: 88 47 ff mov %al,-0x1(%edi) if(c == '\n' || c == '\r') 251: 3c 0a cmp $0xa,%al 253: 74 23 je 278 <gets+0x68> 255: 3c 0d cmp $0xd,%al 257: 74 1f je 278 <gets+0x68> for(i=0; i+1 < max; ){ 259: 83 c3 01 add $0x1,%ebx 25c: 89 fe mov %edi,%esi 25e: 3b 5d 0c cmp 0xc(%ebp),%ebx 261: 7c cd jl 230 <gets+0x20> 263: 89 f3 mov %esi,%ebx break; } buf[i] = '\0'; return buf; } 265: 8b 45 08 mov 0x8(%ebp),%eax buf[i] = '\0'; 268: c6 03 00 movb $0x0,(%ebx) } 26b: 8d 65 f4 lea -0xc(%ebp),%esp 26e: 5b pop %ebx 26f: 5e pop %esi 270: 5f pop %edi 271: 5d pop %ebp 272: c3 ret 273: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 277: 90 nop 278: 8b 75 08 mov 0x8(%ebp),%esi 27b: 8b 45 08 mov 0x8(%ebp),%eax 27e: 01 de add %ebx,%esi 280: 89 f3 mov %esi,%ebx buf[i] = '\0'; 282: c6 03 00 movb $0x0,(%ebx) } 285: 8d 65 f4 lea -0xc(%ebp),%esp 288: 5b pop %ebx 289: 5e pop %esi 28a: 5f pop %edi 28b: 5d pop %ebp 28c: c3 ret 28d: 8d 76 00 lea 0x0(%esi),%esi 00000290 <stat>: int stat(const char *n, struct stat *st) { 290: f3 0f 1e fb endbr32 294: 55 push %ebp 295: 89 e5 mov %esp,%ebp 297: 56 push %esi 298: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 299: 83 ec 08 sub $0x8,%esp 29c: 6a 00 push $0x0 29e: ff 75 08 pushl 0x8(%ebp) 2a1: e8 ed 00 00 00 call 393 <open> if(fd < 0) 2a6: 83 c4 10 add $0x10,%esp 2a9: 85 c0 test %eax,%eax 2ab: 78 2b js 2d8 <stat+0x48> return -1; r = fstat(fd, st); 2ad: 83 ec 08 sub $0x8,%esp 2b0: ff 75 0c pushl 0xc(%ebp) 2b3: 89 c3 mov %eax,%ebx 2b5: 50 push %eax 2b6: e8 f0 00 00 00 call 3ab <fstat> close(fd); 2bb: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 2be: 89 c6 mov %eax,%esi close(fd); 2c0: e8 b6 00 00 00 call 37b <close> return r; 2c5: 83 c4 10 add $0x10,%esp } 2c8: 8d 65 f8 lea -0x8(%ebp),%esp 2cb: 89 f0 mov %esi,%eax 2cd: 5b pop %ebx 2ce: 5e pop %esi 2cf: 5d pop %ebp 2d0: c3 ret 2d1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return -1; 2d8: be ff ff ff ff mov $0xffffffff,%esi 2dd: eb e9 jmp 2c8 <stat+0x38> 2df: 90 nop 000002e0 <atoi>: int atoi(const char *s) { 2e0: f3 0f 1e fb endbr32 2e4: 55 push %ebp 2e5: 89 e5 mov %esp,%ebp 2e7: 53 push %ebx 2e8: 8b 55 08 mov 0x8(%ebp),%edx int n; n = 0; while('0' <= *s && *s <= '9') 2eb: 0f be 02 movsbl (%edx),%eax 2ee: 8d 48 d0 lea -0x30(%eax),%ecx 2f1: 80 f9 09 cmp $0x9,%cl n = 0; 2f4: b9 00 00 00 00 mov $0x0,%ecx while('0' <= *s && *s <= '9') 2f9: 77 1a ja 315 <atoi+0x35> 2fb: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 2ff: 90 nop n = n*10 + *s++ - '0'; 300: 83 c2 01 add $0x1,%edx 303: 8d 0c 89 lea (%ecx,%ecx,4),%ecx 306: 8d 4c 48 d0 lea -0x30(%eax,%ecx,2),%ecx while('0' <= *s && *s <= '9') 30a: 0f be 02 movsbl (%edx),%eax 30d: 8d 58 d0 lea -0x30(%eax),%ebx 310: 80 fb 09 cmp $0x9,%bl 313: 76 eb jbe 300 <atoi+0x20> return n; } 315: 89 c8 mov %ecx,%eax 317: 5b pop %ebx 318: 5d pop %ebp 319: c3 ret 31a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 00000320 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 320: f3 0f 1e fb endbr32 324: 55 push %ebp 325: 89 e5 mov %esp,%ebp 327: 57 push %edi 328: 8b 45 10 mov 0x10(%ebp),%eax 32b: 8b 55 08 mov 0x8(%ebp),%edx 32e: 56 push %esi 32f: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 332: 85 c0 test %eax,%eax 334: 7e 0f jle 345 <memmove+0x25> 336: 01 d0 add %edx,%eax dst = vdst; 338: 89 d7 mov %edx,%edi 33a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi *dst++ = *src++; 340: a4 movsb %ds:(%esi),%es:(%edi) while(n-- > 0) 341: 39 f8 cmp %edi,%eax 343: 75 fb jne 340 <memmove+0x20> return vdst; } 345: 5e pop %esi 346: 89 d0 mov %edx,%eax 348: 5f pop %edi 349: 5d pop %ebp 34a: c3 ret 0000034b <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 34b: b8 01 00 00 00 mov $0x1,%eax 350: cd 40 int $0x40 352: c3 ret 00000353 <exit>: SYSCALL(exit) 353: b8 02 00 00 00 mov $0x2,%eax 358: cd 40 int $0x40 35a: c3 ret 0000035b <wait>: SYSCALL(wait) 35b: b8 03 00 00 00 mov $0x3,%eax 360: cd 40 int $0x40 362: c3 ret 00000363 <pipe>: SYSCALL(pipe) 363: b8 04 00 00 00 mov $0x4,%eax 368: cd 40 int $0x40 36a: c3 ret 0000036b <read>: SYSCALL(read) 36b: b8 05 00 00 00 mov $0x5,%eax 370: cd 40 int $0x40 372: c3 ret 00000373 <write>: SYSCALL(write) 373: b8 10 00 00 00 mov $0x10,%eax 378: cd 40 int $0x40 37a: c3 ret 0000037b <close>: SYSCALL(close) 37b: b8 15 00 00 00 mov $0x15,%eax 380: cd 40 int $0x40 382: c3 ret 00000383 <kill>: SYSCALL(kill) 383: b8 06 00 00 00 mov $0x6,%eax 388: cd 40 int $0x40 38a: c3 ret 0000038b <exec>: SYSCALL(exec) 38b: b8 07 00 00 00 mov $0x7,%eax 390: cd 40 int $0x40 392: c3 ret 00000393 <open>: SYSCALL(open) 393: b8 0f 00 00 00 mov $0xf,%eax 398: cd 40 int $0x40 39a: c3 ret 0000039b <mknod>: SYSCALL(mknod) 39b: b8 11 00 00 00 mov $0x11,%eax 3a0: cd 40 int $0x40 3a2: c3 ret 000003a3 <unlink>: SYSCALL(unlink) 3a3: b8 12 00 00 00 mov $0x12,%eax 3a8: cd 40 int $0x40 3aa: c3 ret 000003ab <fstat>: SYSCALL(fstat) 3ab: b8 08 00 00 00 mov $0x8,%eax 3b0: cd 40 int $0x40 3b2: c3 ret 000003b3 <link>: SYSCALL(link) 3b3: b8 13 00 00 00 mov $0x13,%eax 3b8: cd 40 int $0x40 3ba: c3 ret 000003bb <mkdir>: SYSCALL(mkdir) 3bb: b8 14 00 00 00 mov $0x14,%eax 3c0: cd 40 int $0x40 3c2: c3 ret 000003c3 <chdir>: SYSCALL(chdir) 3c3: b8 09 00 00 00 mov $0x9,%eax 3c8: cd 40 int $0x40 3ca: c3 ret 000003cb <dup>: SYSCALL(dup) 3cb: b8 0a 00 00 00 mov $0xa,%eax 3d0: cd 40 int $0x40 3d2: c3 ret 000003d3 <getpid>: SYSCALL(getpid) 3d3: b8 0b 00 00 00 mov $0xb,%eax 3d8: cd 40 int $0x40 3da: c3 ret 000003db <sbrk>: SYSCALL(sbrk) 3db: b8 0c 00 00 00 mov $0xc,%eax 3e0: cd 40 int $0x40 3e2: c3 ret 000003e3 <sleep>: SYSCALL(sleep) 3e3: b8 0d 00 00 00 mov $0xd,%eax 3e8: cd 40 int $0x40 3ea: c3 ret 000003eb <uptime>: SYSCALL(uptime) 3eb: b8 0e 00 00 00 mov $0xe,%eax 3f0: cd 40 int $0x40 3f2: c3 ret 000003f3 <waitx>: SYSCALL(waitx) 3f3: b8 16 00 00 00 mov $0x16,%eax 3f8: cd 40 int $0x40 3fa: c3 ret 000003fb <set_priority>: SYSCALL(set_priority) 3fb: b8 18 00 00 00 mov $0x18,%eax 400: cd 40 int $0x40 402: c3 ret 00000403 <getpinfo>: SYSCALL(getpinfo) 403: b8 17 00 00 00 mov $0x17,%eax 408: cd 40 int $0x40 40a: c3 ret 0000040b <year>: SYSCALL(year) 40b: b8 19 00 00 00 mov $0x19,%eax 410: cd 40 int $0x40 412: c3 ret 00000413 <halt>: SYSCALL(halt) 413: b8 1a 00 00 00 mov $0x1a,%eax 418: cd 40 int $0x40 41a: c3 ret 0000041b <date>: SYSCALL(date) 41b: b8 1b 00 00 00 mov $0x1b,%eax 420: cd 40 int $0x40 422: c3 ret 00000423 <gettcount>: SYSCALL(gettcount) 423: b8 1d 00 00 00 mov $0x1d,%eax 428: cd 40 int $0x40 42a: c3 ret 0000042b <getrcount>: SYSCALL(getrcount) 42b: b8 1c 00 00 00 mov $0x1c,%eax 430: cd 40 int $0x40 432: c3 ret 00000433 <getwcount>: SYSCALL(getwcount) 433: b8 1e 00 00 00 mov $0x1e,%eax 438: cd 40 int $0x40 43a: c3 ret 0000043b <getwtcount>: SYSCALL(getwtcount) 43b: b8 1f 00 00 00 mov $0x1f,%eax 440: cd 40 int $0x40 442: c3 ret 00000443 <getcltcount>: SYSCALL(getcltcount) 443: b8 21 00 00 00 mov $0x21,%eax 448: cd 40 int $0x40 44a: c3 ret 0000044b <getclcount>: SYSCALL(getclcount) 44b: b8 20 00 00 00 mov $0x20,%eax 450: cd 40 int $0x40 452: c3 ret 00000453 <getocount>: SYSCALL(getocount) 453: b8 23 00 00 00 mov $0x23,%eax 458: cd 40 int $0x40 45a: c3 ret 0000045b <getotcount>: SYSCALL(getotcount) 45b: b8 22 00 00 00 mov $0x22,%eax 460: cd 40 int $0x40 462: c3 ret 463: 66 90 xchg %ax,%ax 465: 66 90 xchg %ax,%ax 467: 66 90 xchg %ax,%ax 469: 66 90 xchg %ax,%ax 46b: 66 90 xchg %ax,%ax 46d: 66 90 xchg %ax,%ax 46f: 90 nop 00000470 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 470: 55 push %ebp 471: 89 e5 mov %esp,%ebp 473: 57 push %edi 474: 56 push %esi 475: 53 push %ebx 476: 83 ec 3c sub $0x3c,%esp 479: 89 4d c4 mov %ecx,-0x3c(%ebp) uint x; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; 47c: 89 d1 mov %edx,%ecx { 47e: 89 45 b8 mov %eax,-0x48(%ebp) if(sgn && xx < 0){ 481: 85 d2 test %edx,%edx 483: 0f 89 7f 00 00 00 jns 508 <printint+0x98> 489: f6 45 08 01 testb $0x1,0x8(%ebp) 48d: 74 79 je 508 <printint+0x98> neg = 1; 48f: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp) x = -xx; 496: f7 d9 neg %ecx } else { x = xx; } i = 0; 498: 31 db xor %ebx,%ebx 49a: 8d 75 d7 lea -0x29(%ebp),%esi 49d: 8d 76 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 4a0: 89 c8 mov %ecx,%eax 4a2: 31 d2 xor %edx,%edx 4a4: 89 cf mov %ecx,%edi 4a6: f7 75 c4 divl -0x3c(%ebp) 4a9: 0f b6 92 e0 08 00 00 movzbl 0x8e0(%edx),%edx 4b0: 89 45 c0 mov %eax,-0x40(%ebp) 4b3: 89 d8 mov %ebx,%eax 4b5: 8d 5b 01 lea 0x1(%ebx),%ebx }while((x /= base) != 0); 4b8: 8b 4d c0 mov -0x40(%ebp),%ecx buf[i++] = digits[x % base]; 4bb: 88 14 1e mov %dl,(%esi,%ebx,1) }while((x /= base) != 0); 4be: 39 7d c4 cmp %edi,-0x3c(%ebp) 4c1: 76 dd jbe 4a0 <printint+0x30> if(neg) 4c3: 8b 4d bc mov -0x44(%ebp),%ecx 4c6: 85 c9 test %ecx,%ecx 4c8: 74 0c je 4d6 <printint+0x66> buf[i++] = '-'; 4ca: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1) buf[i++] = digits[x % base]; 4cf: 89 d8 mov %ebx,%eax buf[i++] = '-'; 4d1: ba 2d 00 00 00 mov $0x2d,%edx while(--i >= 0) 4d6: 8b 7d b8 mov -0x48(%ebp),%edi 4d9: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx 4dd: eb 07 jmp 4e6 <printint+0x76> 4df: 90 nop 4e0: 0f b6 13 movzbl (%ebx),%edx 4e3: 83 eb 01 sub $0x1,%ebx write(fd, &c, 1); 4e6: 83 ec 04 sub $0x4,%esp 4e9: 88 55 d7 mov %dl,-0x29(%ebp) 4ec: 6a 01 push $0x1 4ee: 56 push %esi 4ef: 57 push %edi 4f0: e8 7e fe ff ff call 373 <write> while(--i >= 0) 4f5: 83 c4 10 add $0x10,%esp 4f8: 39 de cmp %ebx,%esi 4fa: 75 e4 jne 4e0 <printint+0x70> putc(fd, buf[i]); } 4fc: 8d 65 f4 lea -0xc(%ebp),%esp 4ff: 5b pop %ebx 500: 5e pop %esi 501: 5f pop %edi 502: 5d pop %ebp 503: c3 ret 504: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; 508: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp) 50f: eb 87 jmp 498 <printint+0x28> 511: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 518: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 51f: 90 nop 00000520 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 520: f3 0f 1e fb endbr32 524: 55 push %ebp 525: 89 e5 mov %esp,%ebp 527: 57 push %edi 528: 56 push %esi 529: 53 push %ebx 52a: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 52d: 8b 75 0c mov 0xc(%ebp),%esi 530: 0f b6 1e movzbl (%esi),%ebx 533: 84 db test %bl,%bl 535: 0f 84 b4 00 00 00 je 5ef <printf+0xcf> ap = (uint*)(void*)&fmt + 1; 53b: 8d 45 10 lea 0x10(%ebp),%eax 53e: 83 c6 01 add $0x1,%esi write(fd, &c, 1); 541: 8d 7d e7 lea -0x19(%ebp),%edi state = 0; 544: 31 d2 xor %edx,%edx ap = (uint*)(void*)&fmt + 1; 546: 89 45 d0 mov %eax,-0x30(%ebp) 549: eb 33 jmp 57e <printf+0x5e> 54b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 54f: 90 nop 550: 89 55 d4 mov %edx,-0x2c(%ebp) c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; 553: ba 25 00 00 00 mov $0x25,%edx if(c == '%'){ 558: 83 f8 25 cmp $0x25,%eax 55b: 74 17 je 574 <printf+0x54> write(fd, &c, 1); 55d: 83 ec 04 sub $0x4,%esp 560: 88 5d e7 mov %bl,-0x19(%ebp) 563: 6a 01 push $0x1 565: 57 push %edi 566: ff 75 08 pushl 0x8(%ebp) 569: e8 05 fe ff ff call 373 <write> 56e: 8b 55 d4 mov -0x2c(%ebp),%edx } else { putc(fd, c); 571: 83 c4 10 add $0x10,%esp for(i = 0; fmt[i]; i++){ 574: 0f b6 1e movzbl (%esi),%ebx 577: 83 c6 01 add $0x1,%esi 57a: 84 db test %bl,%bl 57c: 74 71 je 5ef <printf+0xcf> c = fmt[i] & 0xff; 57e: 0f be cb movsbl %bl,%ecx 581: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 584: 85 d2 test %edx,%edx 586: 74 c8 je 550 <printf+0x30> } } else if(state == '%'){ 588: 83 fa 25 cmp $0x25,%edx 58b: 75 e7 jne 574 <printf+0x54> if(c == 'd'){ 58d: 83 f8 64 cmp $0x64,%eax 590: 0f 84 9a 00 00 00 je 630 <printf+0x110> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 596: 81 e1 f7 00 00 00 and $0xf7,%ecx 59c: 83 f9 70 cmp $0x70,%ecx 59f: 74 5f je 600 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 5a1: 83 f8 73 cmp $0x73,%eax 5a4: 0f 84 d6 00 00 00 je 680 <printf+0x160> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 5aa: 83 f8 63 cmp $0x63,%eax 5ad: 0f 84 8d 00 00 00 je 640 <printf+0x120> putc(fd, *ap); ap++; } else if(c == '%'){ 5b3: 83 f8 25 cmp $0x25,%eax 5b6: 0f 84 b4 00 00 00 je 670 <printf+0x150> write(fd, &c, 1); 5bc: 83 ec 04 sub $0x4,%esp 5bf: c6 45 e7 25 movb $0x25,-0x19(%ebp) 5c3: 6a 01 push $0x1 5c5: 57 push %edi 5c6: ff 75 08 pushl 0x8(%ebp) 5c9: e8 a5 fd ff ff call 373 <write> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); 5ce: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 5d1: 83 c4 0c add $0xc,%esp 5d4: 6a 01 push $0x1 5d6: 83 c6 01 add $0x1,%esi 5d9: 57 push %edi 5da: ff 75 08 pushl 0x8(%ebp) 5dd: e8 91 fd ff ff call 373 <write> for(i = 0; fmt[i]; i++){ 5e2: 0f b6 5e ff movzbl -0x1(%esi),%ebx putc(fd, c); 5e6: 83 c4 10 add $0x10,%esp } state = 0; 5e9: 31 d2 xor %edx,%edx for(i = 0; fmt[i]; i++){ 5eb: 84 db test %bl,%bl 5ed: 75 8f jne 57e <printf+0x5e> } } } 5ef: 8d 65 f4 lea -0xc(%ebp),%esp 5f2: 5b pop %ebx 5f3: 5e pop %esi 5f4: 5f pop %edi 5f5: 5d pop %ebp 5f6: c3 ret 5f7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 5fe: 66 90 xchg %ax,%ax printint(fd, *ap, 16, 0); 600: 83 ec 0c sub $0xc,%esp 603: b9 10 00 00 00 mov $0x10,%ecx 608: 6a 00 push $0x0 60a: 8b 5d d0 mov -0x30(%ebp),%ebx 60d: 8b 45 08 mov 0x8(%ebp),%eax 610: 8b 13 mov (%ebx),%edx 612: e8 59 fe ff ff call 470 <printint> ap++; 617: 89 d8 mov %ebx,%eax 619: 83 c4 10 add $0x10,%esp state = 0; 61c: 31 d2 xor %edx,%edx ap++; 61e: 83 c0 04 add $0x4,%eax 621: 89 45 d0 mov %eax,-0x30(%ebp) 624: e9 4b ff ff ff jmp 574 <printf+0x54> 629: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi printint(fd, *ap, 10, 1); 630: 83 ec 0c sub $0xc,%esp 633: b9 0a 00 00 00 mov $0xa,%ecx 638: 6a 01 push $0x1 63a: eb ce jmp 60a <printf+0xea> 63c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi putc(fd, *ap); 640: 8b 5d d0 mov -0x30(%ebp),%ebx write(fd, &c, 1); 643: 83 ec 04 sub $0x4,%esp putc(fd, *ap); 646: 8b 03 mov (%ebx),%eax write(fd, &c, 1); 648: 6a 01 push $0x1 ap++; 64a: 83 c3 04 add $0x4,%ebx write(fd, &c, 1); 64d: 57 push %edi 64e: ff 75 08 pushl 0x8(%ebp) putc(fd, *ap); 651: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 654: e8 1a fd ff ff call 373 <write> ap++; 659: 89 5d d0 mov %ebx,-0x30(%ebp) 65c: 83 c4 10 add $0x10,%esp state = 0; 65f: 31 d2 xor %edx,%edx 661: e9 0e ff ff ff jmp 574 <printf+0x54> 666: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 66d: 8d 76 00 lea 0x0(%esi),%esi putc(fd, c); 670: 88 5d e7 mov %bl,-0x19(%ebp) write(fd, &c, 1); 673: 83 ec 04 sub $0x4,%esp 676: e9 59 ff ff ff jmp 5d4 <printf+0xb4> 67b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 67f: 90 nop s = (char*)*ap; 680: 8b 45 d0 mov -0x30(%ebp),%eax 683: 8b 18 mov (%eax),%ebx ap++; 685: 83 c0 04 add $0x4,%eax 688: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) 68b: 85 db test %ebx,%ebx 68d: 74 17 je 6a6 <printf+0x186> while(*s != 0){ 68f: 0f b6 03 movzbl (%ebx),%eax state = 0; 692: 31 d2 xor %edx,%edx while(*s != 0){ 694: 84 c0 test %al,%al 696: 0f 84 d8 fe ff ff je 574 <printf+0x54> 69c: 89 75 d4 mov %esi,-0x2c(%ebp) 69f: 89 de mov %ebx,%esi 6a1: 8b 5d 08 mov 0x8(%ebp),%ebx 6a4: eb 1a jmp 6c0 <printf+0x1a0> s = "(null)"; 6a6: bb d8 08 00 00 mov $0x8d8,%ebx while(*s != 0){ 6ab: 89 75 d4 mov %esi,-0x2c(%ebp) 6ae: b8 28 00 00 00 mov $0x28,%eax 6b3: 89 de mov %ebx,%esi 6b5: 8b 5d 08 mov 0x8(%ebp),%ebx 6b8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 6bf: 90 nop write(fd, &c, 1); 6c0: 83 ec 04 sub $0x4,%esp s++; 6c3: 83 c6 01 add $0x1,%esi 6c6: 88 45 e7 mov %al,-0x19(%ebp) write(fd, &c, 1); 6c9: 6a 01 push $0x1 6cb: 57 push %edi 6cc: 53 push %ebx 6cd: e8 a1 fc ff ff call 373 <write> while(*s != 0){ 6d2: 0f b6 06 movzbl (%esi),%eax 6d5: 83 c4 10 add $0x10,%esp 6d8: 84 c0 test %al,%al 6da: 75 e4 jne 6c0 <printf+0x1a0> 6dc: 8b 75 d4 mov -0x2c(%ebp),%esi state = 0; 6df: 31 d2 xor %edx,%edx 6e1: e9 8e fe ff ff jmp 574 <printf+0x54> 6e6: 66 90 xchg %ax,%ax 6e8: 66 90 xchg %ax,%ax 6ea: 66 90 xchg %ax,%ax 6ec: 66 90 xchg %ax,%ax 6ee: 66 90 xchg %ax,%ax 000006f0 <free>: static Header base; static Header *freep; void free(void *ap) { 6f0: f3 0f 1e fb endbr32 6f4: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 6f5: a1 94 0b 00 00 mov 0xb94,%eax { 6fa: 89 e5 mov %esp,%ebp 6fc: 57 push %edi 6fd: 56 push %esi 6fe: 53 push %ebx 6ff: 8b 5d 08 mov 0x8(%ebp),%ebx 702: 8b 10 mov (%eax),%edx bp = (Header*)ap - 1; 704: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 707: 39 c8 cmp %ecx,%eax 709: 73 15 jae 720 <free+0x30> 70b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 70f: 90 nop 710: 39 d1 cmp %edx,%ecx 712: 72 14 jb 728 <free+0x38> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 714: 39 d0 cmp %edx,%eax 716: 73 10 jae 728 <free+0x38> { 718: 89 d0 mov %edx,%eax for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 71a: 8b 10 mov (%eax),%edx 71c: 39 c8 cmp %ecx,%eax 71e: 72 f0 jb 710 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 720: 39 d0 cmp %edx,%eax 722: 72 f4 jb 718 <free+0x28> 724: 39 d1 cmp %edx,%ecx 726: 73 f0 jae 718 <free+0x28> break; if(bp + bp->s.size == p->s.ptr){ 728: 8b 73 fc mov -0x4(%ebx),%esi 72b: 8d 3c f1 lea (%ecx,%esi,8),%edi 72e: 39 fa cmp %edi,%edx 730: 74 1e je 750 <free+0x60> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 732: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 735: 8b 50 04 mov 0x4(%eax),%edx 738: 8d 34 d0 lea (%eax,%edx,8),%esi 73b: 39 f1 cmp %esi,%ecx 73d: 74 28 je 767 <free+0x77> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 73f: 89 08 mov %ecx,(%eax) freep = p; } 741: 5b pop %ebx freep = p; 742: a3 94 0b 00 00 mov %eax,0xb94 } 747: 5e pop %esi 748: 5f pop %edi 749: 5d pop %ebp 74a: c3 ret 74b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 74f: 90 nop bp->s.size += p->s.ptr->s.size; 750: 03 72 04 add 0x4(%edx),%esi 753: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 756: 8b 10 mov (%eax),%edx 758: 8b 12 mov (%edx),%edx 75a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 75d: 8b 50 04 mov 0x4(%eax),%edx 760: 8d 34 d0 lea (%eax,%edx,8),%esi 763: 39 f1 cmp %esi,%ecx 765: 75 d8 jne 73f <free+0x4f> p->s.size += bp->s.size; 767: 03 53 fc add -0x4(%ebx),%edx freep = p; 76a: a3 94 0b 00 00 mov %eax,0xb94 p->s.size += bp->s.size; 76f: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 772: 8b 53 f8 mov -0x8(%ebx),%edx 775: 89 10 mov %edx,(%eax) } 777: 5b pop %ebx 778: 5e pop %esi 779: 5f pop %edi 77a: 5d pop %ebp 77b: c3 ret 77c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 00000780 <malloc>: return freep; } void* malloc(uint nbytes) { 780: f3 0f 1e fb endbr32 784: 55 push %ebp 785: 89 e5 mov %esp,%ebp 787: 57 push %edi 788: 56 push %esi 789: 53 push %ebx 78a: 83 ec 1c sub $0x1c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 78d: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 790: 8b 3d 94 0b 00 00 mov 0xb94,%edi nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 796: 8d 70 07 lea 0x7(%eax),%esi 799: c1 ee 03 shr $0x3,%esi 79c: 83 c6 01 add $0x1,%esi if((prevp = freep) == 0){ 79f: 85 ff test %edi,%edi 7a1: 0f 84 a9 00 00 00 je 850 <malloc+0xd0> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 7a7: 8b 07 mov (%edi),%eax if(p->s.size >= nunits){ 7a9: 8b 48 04 mov 0x4(%eax),%ecx 7ac: 39 f1 cmp %esi,%ecx 7ae: 73 6d jae 81d <malloc+0x9d> 7b0: 81 fe 00 10 00 00 cmp $0x1000,%esi 7b6: bb 00 10 00 00 mov $0x1000,%ebx 7bb: 0f 43 de cmovae %esi,%ebx p = sbrk(nu * sizeof(Header)); 7be: 8d 0c dd 00 00 00 00 lea 0x0(,%ebx,8),%ecx 7c5: 89 4d e4 mov %ecx,-0x1c(%ebp) 7c8: eb 17 jmp 7e1 <malloc+0x61> 7ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 7d0: 8b 10 mov (%eax),%edx if(p->s.size >= nunits){ 7d2: 8b 4a 04 mov 0x4(%edx),%ecx 7d5: 39 f1 cmp %esi,%ecx 7d7: 73 4f jae 828 <malloc+0xa8> 7d9: 8b 3d 94 0b 00 00 mov 0xb94,%edi 7df: 89 d0 mov %edx,%eax p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 7e1: 39 c7 cmp %eax,%edi 7e3: 75 eb jne 7d0 <malloc+0x50> p = sbrk(nu * sizeof(Header)); 7e5: 83 ec 0c sub $0xc,%esp 7e8: ff 75 e4 pushl -0x1c(%ebp) 7eb: e8 eb fb ff ff call 3db <sbrk> if(p == (char*)-1) 7f0: 83 c4 10 add $0x10,%esp 7f3: 83 f8 ff cmp $0xffffffff,%eax 7f6: 74 1b je 813 <malloc+0x93> hp->s.size = nu; 7f8: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 7fb: 83 ec 0c sub $0xc,%esp 7fe: 83 c0 08 add $0x8,%eax 801: 50 push %eax 802: e8 e9 fe ff ff call 6f0 <free> return freep; 807: a1 94 0b 00 00 mov 0xb94,%eax if((p = morecore(nunits)) == 0) 80c: 83 c4 10 add $0x10,%esp 80f: 85 c0 test %eax,%eax 811: 75 bd jne 7d0 <malloc+0x50> return 0; } } 813: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 816: 31 c0 xor %eax,%eax } 818: 5b pop %ebx 819: 5e pop %esi 81a: 5f pop %edi 81b: 5d pop %ebp 81c: c3 ret if(p->s.size >= nunits){ 81d: 89 c2 mov %eax,%edx 81f: 89 f8 mov %edi,%eax 821: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(p->s.size == nunits) 828: 39 ce cmp %ecx,%esi 82a: 74 54 je 880 <malloc+0x100> p->s.size -= nunits; 82c: 29 f1 sub %esi,%ecx 82e: 89 4a 04 mov %ecx,0x4(%edx) p += p->s.size; 831: 8d 14 ca lea (%edx,%ecx,8),%edx p->s.size = nunits; 834: 89 72 04 mov %esi,0x4(%edx) freep = prevp; 837: a3 94 0b 00 00 mov %eax,0xb94 } 83c: 8d 65 f4 lea -0xc(%ebp),%esp return (void*)(p + 1); 83f: 8d 42 08 lea 0x8(%edx),%eax } 842: 5b pop %ebx 843: 5e pop %esi 844: 5f pop %edi 845: 5d pop %ebp 846: c3 ret 847: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 84e: 66 90 xchg %ax,%ax base.s.ptr = freep = prevp = &base; 850: c7 05 94 0b 00 00 98 movl $0xb98,0xb94 857: 0b 00 00 base.s.size = 0; 85a: bf 98 0b 00 00 mov $0xb98,%edi base.s.ptr = freep = prevp = &base; 85f: c7 05 98 0b 00 00 98 movl $0xb98,0xb98 866: 0b 00 00 for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 869: 89 f8 mov %edi,%eax base.s.size = 0; 86b: c7 05 9c 0b 00 00 00 movl $0x0,0xb9c 872: 00 00 00 if(p->s.size >= nunits){ 875: e9 36 ff ff ff jmp 7b0 <malloc+0x30> 87a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi prevp->s.ptr = p->s.ptr; 880: 8b 0a mov (%edx),%ecx 882: 89 08 mov %ecx,(%eax) 884: eb b1 jmp 837 <malloc+0xb7>
// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints.h" #include "txdb.h" #include "main.h" #include "uint256.h" static const int nCheckpointSpan = 500; namespace Checkpoints { typedef std::map<int, uint256> MapCheckpoints; // // What makes a good checkpoint block? // + Is surrounded by blocks with reasonable timestamps // (no blocks before with a timestamp after, none after with // timestamp before) // + Contains no strange transactions // static MapCheckpoints mapCheckpoints = boost::assign::map_list_of ( 0, uint256("0x00000ac7a13fffb72c10f6fd9a773dcf3e8388b8ffc359cee2483b1236ebcda1") ) ( 100000, uint256("0x0000000000000d09b191be5c3c0a9c080a5437346687160188ada2aa9f7cfb01") ) ( 200000, uint256("0x0000000000002889989080aac405f02a9feb54e461d7cddd92cf1ca8d8b84cc8") ) ( 240000, uint256("0x00000000000007bd9af865b57c6640317b8035e935bb4e6b126c8780ac4e5a38") ) ( 300000, uint256("0x0000000000000140339a853ffe40e16aa3d379375b224a29231b4fccec9ab4e5") ) ( 400001, uint256("0x00000000000005b19c24a5ca800b9e495cbca611e2227609ea59ac24d6cbc550") ) ( 500004, uint256("0x87a3ba99a9eeea9f1745b88dbbb6fc4da22de5643eb1ca3a9984a1069d2865ee") ) ( 600001, uint256("0x87456ae77dedb647689622a6f1d9073f3f3c38243c690a23b7d8e302f6db8a3f") ) ( 640002, uint256("0x5bd76721290d4aa3c0aa46df0c39d85b339ab2b83be0bed6d356c0354550f1bf") ) ( 690000, uint256("0x9a480261819931e5f4c374593b53406dc42ad0fa257e0c1bfe4f218031dc295a") ) ( 700000, uint256("0x43f6f487555f41b304a05c85e10bbffa6ff23d17169428fee336c9af768dc406") ) ( 800000, uint256("0x0000000000000e617a11d8e34c1e63449e6b9c8ddb718c81e22f584240997079") ) ( 900000, uint256("0x00000000000008e12316dddb12ec4eae37b084d45dc1a6f20f9817f973dea830") ) ( 1000000, uint256("0x00000000000002eabd7836eaab5ca86525731d2c3e2f01add80b9ea5b772cd20") ) ( 1100000, uint256("0x0000000000000402bdf8ccede644b7a7f2f1e20e593d5146eb7da6703841de8c") ) ( 1200000, uint256("0x000000000000017f54f4549172a47a59376e72e44c7a829c75b86050eaa6e564") ) ( 1300000, uint256("0xd9c98ec64f964f59a192c63d1af4d8449cd68e7e526626a7c98bfdf090b0dc1b") ) ( 1400000, uint256("0x9cf9760ed875a43e263aeeea6ad526f79e3a8021fe30b93344f80913b5cb357a") ) ( 1500000, uint256("0x394006e5a85a4c2da1b4f86113939ae3d5795778ba0806f7d5d47e380776c2ab") ) ; // TestNet has no checkpoints static MapCheckpoints mapCheckpointsTestnet; bool CheckHardened(int nHeight, const uint256& hash) { MapCheckpoints& checkpoints = (TestNet() ? mapCheckpointsTestnet : mapCheckpoints); MapCheckpoints::const_iterator i = checkpoints.find(nHeight); if (i == checkpoints.end()) return true; return hash == i->second; } int GetTotalBlocksEstimate() { MapCheckpoints& checkpoints = (TestNet() ? mapCheckpointsTestnet : mapCheckpoints); if (checkpoints.empty()) return 0; return checkpoints.rbegin()->first; } CBlockIndex* GetLastCheckpoint(const std::map<uint256, CBlockIndex*>& mapBlockIndex) { MapCheckpoints& checkpoints = (TestNet() ? mapCheckpointsTestnet : mapCheckpoints); BOOST_REVERSE_FOREACH(const MapCheckpoints::value_type& i, checkpoints) { const uint256& hash = i.second; std::map<uint256, CBlockIndex*>::const_iterator t = mapBlockIndex.find(hash); if (t != mapBlockIndex.end()) return t->second; } return NULL; } // ppcoin: synchronized checkpoint (centrally broadcasted) uint256 hashSyncCheckpoint = 0; uint256 hashPendingCheckpoint = 0; CSyncCheckpoint checkpointMessage; CSyncCheckpoint checkpointMessagePending; uint256 hashInvalidCheckpoint = 0; CCriticalSection cs_hashSyncCheckpoint; // ppcoin: get last synchronized checkpoint CBlockIndex* GetLastSyncCheckpoint() { LOCK(cs_hashSyncCheckpoint); if (!mapBlockIndex.count(hashSyncCheckpoint)) error("GetSyncCheckpoint: block index missing for current sync-checkpoint %s", hashSyncCheckpoint.ToString()); else return mapBlockIndex[hashSyncCheckpoint]; return NULL; } // ppcoin: only descendant of current sync-checkpoint is allowed bool ValidateSyncCheckpoint(uint256 hashCheckpoint) { if (!mapBlockIndex.count(hashSyncCheckpoint)) return error("ValidateSyncCheckpoint: block index missing for current sync-checkpoint %s", hashSyncCheckpoint.ToString()); if (!mapBlockIndex.count(hashCheckpoint)) return error("ValidateSyncCheckpoint: block index missing for received sync-checkpoint %s", hashCheckpoint.ToString()); CBlockIndex* pindexSyncCheckpoint = mapBlockIndex[hashSyncCheckpoint]; CBlockIndex* pindexCheckpointRecv = mapBlockIndex[hashCheckpoint]; if (pindexCheckpointRecv->nHeight <= pindexSyncCheckpoint->nHeight) { // Received an older checkpoint, trace back from current checkpoint // to the same height of the received checkpoint to verify // that current checkpoint should be a descendant block CBlockIndex* pindex = pindexSyncCheckpoint; while (pindex->nHeight > pindexCheckpointRecv->nHeight) if (!(pindex = pindex->pprev)) return error("ValidateSyncCheckpoint: pprev null - block index structure failure"); if (pindex->GetBlockHash() != hashCheckpoint) { hashInvalidCheckpoint = hashCheckpoint; return error("ValidateSyncCheckpoint: new sync-checkpoint %s is conflicting with current sync-checkpoint %s", hashCheckpoint.ToString(), hashSyncCheckpoint.ToString()); } return false; // ignore older checkpoint } // Received checkpoint should be a descendant block of the current // checkpoint. Trace back to the same height of current checkpoint // to verify. CBlockIndex* pindex = pindexCheckpointRecv; while (pindex->nHeight > pindexSyncCheckpoint->nHeight) if (!(pindex = pindex->pprev)) return error("ValidateSyncCheckpoint: pprev2 null - block index structure failure"); if (pindex->GetBlockHash() != hashSyncCheckpoint) { hashInvalidCheckpoint = hashCheckpoint; return error("ValidateSyncCheckpoint: new sync-checkpoint %s is not a descendant of current sync-checkpoint %s", hashCheckpoint.ToString(), hashSyncCheckpoint.ToString()); } return true; } bool WriteSyncCheckpoint(const uint256& hashCheckpoint) { CTxDB txdb; txdb.TxnBegin(); if (!txdb.WriteSyncCheckpoint(hashCheckpoint)) { txdb.TxnAbort(); return error("WriteSyncCheckpoint(): failed to write to db sync checkpoint %s", hashCheckpoint.ToString()); } if (!txdb.TxnCommit()) return error("WriteSyncCheckpoint(): failed to commit to db sync checkpoint %s", hashCheckpoint.ToString()); Checkpoints::hashSyncCheckpoint = hashCheckpoint; return true; } bool AcceptPendingSyncCheckpoint() { LOCK(cs_hashSyncCheckpoint); if (hashPendingCheckpoint != 0 && mapBlockIndex.count(hashPendingCheckpoint)) { if (!ValidateSyncCheckpoint(hashPendingCheckpoint)) { hashPendingCheckpoint = 0; checkpointMessagePending.SetNull(); return false; } CTxDB txdb; CBlockIndex* pindexCheckpoint = mapBlockIndex[hashPendingCheckpoint]; if (!pindexCheckpoint->IsInMainChain()) { CBlock block; if (!block.ReadFromDisk(pindexCheckpoint)) return error("AcceptPendingSyncCheckpoint: ReadFromDisk failed for sync checkpoint %s", hashPendingCheckpoint.ToString()); if (!block.SetBestChain(txdb, pindexCheckpoint)) { hashInvalidCheckpoint = hashPendingCheckpoint; return error("AcceptPendingSyncCheckpoint: SetBestChain failed for sync checkpoint %s", hashPendingCheckpoint.ToString()); } } if (!WriteSyncCheckpoint(hashPendingCheckpoint)) return error("AcceptPendingSyncCheckpoint(): failed to write sync checkpoint %s", hashPendingCheckpoint.ToString()); hashPendingCheckpoint = 0; checkpointMessage = checkpointMessagePending; checkpointMessagePending.SetNull(); LogPrintf("AcceptPendingSyncCheckpoint : sync-checkpoint at %s\n", hashSyncCheckpoint.ToString()); // relay the checkpoint if (!checkpointMessage.IsNull()) { BOOST_FOREACH(CNode* pnode, vNodes) checkpointMessage.RelayTo(pnode); } return true; } return false; } // Automatically select a suitable sync-checkpoint uint256 AutoSelectSyncCheckpoint() { const CBlockIndex *pindex = pindexBest; // Search backward for a block within max span and maturity window while (pindex->pprev && pindex->nHeight + nCheckpointSpan > pindexBest->nHeight) pindex = pindex->pprev; return pindex->GetBlockHash(); } // Check against synchronized checkpoint bool CheckSync(const uint256& hashBlock, const CBlockIndex* pindexPrev) { if (TestNet()) return true; // Testnet has no checkpoints int nHeight = pindexPrev->nHeight + 1; LOCK(cs_hashSyncCheckpoint); // sync-checkpoint should always be accepted block assert(mapBlockIndex.count(hashSyncCheckpoint)); const CBlockIndex* pindexSync = mapBlockIndex[hashSyncCheckpoint]; if (nHeight > pindexSync->nHeight) { // trace back to same height as sync-checkpoint const CBlockIndex* pindex = pindexPrev; while (pindex->nHeight > pindexSync->nHeight) if (!(pindex = pindex->pprev)) return error("CheckSync: pprev null - block index structure failure"); if (pindex->nHeight < pindexSync->nHeight || pindex->GetBlockHash() != hashSyncCheckpoint) return false; // only descendant of sync-checkpoint can pass check } if (nHeight == pindexSync->nHeight && hashBlock != hashSyncCheckpoint) return false; // same height with sync-checkpoint if (nHeight < pindexSync->nHeight && !mapBlockIndex.count(hashBlock)) return false; // lower height than sync-checkpoint return true; } bool WantedByPendingSyncCheckpoint(uint256 hashBlock) { LOCK(cs_hashSyncCheckpoint); if (hashPendingCheckpoint == 0) return false; if (hashBlock == hashPendingCheckpoint) return true; if (mapOrphanBlocks.count(hashPendingCheckpoint) && hashBlock == WantedByOrphan(mapOrphanBlocks[hashPendingCheckpoint])) return true; return false; } // ppcoin: reset synchronized checkpoint to last hardened checkpoint bool ResetSyncCheckpoint() { LOCK(cs_hashSyncCheckpoint); const uint256& hash = mapCheckpoints.rbegin()->second; if (mapBlockIndex.count(hash) && !mapBlockIndex[hash]->IsInMainChain()) { // checkpoint block accepted but not yet in main chain LogPrintf("ResetSyncCheckpoint: SetBestChain to hardened checkpoint %s\n", hash.ToString()); CTxDB txdb; CBlock block; if (!block.ReadFromDisk(mapBlockIndex[hash])) return error("ResetSyncCheckpoint: ReadFromDisk failed for hardened checkpoint %s", hash.ToString()); if (!block.SetBestChain(txdb, mapBlockIndex[hash])) { return error("ResetSyncCheckpoint: SetBestChain failed for hardened checkpoint %s", hash.ToString()); } } else if(!mapBlockIndex.count(hash)) { // checkpoint block not yet accepted hashPendingCheckpoint = hash; checkpointMessagePending.SetNull(); LogPrintf("ResetSyncCheckpoint: pending for sync-checkpoint %s\n", hashPendingCheckpoint.ToString()); } BOOST_REVERSE_FOREACH(const MapCheckpoints::value_type& i, mapCheckpoints) { const uint256& hash = i.second; if (mapBlockIndex.count(hash) && mapBlockIndex[hash]->IsInMainChain()) { if (!WriteSyncCheckpoint(hash)) return error("ResetSyncCheckpoint: failed to write sync checkpoint %s", hash.ToString()); LogPrintf("ResetSyncCheckpoint: sync-checkpoint reset to %s\n", hashSyncCheckpoint.ToString()); return true; } } if (!WriteSyncCheckpoint(Params().HashGenesisBlock())) return error("ResetSyncCheckpoint: failed to write sync checkpoint genesis block"); LogPrintf("ResetSyncCheckpoint: sync-checkpoint reset to genesis block\n"); return true; } void AskForPendingSyncCheckpoint(CNode* pfrom) { LOCK(cs_hashSyncCheckpoint); if (pfrom && hashPendingCheckpoint != 0 && (!mapBlockIndex.count(hashPendingCheckpoint)) && (!mapOrphanBlocks.count(hashPendingCheckpoint))) pfrom->AskFor(CInv(MSG_BLOCK, hashPendingCheckpoint)); } bool SetCheckpointPrivKey(std::string strPrivKey) { // Test signing a sync-checkpoint with genesis block CSyncCheckpoint checkpoint; checkpoint.hashCheckpoint = Params().HashGenesisBlock(); CDataStream sMsg(SER_NETWORK, PROTOCOL_VERSION); sMsg << (CUnsignedSyncCheckpoint)checkpoint; checkpoint.vchMsg = std::vector<unsigned char>(sMsg.begin(), sMsg.end()); std::vector<unsigned char> vchPrivKey = ParseHex(strPrivKey); CKey key; key.SetPrivKey(CPrivKey(vchPrivKey.begin(), vchPrivKey.end()), false); // if key is not correct openssl may crash if (!key.Sign(Hash(checkpoint.vchMsg.begin(), checkpoint.vchMsg.end()), checkpoint.vchSig)) return false; // Test signing successful, proceed CSyncCheckpoint::strMasterPrivKey = strPrivKey; return true; } bool SendSyncCheckpoint(uint256 hashCheckpoint) { CSyncCheckpoint checkpoint; checkpoint.hashCheckpoint = hashCheckpoint; CDataStream sMsg(SER_NETWORK, PROTOCOL_VERSION); sMsg << (CUnsignedSyncCheckpoint)checkpoint; checkpoint.vchMsg = std::vector<unsigned char>(sMsg.begin(), sMsg.end()); if (CSyncCheckpoint::strMasterPrivKey.empty()) return error("SendSyncCheckpoint: Checkpoint master key unavailable."); std::vector<unsigned char> vchPrivKey = ParseHex(CSyncCheckpoint::strMasterPrivKey); CKey key; key.SetPrivKey(CPrivKey(vchPrivKey.begin(), vchPrivKey.end()), false); // if key is not correct openssl may crash if (!key.Sign(Hash(checkpoint.vchMsg.begin(), checkpoint.vchMsg.end()), checkpoint.vchSig)) return error("SendSyncCheckpoint: Unable to sign checkpoint, check private key?"); if(!checkpoint.ProcessSyncCheckpoint(NULL)) { LogPrintf("WARNING: SendSyncCheckpoint: Failed to process checkpoint.\n"); return false; } // Relay checkpoint { LOCK(cs_vNodes); BOOST_FOREACH(CNode* pnode, vNodes) checkpoint.RelayTo(pnode); } return true; } } // ppcoin: sync-checkpoint master key const std::string CSyncCheckpoint::strMasterPubKey = "04cc76ef447102f39f019b0e59c08e380623cea08d7bd334792a1dd34b1b8ea1051b91d41c9fccc5121530516e9473ebc234635eae4bd38413c442979826d1ada7"; std::string CSyncCheckpoint::strMasterPrivKey = ""; bool CSyncCheckpoint::RelayTo(CNode* pnode) const { // don't relay to nodes which haven't sent their version message if (pnode->nVersion == 0) return false; // returns true if wasn't already sent if (pnode->hashCheckpointKnown != hashCheckpoint) { pnode->hashCheckpointKnown = hashCheckpoint; pnode->PushMessage("checkpoint", *this); return true; } return false; } // ppcoin: verify signature of sync-checkpoint message bool CSyncCheckpoint::CheckSignature() { CPubKey key(ParseHex(CSyncCheckpoint::strMasterPubKey)); if (!key.Verify(Hash(vchMsg.begin(), vchMsg.end()), vchSig)) return error("CSyncCheckpoint::CheckSignature() : verify signature failed"); // Now unserialize the data CDataStream sMsg(vchMsg, SER_NETWORK, PROTOCOL_VERSION); sMsg >> *(CUnsignedSyncCheckpoint*)this; return true; } // ppcoin: process synchronized checkpoint bool CSyncCheckpoint::ProcessSyncCheckpoint(CNode* pfrom) { if (!CheckSignature()) return false; LOCK(Checkpoints::cs_hashSyncCheckpoint); if (!mapBlockIndex.count(hashCheckpoint)) { // We haven't received the checkpoint chain, keep the checkpoint as pending Checkpoints::hashPendingCheckpoint = hashCheckpoint; Checkpoints::checkpointMessagePending = *this; LogPrintf("ProcessSyncCheckpoint: pending for sync-checkpoint %s\n", hashCheckpoint.ToString()); // Ask this guy to fill in what we're missing if (pfrom) { PushGetBlocks(pfrom, pindexBest, hashCheckpoint); // ask directly as well in case rejected earlier by duplicate // proof-of-stake because getblocks may not get it this time pfrom->AskFor(CInv(MSG_BLOCK, mapOrphanBlocks.count(hashCheckpoint)? WantedByOrphan(mapOrphanBlocks[hashCheckpoint]) : hashCheckpoint)); } return false; } if (!Checkpoints::ValidateSyncCheckpoint(hashCheckpoint)) return false; CTxDB txdb; CBlockIndex* pindexCheckpoint = mapBlockIndex[hashCheckpoint]; if (!pindexCheckpoint->IsInMainChain()) { // checkpoint chain received but not yet main chain CBlock block; if (!block.ReadFromDisk(pindexCheckpoint)) return error("ProcessSyncCheckpoint: ReadFromDisk failed for sync checkpoint %s", hashCheckpoint.ToString()); if (!block.SetBestChain(txdb, pindexCheckpoint)) { Checkpoints::hashInvalidCheckpoint = hashCheckpoint; return error("ProcessSyncCheckpoint: SetBestChain failed for sync checkpoint %s", hashCheckpoint.ToString()); } } if (!Checkpoints::WriteSyncCheckpoint(hashCheckpoint)) return error("ProcessSyncCheckpoint(): failed to write sync checkpoint %s", hashCheckpoint.ToString()); Checkpoints::checkpointMessage = *this; Checkpoints::hashPendingCheckpoint = 0; Checkpoints::checkpointMessagePending.SetNull(); LogPrintf("ProcessSyncCheckpoint: sync-checkpoint at %s\n", hashCheckpoint.ToString()); return true; }
// Copyright (c) 2011-2013 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "receiverequestdialog.h" #include "ui_receiverequestdialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include "walletmodel.h" #include <QClipboard> #include <QDrag> #include <QMenu> #include <QMimeData> #include <QMouseEvent> #include <QPixmap> #if QT_VERSION < 0x050000 #include <QUrl> #endif #if defined(HAVE_CONFIG_H) #include "config/newcoin-config.h" /* for USE_QRCODE */ #endif #ifdef USE_QRCODE #include <qrencode.h> #endif QRImageWidget::QRImageWidget(QWidget *parent): QLabel(parent), contextMenu(0) { contextMenu = new QMenu(this); QAction *saveImageAction = new QAction(tr("&Save Image..."), this); connect(saveImageAction, SIGNAL(triggered()), this, SLOT(saveImage())); contextMenu->addAction(saveImageAction); QAction *copyImageAction = new QAction(tr("&Copy Image"), this); connect(copyImageAction, SIGNAL(triggered()), this, SLOT(copyImage())); contextMenu->addAction(copyImageAction); } QImage QRImageWidget::exportImage() { if(!pixmap()) return QImage(); return pixmap()->toImage().scaled(EXPORT_IMAGE_SIZE, EXPORT_IMAGE_SIZE); } void QRImageWidget::mousePressEvent(QMouseEvent *event) { if(event->button() == Qt::LeftButton && pixmap()) { event->accept(); QMimeData *mimeData = new QMimeData; mimeData->setImageData(exportImage()); QDrag *drag = new QDrag(this); drag->setMimeData(mimeData); drag->exec(); } else { QLabel::mousePressEvent(event); } } void QRImageWidget::saveImage() { if(!pixmap()) return; QString fn = GUIUtil::getSaveFileName(this, tr("Save QR Code"), QString(), tr("PNG Image (*.png)"), NULL); if (!fn.isEmpty()) { exportImage().save(fn); } } void QRImageWidget::copyImage() { if(!pixmap()) return; QApplication::clipboard()->setImage(exportImage()); } void QRImageWidget::contextMenuEvent(QContextMenuEvent *event) { if(!pixmap()) return; contextMenu->exec(event->globalPos()); } ReceiveRequestDialog::ReceiveRequestDialog(QWidget *parent) : QDialog(parent), ui(new Ui::ReceiveRequestDialog), model(0) { ui->setupUi(this); #ifndef USE_QRCODE ui->btnSaveAs->setVisible(false); ui->lblQRCode->setVisible(false); #endif connect(ui->btnSaveAs, SIGNAL(clicked()), ui->lblQRCode, SLOT(saveImage())); } ReceiveRequestDialog::~ReceiveRequestDialog() { delete ui; } void ReceiveRequestDialog::setModel(OptionsModel *model) { this->model = model; if (model) connect(model, SIGNAL(displayUnitChanged(int)), this, SLOT(update())); // update the display unit if necessary update(); } void ReceiveRequestDialog::setInfo(const SendCoinsRecipient &info) { this->info = info; update(); } void ReceiveRequestDialog::update() { if(!model) return; QString target = info.label; if(target.isEmpty()) target = info.address; setWindowTitle(tr("Request payment to %1").arg(target)); QString uri = GUIUtil::formatBitcoinURI(info); ui->btnSaveAs->setEnabled(false); QString html; html += "<html><font face='verdana, arial, helvetica, sans-serif'>"; html += "<b>"+tr("Payment information")+"</b><br>"; html += "<b>"+tr("URI")+"</b>: "; html += "<a href=\""+uri+"\">" + GUIUtil::HtmlEscape(uri) + "</a><br>"; html += "<b>"+tr("Address")+"</b>: " + GUIUtil::HtmlEscape(info.address) + "<br>"; if(info.amount) html += "<b>"+tr("Amount")+"</b>: " + BitcoinUnits::formatHtmlWithUnit(model->getDisplayUnit(), info.amount) + "<br>"; if(!info.label.isEmpty()) html += "<b>"+tr("Label")+"</b>: " + GUIUtil::HtmlEscape(info.label) + "<br>"; if(!info.message.isEmpty()) html += "<b>"+tr("Message")+"</b>: " + GUIUtil::HtmlEscape(info.message) + "<br>"; html += "<b>"+tr("InstantSend")+"</b>: " + (info.fUseInstantSend ? tr("Yes") : tr("No")) + "<br>"; ui->outUri->setText(html); #ifdef USE_QRCODE ui->lblQRCode->setText(""); if(!uri.isEmpty()) { // limit URI length if (uri.length() > MAX_URI_LENGTH) { ui->lblQRCode->setText(tr("Resulting URI too long, try to reduce the text for label / message.")); } else { QRcode *code = QRcode_encodeString(uri.toUtf8().constData(), 0, QR_ECLEVEL_L, QR_MODE_8, 1); if (!code) { ui->lblQRCode->setText(tr("Error encoding URI into QR Code.")); return; } QImage myImage = QImage(code->width + 8, code->width + 8, QImage::Format_RGB32); myImage.fill(0xffffff); unsigned char *p = code->data; for (int y = 0; y < code->width; y++) { for (int x = 0; x < code->width; x++) { myImage.setPixel(x + 4, y + 4, ((*p & 1) ? 0x0 : 0xffffff)); p++; } } QRcode_free(code); ui->lblQRCode->setPixmap(QPixmap::fromImage(myImage).scaled(300, 300)); ui->btnSaveAs->setEnabled(true); } } #endif } void ReceiveRequestDialog::on_btnCopyURI_clicked() { GUIUtil::setClipboard(GUIUtil::formatBitcoinURI(info)); } void ReceiveRequestDialog::on_btnCopyAddress_clicked() { GUIUtil::setClipboard(info.address); }
push x22322a562195d1aca36ac4b590adb746cf34e80539a6df0ba0b5e5d93536f611 push 7 push "transferOwnership" push xF5AB1676D87235E4B5B1830C00A5BC783B9A58D2DC9AFE23D5FA387F1C80736E push 3 pcall
// Aula02 - MDC.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> int mdc(int,int,int &); int main() { int i, mdc_ab, iteracoes = 0, maximaIteracao = 0; for(i=104;i<10000000;i++){ mdc_ab = mdc(i,103,iteracoes); if(iteracoes > 8) printf("MDC(%d,18) = %d em %d iteracoes \n", i, mdc_ab, iteracoes); iteracoes = 0; } return 0; } int mdc(int a, int b, int &iteracoes){ if(a==0 && b==0){ iteracoes = 0; return 0; } if(b == 0) return a; else{ iteracoes += 1; return mdc(b, a%b, iteracoes); } }
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "transformations/convert_opset3_to_opset2/convert_topk3.hpp" #include <memory> #include <vector> #include <ngraph/opsets/opset1.hpp> #include <ngraph/opsets/opset2.hpp> #include <ngraph/opsets/opset3.hpp> #include <ngraph/rt_info.hpp> void ngraph::pass::ConvertTopK3::convert_topk3() { auto input = std::make_shared<pattern::op::Label>(element::i64, Shape{1, 1, 1, 1}); auto k = ngraph::opset3::Constant::create(element::i64, Shape{}, {10}); auto topk = std::make_shared<ngraph::opset3::TopK>(input, k, 0, "min", "value", element::i64); // this is a temporary workaround to avoid bug that TopK-3 does not have clone_with_new_inputs so the TopK-3 clone // generates TopK-1 operation auto topk_v1 = std::make_shared<ngraph::opset1::TopK>(input, k, 0, "min", "value", element::i64); ngraph::graph_rewrite_callback callback = [](pattern::Matcher& m) { std::shared_ptr<ngraph::op::v1::TopK> topk = std::dynamic_pointer_cast<ngraph::opset3::TopK> (m.get_match_root()); if (!topk) { topk = std::dynamic_pointer_cast<ngraph::opset1::TopK> (m.get_match_root()); } if (!topk) { return false; } Output<Node> last; ngraph::NodeVector new_ops; auto new_topk = std::make_shared<ngraph::opset2::TopK>(topk->input_value(0), topk->input_value(1), topk->get_axis(), topk->get_mode(), topk->get_sort_type(), element::i32); new_ops.push_back(new_topk); // if the output is the i32 then it matches behavior of the v1::TopK otherwise need to insert Convert if (topk->get_index_element_type() == element::i32) { last = new_topk->output(1); } else { last = std::make_shared<ngraph::opset2::Convert>(new_topk->output(1), topk->get_index_element_type()); new_ops.push_back(last.get_node_shared_ptr()); } new_topk->set_friendly_name(topk->get_friendly_name()); ngraph::copy_runtime_info(topk, new_ops); topk->output(0).replace(new_topk->output(0)); topk->output(1).replace(last); return true; }; auto m = std::make_shared<ngraph::pattern::Matcher>(topk, "ConvertTopK3"); this->add_matcher(m, callback, PassProperty::CHANGE_DYNAMIC_STATE); auto m2 = std::make_shared<ngraph::pattern::Matcher>(topk_v1, "ConvertTopK3"); this->add_matcher(m2, callback, PassProperty::CHANGE_DYNAMIC_STATE); }
; fibonacci.asm ; (nasm syntax) ; 0xDEADC0DE ; CS310 ; ; Use a loop to calculate and print the first 7 fibonacci numbers global _start ; %include "Along32.inc" ; section .text ; function fib ; takes one parameter: ecx -- return the ecx'th fibonacci number ; returns the value in eax fib: cmp ecx, 2 ; special-case fib(1) and fib(2) ja .body ; for fib(>= 3) mov eax, 1 jne .done ; fib(1) and fib(0) are 1 mov eax, 2 jmp .done .body: push ebx ; keep things clean for the caller push ecx ; use an iterative algorithm, rather than a recursive one ; (picked up this trick from SICP) sub ecx, 2 ; already handled fib(1) and fib(2), don't do extra loops mov ebx, 1 ; ebx = fib(n-2) mov eax, 2 ; eax = fib(n-1) .loop: xchg eax, ebx add eax, ebx loop .loop ; eax is all set and ready to go pop ecx ; clean up registers pop ebx .done: ret _start: mov ecx, 7 + 1 ; set it to one more than the desired number of iterations .loop: mov ebx, ecx ; save the loop counter in ebx mov ecx, 8 sub ecx, ebx ; subtract the previous loop value from 8 ; since we start at 8, the fib argument goes 0, 1, 2, 3, ... call fib call DumpRegs mov ecx, ebx ; put the loop counter back so it will be decremented loop .loop mov eax, 1 ; exit syscall mov ebx, 0 int 0x80
; -------------------------------------- ; Test SHLD. ; ; Store the HL register pair byte values ; into a memory address byte and the memory address plus one byte. ; SHLD adr : L -> (adr); H -> (adr+1) ; Store register L to address: adr(hb:lb). ; Store register H to address: adr+1. ; ; Load the HL register pair byte values ; from a memory address byte and the memory address plus one byte. ; LHLD adr : (adr) -> L; (adr+1) -> H ; ; -------------------------------------- lxi sp,512 ; Set stack pointer which is used with CALL and RET. Start: ; -------------------------------------- ; Initialize variables to 0. call printSeparator mvi h,0 ; Set address register pair H:L, to 0:0. mvi l,0 out 36 ; Print the register values for H:L. ; mvi a,0 ; Initialize variables to 0. Set the address values to zero (register A value). sta byteL sta byteH lda byteL ; Confirm set to 0. Load and print the address values. out 37 lda byteH out 37 ; -------------------------------------- ; Steps to store an address using SHLD call printSeparator lxi h,Addr3 ; Load the address value of Addr3 into H:L. ; Register H:L = 3:18, address# 786. out 36 ; Print the register values for H:L, and the content at that address. ; shld byteL ; Given byteL address(hb:lb), ; Store register L to memory location of byteL (byteL address). ; Store register H to memory location of byteH = byteL + 1 (byteH address). ; lda byteH ; Confirm the shld worked by loading and printing the address values. out 37 lda byteL out 37 ; -------------------------------------- ; Steps to store an address using SHLD call printSeparator mvi h,0 ; Set address register pair H:L, to 0:0. mvi l,0 out 36 ; Print the register values for H:L. lhld byteL ; Given byteL address(hb:lb), ; Store register L to memory location of byteL (byteL address). ; Store register H to memory location of byteH = byteL + 1 (byteH address). out 36 ; Print the register values for H:L, and the content at that address. ; -------------------------------------- ; Sample use: loading a byte array with data. call printSeparator lxi h,lb ; Set the H:L register pair to the line buffer address. out 36 ; Print the register values for H:L. shld lbc ; Store H and L registers into memory, the line buffer counter. mvi h,0 ; Confirm the shld worked. Set address register pair H:L, to 0:0. mvi l,0 out 36 ; Print the register values for H:L. ; lhld lbc ; Load H and L registers from memory. out 36 ; Print the register values for H:L. mvi a,'a' mov m,a ; Move register A to the H:L(register m) address. A -> (HL). lda lb ; Confirm the data was stored. out 37 ; inx h ; Increment H:L register pair. shld lbc ; Store the address into memory. ; At this point, H and L registers can be used for other purposes. lhld lbc ; Restore the address from memory: load H and L registers from memory. out 36 ; Print the register values for H:L. mvi m,'b' ; Store the next byte into the byte array. ; mvi a,'c' mov m,a inx h inr a mov m,a inx h inr a mov m,a ; lxi h,lb mov a,m out 37 inr m mov a,m out 37 inr m mov a,m out 37 inr m mov a,m out 37 ; ; -------------------------------------- call println hlt jmp Start ; ------------------------------------------ ; ------------------------------------------ printSeparator: call println mvi a,'-' out 3 mvi a,'-' out 3 mvi a,'-' out 3 mvi a,'-' out 3 mvi a,'-' out 3 mvi a,'-' out 3 mvi a,'-' out 3 ret println: mvi a,'\r' out 3 mvi a,'\n' out 3 ret ; -------------------------------------- ; Variables byteL ds 1 byteH ds 1 ; lbc ds 2 ; Address counter for lb. Address of last added key value = lb address + cpc-1. lb ds 8 ; Place to store what is typed in, for the current line. ; Cursor position is also the length of the entered text. ; ; H L Addr1 equ 128 ; 0000 0000 1000 0000 H:L = 0:128 Addr2 equ 512 ; 0000 0010 0000 0000 H:L = 2:000 Addr3 equ 786 ; 0000 0011 0001 0010 H:L = 3:018 ; -------------------------------------- end ; -------------------------------------- ; Successful run: ; + Download complete. ?- + r, RUN. ?- + runProcessor() ------- > Register H:L = 0: 0 = 00000000:00000000, Data: 49 = 061 = 00110001 > Register A = 0 = 000 = 00000000 > Register A = 0 = 000 = 00000000 ------- > Register H:L = 3: 18 = 00000011:00010010, Data: 0 = 000 = 00000000 > Register A = 3 = 003 = 00000011 > Register A = 18 = 022 = 00010010 ------- > Register H:L = 0: 0 = 00000000:00000000, Data: 49 = 061 = 00110001 > Register H:L = 3: 18 = 00000011:00010010, Data: 0 = 000 = 00000000 ------- > Register H:L = 0:185 = 00000000:10111001, Data: 0 = 000 = 00000000 > Register H:L = 0: 0 = 00000000:00000000, Data: 49 = 061 = 00110001 > Register H:L = 0:185 = 00000000:10111001, Data: 0 = 000 = 00000000 > Register A = 97 = 141 = 01100001 > Register H:L = 0:186 = 00000000:10111010, Data: 0 = 000 = 00000000 > Register A = 97 = 141 = 01100001 > Register A = 98 = 142 = 01100010 > Register A = 99 = 143 = 01100011 > Register A = 100 = 144 = 01100100 ++ HALT, host_read_status_led_WAIT() = 0 ; ; --------------------------------------
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r15 push %rax push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x11af3, %rax nop nop nop nop nop xor $80, %rdx movb (%rax), %cl nop and $52237, %rbx lea addresses_A_ht+0xaeaa, %r15 nop cmp $17799, %rdx mov $0x6162636465666768, %rbx movq %rbx, %xmm4 movups %xmm4, (%r15) and %rsi, %rsi lea addresses_normal_ht+0x1c6d6, %rsi lea addresses_normal_ht+0x846a, %rdi nop add $51159, %rdx mov $112, %rcx rep movsw nop nop nop nop nop xor $17375, %rbx lea addresses_A_ht+0x1a342, %rsi lea addresses_WT_ht+0xc7aa, %rdi sub $49646, %r13 mov $52, %rcx rep movsb nop nop nop nop inc %rbx lea addresses_normal_ht+0x1a3d2, %rax nop nop sub $50931, %rsi mov (%rax), %rdx nop sub $44529, %rsi lea addresses_WC_ht+0x1ec6a, %r15 nop and $57004, %rcx mov (%r15), %edi nop nop nop and %rcx, %rcx lea addresses_WT_ht+0xea4a, %rax nop nop nop nop sub $2813, %rdx movups (%rax), %xmm1 vpextrq $1, %xmm1, %r13 nop nop nop cmp %rax, %rax lea addresses_WC_ht+0x187de, %rsi lea addresses_A_ht+0x16a8a, %rdi clflush (%rsi) nop nop nop nop nop sub %r15, %r15 mov $88, %rcx rep movsw nop inc %rdx lea addresses_WT_ht+0xee6a, %r13 nop cmp %rdi, %rdi mov (%r13), %rdx cmp %r13, %r13 lea addresses_UC_ht+0xcc6a, %rcx nop nop nop nop inc %r15 mov $0x6162636465666768, %rbx movq %rbx, (%rcx) nop nop and $26409, %rcx lea addresses_normal_ht+0x1374a, %r15 nop nop cmp %rsi, %rsi mov $0x6162636465666768, %rax movq %rax, %xmm4 movups %xmm4, (%r15) nop nop nop nop dec %rsi lea addresses_WT_ht+0x106a, %rbx nop nop nop dec %rax movups (%rbx), %xmm2 vpextrq $1, %xmm2, %rdx nop nop nop nop xor %rcx, %rcx lea addresses_D_ht+0x9ea, %rsi lea addresses_normal_ht+0x10a6a, %rdi nop nop inc %rax mov $26, %rcx rep movsq inc %rdx lea addresses_D_ht+0xae6c, %rax nop nop nop nop nop and %r15, %r15 mov $0x6162636465666768, %rbx movq %rbx, %xmm4 movups %xmm4, (%rax) nop nop nop xor %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rax pop %r15 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r8 push %r9 push %rax push %rdx // Store lea addresses_WC+0x546a, %rdx clflush (%rdx) nop nop nop dec %r10 mov $0x5152535455565758, %r13 movq %r13, %xmm0 vmovups %ymm0, (%rdx) nop cmp %r8, %r8 // Faulty Load lea addresses_WT+0x1446a, %rdx nop nop nop inc %r9 mov (%rdx), %r8d lea oracles, %rdx and $0xff, %r8 shlq $12, %r8 mov (%rdx,%r8,1), %r8 pop %rdx pop %rax pop %r9 pop %r8 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 11}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC_ht', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 6}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': False, 'congruent': 3}} {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 3}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
//: S08:GlobalConst.cpp // From "Thinking in C++, 2nd Edition, Volume 1, Annotated Solutions Guide" // by Chuck Allison, (c) 2001 MindView, Inc. all rights reserved // Available at www.BruceEckel.com. const int n = 100; const int m = n + 2; int main() { } ///:~
adc a', (hl) ; Error adc a', (ix) ; Error adc a', (ix+127) ; Error adc a', (ix-128) ; Error adc a', (iy) ; Error adc a', (iy+127) ; Error adc a', (iy-128) ; Error adc a', -128 ; Error adc a', 127 ; Error adc a', 255 ; Error adc a', a ; Error adc a', b ; Error adc a', c ; Error adc a', d ; Error adc a', e ; Error adc a', h ; Error adc a', l ; Error adc hl', bc ; Error adc hl', de ; Error adc hl', hl ; Error adc hl', sp ; Error add a', (hl) ; Error add a', (ix) ; Error add a', (ix+127) ; Error add a', (ix-128) ; Error add a', (iy) ; Error add a', (iy+127) ; Error add a', (iy-128) ; Error add a', -128 ; Error add a', 127 ; Error add a', 255 ; Error add a', a ; Error add a', b ; Error add a', c ; Error add a', d ; Error add a', e ; Error add a', h ; Error add a', l ; Error add hl', bc ; Error add hl', de ; Error add hl', hl ; Error add hl', sp ; Error add sp, -128 ; Error add sp, 127 ; Error adi hl, -128 ; Error adi hl, 127 ; Error adi hl, 255 ; Error adi sp, -128 ; Error adi sp, 127 ; Error adi sp, 255 ; Error altd adc (hl) ; Error altd adc (ix) ; Error altd adc (ix+127) ; Error altd adc (ix-128) ; Error altd adc (iy) ; Error altd adc (iy+127) ; Error altd adc (iy-128) ; Error altd adc -128 ; Error altd adc 127 ; Error altd adc 255 ; Error altd adc a ; Error altd adc a, (hl) ; Error altd adc a, (ix) ; Error altd adc a, (ix+127) ; Error altd adc a, (ix-128) ; Error altd adc a, (iy) ; Error altd adc a, (iy+127) ; Error altd adc a, (iy-128) ; Error altd adc a, -128 ; Error altd adc a, 127 ; Error altd adc a, 255 ; Error altd adc a, a ; Error altd adc a, b ; Error altd adc a, c ; Error altd adc a, d ; Error altd adc a, e ; Error altd adc a, h ; Error altd adc a, l ; Error altd adc b ; Error altd adc c ; Error altd adc d ; Error altd adc e ; Error altd adc h ; Error altd adc hl, bc ; Error altd adc hl, de ; Error altd adc hl, hl ; Error altd adc hl, sp ; Error altd adc l ; Error altd adc m ; Error altd add (hl) ; Error altd add (ix) ; Error altd add (ix+127) ; Error altd add (ix-128) ; Error altd add (iy) ; Error altd add (iy+127) ; Error altd add (iy-128) ; Error altd add -128 ; Error altd add 127 ; Error altd add 255 ; Error altd add a ; Error altd add a, (hl) ; Error altd add a, (ix) ; Error altd add a, (ix+127) ; Error altd add a, (ix-128) ; Error altd add a, (iy) ; Error altd add a, (iy+127) ; Error altd add a, (iy-128) ; Error altd add a, -128 ; Error altd add a, 127 ; Error altd add a, 255 ; Error altd add a, a ; Error altd add a, b ; Error altd add a, c ; Error altd add a, d ; Error altd add a, e ; Error altd add a, h ; Error altd add a, l ; Error altd add b ; Error altd add c ; Error altd add d ; Error altd add e ; Error altd add h ; Error altd add hl, bc ; Error altd add hl, de ; Error altd add hl, hl ; Error altd add hl, sp ; Error altd add l ; Error altd add m ; Error altd and (hl) ; Error altd and (ix) ; Error altd and (ix+127) ; Error altd and (ix-128) ; Error altd and (iy) ; Error altd and (iy+127) ; Error altd and (iy-128) ; Error altd and -128 ; Error altd and 127 ; Error altd and 255 ; Error altd and a ; Error altd and a, (hl) ; Error altd and a, (ix) ; Error altd and a, (ix+127) ; Error altd and a, (ix-128) ; Error altd and a, (iy) ; Error altd and a, (iy+127) ; Error altd and a, (iy-128) ; Error altd and a, -128 ; Error altd and a, 127 ; Error altd and a, 255 ; Error altd and a, a ; Error altd and a, b ; Error altd and a, c ; Error altd and a, d ; Error altd and a, e ; Error altd and a, h ; Error altd and a, l ; Error altd and b ; Error altd and c ; Error altd and d ; Error altd and e ; Error altd and h ; Error altd and hl, de ; Error altd and ix, de ; Error altd and iy, de ; Error altd and l ; Error altd bit -1, (hl) ; Error altd bit -1, (hl) ; Error altd bit -1, (ix) ; Error altd bit -1, (ix) ; Error altd bit -1, (ix+127) ; Error altd bit -1, (ix+127) ; Error altd bit -1, (ix-128) ; Error altd bit -1, (ix-128) ; Error altd bit -1, (iy) ; Error altd bit -1, (iy) ; Error altd bit -1, (iy+127) ; Error altd bit -1, (iy+127) ; Error altd bit -1, (iy-128) ; Error altd bit -1, (iy-128) ; Error altd bit -1, a ; Error altd bit -1, a ; Error altd bit -1, b ; Error altd bit -1, b ; Error altd bit -1, c ; Error altd bit -1, c ; Error altd bit -1, d ; Error altd bit -1, d ; Error altd bit -1, e ; Error altd bit -1, e ; Error altd bit -1, h ; Error altd bit -1, h ; Error altd bit -1, l ; Error altd bit -1, l ; Error altd bit 0, (hl) ; Error altd bit 0, (ix) ; Error altd bit 0, (ix+127) ; Error altd bit 0, (ix-128) ; Error altd bit 0, (iy) ; Error altd bit 0, (iy+127) ; Error altd bit 0, (iy-128) ; Error altd bit 0, a ; Error altd bit 0, b ; Error altd bit 0, c ; Error altd bit 0, d ; Error altd bit 0, e ; Error altd bit 0, h ; Error altd bit 0, l ; Error altd bit 1, (hl) ; Error altd bit 1, (ix) ; Error altd bit 1, (ix+127) ; Error altd bit 1, (ix-128) ; Error altd bit 1, (iy) ; Error altd bit 1, (iy+127) ; Error altd bit 1, (iy-128) ; Error altd bit 1, a ; Error altd bit 1, b ; Error altd bit 1, c ; Error altd bit 1, d ; Error altd bit 1, e ; Error altd bit 1, h ; Error altd bit 1, l ; Error altd bit 2, (hl) ; Error altd bit 2, (ix) ; Error altd bit 2, (ix+127) ; Error altd bit 2, (ix-128) ; Error altd bit 2, (iy) ; Error altd bit 2, (iy+127) ; Error altd bit 2, (iy-128) ; Error altd bit 2, a ; Error altd bit 2, b ; Error altd bit 2, c ; Error altd bit 2, d ; Error altd bit 2, e ; Error altd bit 2, h ; Error altd bit 2, l ; Error altd bit 3, (hl) ; Error altd bit 3, (ix) ; Error altd bit 3, (ix+127) ; Error altd bit 3, (ix-128) ; Error altd bit 3, (iy) ; Error altd bit 3, (iy+127) ; Error altd bit 3, (iy-128) ; Error altd bit 3, a ; Error altd bit 3, b ; Error altd bit 3, c ; Error altd bit 3, d ; Error altd bit 3, e ; Error altd bit 3, h ; Error altd bit 3, l ; Error altd bit 4, (hl) ; Error altd bit 4, (ix) ; Error altd bit 4, (ix+127) ; Error altd bit 4, (ix-128) ; Error altd bit 4, (iy) ; Error altd bit 4, (iy+127) ; Error altd bit 4, (iy-128) ; Error altd bit 4, a ; Error altd bit 4, b ; Error altd bit 4, c ; Error altd bit 4, d ; Error altd bit 4, e ; Error altd bit 4, h ; Error altd bit 4, l ; Error altd bit 5, (hl) ; Error altd bit 5, (ix) ; Error altd bit 5, (ix+127) ; Error altd bit 5, (ix-128) ; Error altd bit 5, (iy) ; Error altd bit 5, (iy+127) ; Error altd bit 5, (iy-128) ; Error altd bit 5, a ; Error altd bit 5, b ; Error altd bit 5, c ; Error altd bit 5, d ; Error altd bit 5, e ; Error altd bit 5, h ; Error altd bit 5, l ; Error altd bit 6, (hl) ; Error altd bit 6, (ix) ; Error altd bit 6, (ix+127) ; Error altd bit 6, (ix-128) ; Error altd bit 6, (iy) ; Error altd bit 6, (iy+127) ; Error altd bit 6, (iy-128) ; Error altd bit 6, a ; Error altd bit 6, b ; Error altd bit 6, c ; Error altd bit 6, d ; Error altd bit 6, e ; Error altd bit 6, h ; Error altd bit 6, l ; Error altd bit 7, (hl) ; Error altd bit 7, (ix) ; Error altd bit 7, (ix+127) ; Error altd bit 7, (ix-128) ; Error altd bit 7, (iy) ; Error altd bit 7, (iy+127) ; Error altd bit 7, (iy-128) ; Error altd bit 7, a ; Error altd bit 7, b ; Error altd bit 7, c ; Error altd bit 7, d ; Error altd bit 7, e ; Error altd bit 7, h ; Error altd bit 7, l ; Error altd bit 8, (hl) ; Error altd bit 8, (hl) ; Error altd bit 8, (ix) ; Error altd bit 8, (ix) ; Error altd bit 8, (ix+127) ; Error altd bit 8, (ix+127) ; Error altd bit 8, (ix-128) ; Error altd bit 8, (ix-128) ; Error altd bit 8, (iy) ; Error altd bit 8, (iy) ; Error altd bit 8, (iy+127) ; Error altd bit 8, (iy+127) ; Error altd bit 8, (iy-128) ; Error altd bit 8, (iy-128) ; Error altd bit 8, a ; Error altd bit 8, a ; Error altd bit 8, b ; Error altd bit 8, b ; Error altd bit 8, c ; Error altd bit 8, c ; Error altd bit 8, d ; Error altd bit 8, d ; Error altd bit 8, e ; Error altd bit 8, e ; Error altd bit 8, h ; Error altd bit 8, h ; Error altd bit 8, l ; Error altd bit 8, l ; Error altd bool hl ; Error altd bool ix ; Error altd bool iy ; Error altd ccf ; Error altd cp (hl) ; Error altd cp (ix) ; Error altd cp (ix+127) ; Error altd cp (ix-128) ; Error altd cp (iy) ; Error altd cp (iy+127) ; Error altd cp (iy-128) ; Error altd cp -128 ; Error altd cp 127 ; Error altd cp 255 ; Error altd cp a ; Error altd cp a, (hl) ; Error altd cp a, (ix) ; Error altd cp a, (ix+127) ; Error altd cp a, (ix-128) ; Error altd cp a, (iy) ; Error altd cp a, (iy+127) ; Error altd cp a, (iy-128) ; Error altd cp a, -128 ; Error altd cp a, 127 ; Error altd cp a, 255 ; Error altd cp a, a ; Error altd cp a, b ; Error altd cp a, c ; Error altd cp a, d ; Error altd cp a, e ; Error altd cp a, h ; Error altd cp a, l ; Error altd cp b ; Error altd cp c ; Error altd cp d ; Error altd cp e ; Error altd cp h ; Error altd cp l ; Error altd cpl ; Error altd cpl a ; Error altd dec (hl) ; Error altd dec (ix) ; Error altd dec (ix+127) ; Error altd dec (ix-128) ; Error altd dec (iy) ; Error altd dec (iy+127) ; Error altd dec (iy-128) ; Error altd dec a ; Error altd dec b ; Error altd dec bc ; Error altd dec c ; Error altd dec d ; Error altd dec de ; Error altd dec e ; Error altd dec h ; Error altd dec hl ; Error altd dec l ; Error altd djnz ASMPC ; Error altd djnz b, ASMPC ; Error altd ex (sp), hl ; Error altd ex de', hl ; Error altd ex de, hl ; Error altd inc (hl) ; Error altd inc (ix) ; Error altd inc (ix+127) ; Error altd inc (ix-128) ; Error altd inc (iy) ; Error altd inc (iy+127) ; Error altd inc (iy-128) ; Error altd inc a ; Error altd inc b ; Error altd inc bc ; Error altd inc c ; Error altd inc d ; Error altd inc de ; Error altd inc e ; Error altd inc h ; Error altd inc hl ; Error altd inc l ; Error altd ioe adc (hl) ; Error altd ioe adc (ix) ; Error altd ioe adc (ix+127) ; Error altd ioe adc (ix-128) ; Error altd ioe adc (iy) ; Error altd ioe adc (iy+127) ; Error altd ioe adc (iy-128) ; Error altd ioe adc a, (hl) ; Error altd ioe adc a, (ix) ; Error altd ioe adc a, (ix+127) ; Error altd ioe adc a, (ix-128) ; Error altd ioe adc a, (iy) ; Error altd ioe adc a, (iy+127) ; Error altd ioe adc a, (iy-128) ; Error altd ioe add (hl) ; Error altd ioe add (ix) ; Error altd ioe add (ix+127) ; Error altd ioe add (ix-128) ; Error altd ioe add (iy) ; Error altd ioe add (iy+127) ; Error altd ioe add (iy-128) ; Error altd ioe add a, (hl) ; Error altd ioe add a, (ix) ; Error altd ioe add a, (ix+127) ; Error altd ioe add a, (ix-128) ; Error altd ioe add a, (iy) ; Error altd ioe add a, (iy+127) ; Error altd ioe add a, (iy-128) ; Error altd ioe and (hl) ; Error altd ioe and (ix) ; Error altd ioe and (ix+127) ; Error altd ioe and (ix-128) ; Error altd ioe and (iy) ; Error altd ioe and (iy+127) ; Error altd ioe and (iy-128) ; Error altd ioe and a, (hl) ; Error altd ioe and a, (ix) ; Error altd ioe and a, (ix+127) ; Error altd ioe and a, (ix-128) ; Error altd ioe and a, (iy) ; Error altd ioe and a, (iy+127) ; Error altd ioe and a, (iy-128) ; Error altd ioe bit -1, (hl) ; Error altd ioe bit -1, (hl) ; Error altd ioe bit -1, (ix) ; Error altd ioe bit -1, (ix) ; Error altd ioe bit -1, (ix+127) ; Error altd ioe bit -1, (ix+127) ; Error altd ioe bit -1, (ix-128) ; Error altd ioe bit -1, (ix-128) ; Error altd ioe bit -1, (iy) ; Error altd ioe bit -1, (iy) ; Error altd ioe bit -1, (iy+127) ; Error altd ioe bit -1, (iy+127) ; Error altd ioe bit -1, (iy-128) ; Error altd ioe bit -1, (iy-128) ; Error altd ioe bit 0, (hl) ; Error altd ioe bit 0, (ix) ; Error altd ioe bit 0, (ix+127) ; Error altd ioe bit 0, (ix-128) ; Error altd ioe bit 0, (iy) ; Error altd ioe bit 0, (iy+127) ; Error altd ioe bit 0, (iy-128) ; Error altd ioe bit 1, (hl) ; Error altd ioe bit 1, (ix) ; Error altd ioe bit 1, (ix+127) ; Error altd ioe bit 1, (ix-128) ; Error altd ioe bit 1, (iy) ; Error altd ioe bit 1, (iy+127) ; Error altd ioe bit 1, (iy-128) ; Error altd ioe bit 2, (hl) ; Error altd ioe bit 2, (ix) ; Error altd ioe bit 2, (ix+127) ; Error altd ioe bit 2, (ix-128) ; Error altd ioe bit 2, (iy) ; Error altd ioe bit 2, (iy+127) ; Error altd ioe bit 2, (iy-128) ; Error altd ioe bit 3, (hl) ; Error altd ioe bit 3, (ix) ; Error altd ioe bit 3, (ix+127) ; Error altd ioe bit 3, (ix-128) ; Error altd ioe bit 3, (iy) ; Error altd ioe bit 3, (iy+127) ; Error altd ioe bit 3, (iy-128) ; Error altd ioe bit 4, (hl) ; Error altd ioe bit 4, (ix) ; Error altd ioe bit 4, (ix+127) ; Error altd ioe bit 4, (ix-128) ; Error altd ioe bit 4, (iy) ; Error altd ioe bit 4, (iy+127) ; Error altd ioe bit 4, (iy-128) ; Error altd ioe bit 5, (hl) ; Error altd ioe bit 5, (ix) ; Error altd ioe bit 5, (ix+127) ; Error altd ioe bit 5, (ix-128) ; Error altd ioe bit 5, (iy) ; Error altd ioe bit 5, (iy+127) ; Error altd ioe bit 5, (iy-128) ; Error altd ioe bit 6, (hl) ; Error altd ioe bit 6, (ix) ; Error altd ioe bit 6, (ix+127) ; Error altd ioe bit 6, (ix-128) ; Error altd ioe bit 6, (iy) ; Error altd ioe bit 6, (iy+127) ; Error altd ioe bit 6, (iy-128) ; Error altd ioe bit 7, (hl) ; Error altd ioe bit 7, (ix) ; Error altd ioe bit 7, (ix+127) ; Error altd ioe bit 7, (ix-128) ; Error altd ioe bit 7, (iy) ; Error altd ioe bit 7, (iy+127) ; Error altd ioe bit 7, (iy-128) ; Error altd ioe bit 8, (hl) ; Error altd ioe bit 8, (hl) ; Error altd ioe bit 8, (ix) ; Error altd ioe bit 8, (ix) ; Error altd ioe bit 8, (ix+127) ; Error altd ioe bit 8, (ix+127) ; Error altd ioe bit 8, (ix-128) ; Error altd ioe bit 8, (ix-128) ; Error altd ioe bit 8, (iy) ; Error altd ioe bit 8, (iy) ; Error altd ioe bit 8, (iy+127) ; Error altd ioe bit 8, (iy+127) ; Error altd ioe bit 8, (iy-128) ; Error altd ioe bit 8, (iy-128) ; Error altd ioe cp (hl) ; Error altd ioe cp (ix) ; Error altd ioe cp (ix+127) ; Error altd ioe cp (ix-128) ; Error altd ioe cp (iy) ; Error altd ioe cp (iy+127) ; Error altd ioe cp (iy-128) ; Error altd ioe cp a, (hl) ; Error altd ioe cp a, (ix) ; Error altd ioe cp a, (ix+127) ; Error altd ioe cp a, (ix-128) ; Error altd ioe cp a, (iy) ; Error altd ioe cp a, (iy+127) ; Error altd ioe cp a, (iy-128) ; Error altd ioe dec (hl) ; Error altd ioe dec (ix) ; Error altd ioe dec (ix+127) ; Error altd ioe dec (ix-128) ; Error altd ioe dec (iy) ; Error altd ioe dec (iy+127) ; Error altd ioe dec (iy-128) ; Error altd ioe inc (hl) ; Error altd ioe inc (ix) ; Error altd ioe inc (ix+127) ; Error altd ioe inc (ix-128) ; Error altd ioe inc (iy) ; Error altd ioe inc (iy+127) ; Error altd ioe inc (iy-128) ; Error altd ioe ld a, (-32768) ; Error altd ioe ld a, (32767) ; Error altd ioe ld a, (65535) ; Error altd ioe ld a, (bc) ; Error altd ioe ld a, (bc+) ; Error altd ioe ld a, (bc-) ; Error altd ioe ld a, (de) ; Error altd ioe ld a, (de+) ; Error altd ioe ld a, (de-) ; Error altd ioe ld a, (hl) ; Error altd ioe ld a, (hl+) ; Error altd ioe ld a, (hl-) ; Error altd ioe ld a, (hld) ; Error altd ioe ld a, (hli) ; Error altd ioe ld a, (ix) ; Error altd ioe ld a, (ix+127) ; Error altd ioe ld a, (ix-128) ; Error altd ioe ld a, (iy) ; Error altd ioe ld a, (iy+127) ; Error altd ioe ld a, (iy-128) ; Error altd ioe ld b, (hl) ; Error altd ioe ld b, (ix) ; Error altd ioe ld b, (ix+127) ; Error altd ioe ld b, (ix-128) ; Error altd ioe ld b, (iy) ; Error altd ioe ld b, (iy+127) ; Error altd ioe ld b, (iy-128) ; Error altd ioe ld bc, (-32768) ; Error altd ioe ld bc, (32767) ; Error altd ioe ld bc, (65535) ; Error altd ioe ld c, (hl) ; Error altd ioe ld c, (ix) ; Error altd ioe ld c, (ix+127) ; Error altd ioe ld c, (ix-128) ; Error altd ioe ld c, (iy) ; Error altd ioe ld c, (iy+127) ; Error altd ioe ld c, (iy-128) ; Error altd ioe ld d, (hl) ; Error altd ioe ld d, (ix) ; Error altd ioe ld d, (ix+127) ; Error altd ioe ld d, (ix-128) ; Error altd ioe ld d, (iy) ; Error altd ioe ld d, (iy+127) ; Error altd ioe ld d, (iy-128) ; Error altd ioe ld de, (-32768) ; Error altd ioe ld de, (32767) ; Error altd ioe ld de, (65535) ; Error altd ioe ld e, (hl) ; Error altd ioe ld e, (ix) ; Error altd ioe ld e, (ix+127) ; Error altd ioe ld e, (ix-128) ; Error altd ioe ld e, (iy) ; Error altd ioe ld e, (iy+127) ; Error altd ioe ld e, (iy-128) ; Error altd ioe ld h, (hl) ; Error altd ioe ld h, (ix) ; Error altd ioe ld h, (ix+127) ; Error altd ioe ld h, (ix-128) ; Error altd ioe ld h, (iy) ; Error altd ioe ld h, (iy+127) ; Error altd ioe ld h, (iy-128) ; Error altd ioe ld hl, (-32768) ; Error altd ioe ld hl, (32767) ; Error altd ioe ld hl, (65535) ; Error altd ioe ld hl, (hl) ; Error altd ioe ld hl, (hl+127) ; Error altd ioe ld hl, (hl-128) ; Error altd ioe ld hl, (ix) ; Error altd ioe ld hl, (ix+127) ; Error altd ioe ld hl, (ix-128) ; Error altd ioe ld hl, (iy) ; Error altd ioe ld hl, (iy+127) ; Error altd ioe ld hl, (iy-128) ; Error altd ioe ld l, (hl) ; Error altd ioe ld l, (ix) ; Error altd ioe ld l, (ix+127) ; Error altd ioe ld l, (ix-128) ; Error altd ioe ld l, (iy) ; Error altd ioe ld l, (iy+127) ; Error altd ioe ld l, (iy-128) ; Error altd ioe or (hl) ; Error altd ioe or (ix) ; Error altd ioe or (ix+127) ; Error altd ioe or (ix-128) ; Error altd ioe or (iy) ; Error altd ioe or (iy+127) ; Error altd ioe or (iy-128) ; Error altd ioe or a, (hl) ; Error altd ioe or a, (ix) ; Error altd ioe or a, (ix+127) ; Error altd ioe or a, (ix-128) ; Error altd ioe or a, (iy) ; Error altd ioe or a, (iy+127) ; Error altd ioe or a, (iy-128) ; Error altd ioe rl (hl) ; Error altd ioe rl (ix) ; Error altd ioe rl (ix+127) ; Error altd ioe rl (ix-128) ; Error altd ioe rl (iy) ; Error altd ioe rl (iy+127) ; Error altd ioe rl (iy-128) ; Error altd ioe rlc (hl) ; Error altd ioe rlc (ix) ; Error altd ioe rlc (ix+127) ; Error altd ioe rlc (ix-128) ; Error altd ioe rlc (iy) ; Error altd ioe rlc (iy+127) ; Error altd ioe rlc (iy-128) ; Error altd ioe rr (hl) ; Error altd ioe rr (ix) ; Error altd ioe rr (ix+127) ; Error altd ioe rr (ix-128) ; Error altd ioe rr (iy) ; Error altd ioe rr (iy+127) ; Error altd ioe rr (iy-128) ; Error altd ioe rrc (hl) ; Error altd ioe rrc (ix) ; Error altd ioe rrc (ix+127) ; Error altd ioe rrc (ix-128) ; Error altd ioe rrc (iy) ; Error altd ioe rrc (iy+127) ; Error altd ioe rrc (iy-128) ; Error altd ioe sbc (hl) ; Error altd ioe sbc (ix) ; Error altd ioe sbc (ix+127) ; Error altd ioe sbc (ix-128) ; Error altd ioe sbc (iy) ; Error altd ioe sbc (iy+127) ; Error altd ioe sbc (iy-128) ; Error altd ioe sbc a, (hl) ; Error altd ioe sbc a, (ix) ; Error altd ioe sbc a, (ix+127) ; Error altd ioe sbc a, (ix-128) ; Error altd ioe sbc a, (iy) ; Error altd ioe sbc a, (iy+127) ; Error altd ioe sbc a, (iy-128) ; Error altd ioe sla (hl) ; Error altd ioe sla (ix) ; Error altd ioe sla (ix+127) ; Error altd ioe sla (ix-128) ; Error altd ioe sla (iy) ; Error altd ioe sla (iy+127) ; Error altd ioe sla (iy-128) ; Error altd ioe sra (hl) ; Error altd ioe sra (ix) ; Error altd ioe sra (ix+127) ; Error altd ioe sra (ix-128) ; Error altd ioe sra (iy) ; Error altd ioe sra (iy+127) ; Error altd ioe sra (iy-128) ; Error altd ioe srl (hl) ; Error altd ioe srl (ix) ; Error altd ioe srl (ix+127) ; Error altd ioe srl (ix-128) ; Error altd ioe srl (iy) ; Error altd ioe srl (iy+127) ; Error altd ioe srl (iy-128) ; Error altd ioe sub (hl) ; Error altd ioe sub (ix) ; Error altd ioe sub (ix+127) ; Error altd ioe sub (ix-128) ; Error altd ioe sub (iy) ; Error altd ioe sub (iy+127) ; Error altd ioe sub (iy-128) ; Error altd ioe sub a, (hl) ; Error altd ioe sub a, (ix) ; Error altd ioe sub a, (ix+127) ; Error altd ioe sub a, (ix-128) ; Error altd ioe sub a, (iy) ; Error altd ioe sub a, (iy+127) ; Error altd ioe sub a, (iy-128) ; Error altd ioe xor (hl) ; Error altd ioe xor (ix) ; Error altd ioe xor (ix+127) ; Error altd ioe xor (ix-128) ; Error altd ioe xor (iy) ; Error altd ioe xor (iy+127) ; Error altd ioe xor (iy-128) ; Error altd ioe xor a, (hl) ; Error altd ioe xor a, (ix) ; Error altd ioe xor a, (ix+127) ; Error altd ioe xor a, (ix-128) ; Error altd ioe xor a, (iy) ; Error altd ioe xor a, (iy+127) ; Error altd ioe xor a, (iy-128) ; Error altd ioi adc (hl) ; Error altd ioi adc (ix) ; Error altd ioi adc (ix+127) ; Error altd ioi adc (ix-128) ; Error altd ioi adc (iy) ; Error altd ioi adc (iy+127) ; Error altd ioi adc (iy-128) ; Error altd ioi adc a, (hl) ; Error altd ioi adc a, (ix) ; Error altd ioi adc a, (ix+127) ; Error altd ioi adc a, (ix-128) ; Error altd ioi adc a, (iy) ; Error altd ioi adc a, (iy+127) ; Error altd ioi adc a, (iy-128) ; Error altd ioi add (hl) ; Error altd ioi add (ix) ; Error altd ioi add (ix+127) ; Error altd ioi add (ix-128) ; Error altd ioi add (iy) ; Error altd ioi add (iy+127) ; Error altd ioi add (iy-128) ; Error altd ioi add a, (hl) ; Error altd ioi add a, (ix) ; Error altd ioi add a, (ix+127) ; Error altd ioi add a, (ix-128) ; Error altd ioi add a, (iy) ; Error altd ioi add a, (iy+127) ; Error altd ioi add a, (iy-128) ; Error altd ioi and (hl) ; Error altd ioi and (ix) ; Error altd ioi and (ix+127) ; Error altd ioi and (ix-128) ; Error altd ioi and (iy) ; Error altd ioi and (iy+127) ; Error altd ioi and (iy-128) ; Error altd ioi and a, (hl) ; Error altd ioi and a, (ix) ; Error altd ioi and a, (ix+127) ; Error altd ioi and a, (ix-128) ; Error altd ioi and a, (iy) ; Error altd ioi and a, (iy+127) ; Error altd ioi and a, (iy-128) ; Error altd ioi bit -1, (hl) ; Error altd ioi bit -1, (hl) ; Error altd ioi bit -1, (ix) ; Error altd ioi bit -1, (ix) ; Error altd ioi bit -1, (ix+127) ; Error altd ioi bit -1, (ix+127) ; Error altd ioi bit -1, (ix-128) ; Error altd ioi bit -1, (ix-128) ; Error altd ioi bit -1, (iy) ; Error altd ioi bit -1, (iy) ; Error altd ioi bit -1, (iy+127) ; Error altd ioi bit -1, (iy+127) ; Error altd ioi bit -1, (iy-128) ; Error altd ioi bit -1, (iy-128) ; Error altd ioi bit 0, (hl) ; Error altd ioi bit 0, (ix) ; Error altd ioi bit 0, (ix+127) ; Error altd ioi bit 0, (ix-128) ; Error altd ioi bit 0, (iy) ; Error altd ioi bit 0, (iy+127) ; Error altd ioi bit 0, (iy-128) ; Error altd ioi bit 1, (hl) ; Error altd ioi bit 1, (ix) ; Error altd ioi bit 1, (ix+127) ; Error altd ioi bit 1, (ix-128) ; Error altd ioi bit 1, (iy) ; Error altd ioi bit 1, (iy+127) ; Error altd ioi bit 1, (iy-128) ; Error altd ioi bit 2, (hl) ; Error altd ioi bit 2, (ix) ; Error altd ioi bit 2, (ix+127) ; Error altd ioi bit 2, (ix-128) ; Error altd ioi bit 2, (iy) ; Error altd ioi bit 2, (iy+127) ; Error altd ioi bit 2, (iy-128) ; Error altd ioi bit 3, (hl) ; Error altd ioi bit 3, (ix) ; Error altd ioi bit 3, (ix+127) ; Error altd ioi bit 3, (ix-128) ; Error altd ioi bit 3, (iy) ; Error altd ioi bit 3, (iy+127) ; Error altd ioi bit 3, (iy-128) ; Error altd ioi bit 4, (hl) ; Error altd ioi bit 4, (ix) ; Error altd ioi bit 4, (ix+127) ; Error altd ioi bit 4, (ix-128) ; Error altd ioi bit 4, (iy) ; Error altd ioi bit 4, (iy+127) ; Error altd ioi bit 4, (iy-128) ; Error altd ioi bit 5, (hl) ; Error altd ioi bit 5, (ix) ; Error altd ioi bit 5, (ix+127) ; Error altd ioi bit 5, (ix-128) ; Error altd ioi bit 5, (iy) ; Error altd ioi bit 5, (iy+127) ; Error altd ioi bit 5, (iy-128) ; Error altd ioi bit 6, (hl) ; Error altd ioi bit 6, (ix) ; Error altd ioi bit 6, (ix+127) ; Error altd ioi bit 6, (ix-128) ; Error altd ioi bit 6, (iy) ; Error altd ioi bit 6, (iy+127) ; Error altd ioi bit 6, (iy-128) ; Error altd ioi bit 7, (hl) ; Error altd ioi bit 7, (ix) ; Error altd ioi bit 7, (ix+127) ; Error altd ioi bit 7, (ix-128) ; Error altd ioi bit 7, (iy) ; Error altd ioi bit 7, (iy+127) ; Error altd ioi bit 7, (iy-128) ; Error altd ioi bit 8, (hl) ; Error altd ioi bit 8, (hl) ; Error altd ioi bit 8, (ix) ; Error altd ioi bit 8, (ix) ; Error altd ioi bit 8, (ix+127) ; Error altd ioi bit 8, (ix+127) ; Error altd ioi bit 8, (ix-128) ; Error altd ioi bit 8, (ix-128) ; Error altd ioi bit 8, (iy) ; Error altd ioi bit 8, (iy) ; Error altd ioi bit 8, (iy+127) ; Error altd ioi bit 8, (iy+127) ; Error altd ioi bit 8, (iy-128) ; Error altd ioi bit 8, (iy-128) ; Error altd ioi cp (hl) ; Error altd ioi cp (ix) ; Error altd ioi cp (ix+127) ; Error altd ioi cp (ix-128) ; Error altd ioi cp (iy) ; Error altd ioi cp (iy+127) ; Error altd ioi cp (iy-128) ; Error altd ioi cp a, (hl) ; Error altd ioi cp a, (ix) ; Error altd ioi cp a, (ix+127) ; Error altd ioi cp a, (ix-128) ; Error altd ioi cp a, (iy) ; Error altd ioi cp a, (iy+127) ; Error altd ioi cp a, (iy-128) ; Error altd ioi dec (hl) ; Error altd ioi dec (ix) ; Error altd ioi dec (ix+127) ; Error altd ioi dec (ix-128) ; Error altd ioi dec (iy) ; Error altd ioi dec (iy+127) ; Error altd ioi dec (iy-128) ; Error altd ioi inc (hl) ; Error altd ioi inc (ix) ; Error altd ioi inc (ix+127) ; Error altd ioi inc (ix-128) ; Error altd ioi inc (iy) ; Error altd ioi inc (iy+127) ; Error altd ioi inc (iy-128) ; Error altd ioi ld a, (-32768) ; Error altd ioi ld a, (32767) ; Error altd ioi ld a, (65535) ; Error altd ioi ld a, (bc) ; Error altd ioi ld a, (bc+) ; Error altd ioi ld a, (bc-) ; Error altd ioi ld a, (de) ; Error altd ioi ld a, (de+) ; Error altd ioi ld a, (de-) ; Error altd ioi ld a, (hl) ; Error altd ioi ld a, (hl+) ; Error altd ioi ld a, (hl-) ; Error altd ioi ld a, (hld) ; Error altd ioi ld a, (hli) ; Error altd ioi ld a, (ix) ; Error altd ioi ld a, (ix+127) ; Error altd ioi ld a, (ix-128) ; Error altd ioi ld a, (iy) ; Error altd ioi ld a, (iy+127) ; Error altd ioi ld a, (iy-128) ; Error altd ioi ld b, (hl) ; Error altd ioi ld b, (ix) ; Error altd ioi ld b, (ix+127) ; Error altd ioi ld b, (ix-128) ; Error altd ioi ld b, (iy) ; Error altd ioi ld b, (iy+127) ; Error altd ioi ld b, (iy-128) ; Error altd ioi ld bc, (-32768) ; Error altd ioi ld bc, (32767) ; Error altd ioi ld bc, (65535) ; Error altd ioi ld c, (hl) ; Error altd ioi ld c, (ix) ; Error altd ioi ld c, (ix+127) ; Error altd ioi ld c, (ix-128) ; Error altd ioi ld c, (iy) ; Error altd ioi ld c, (iy+127) ; Error altd ioi ld c, (iy-128) ; Error altd ioi ld d, (hl) ; Error altd ioi ld d, (ix) ; Error altd ioi ld d, (ix+127) ; Error altd ioi ld d, (ix-128) ; Error altd ioi ld d, (iy) ; Error altd ioi ld d, (iy+127) ; Error altd ioi ld d, (iy-128) ; Error altd ioi ld de, (-32768) ; Error altd ioi ld de, (32767) ; Error altd ioi ld de, (65535) ; Error altd ioi ld e, (hl) ; Error altd ioi ld e, (ix) ; Error altd ioi ld e, (ix+127) ; Error altd ioi ld e, (ix-128) ; Error altd ioi ld e, (iy) ; Error altd ioi ld e, (iy+127) ; Error altd ioi ld e, (iy-128) ; Error altd ioi ld h, (hl) ; Error altd ioi ld h, (ix) ; Error altd ioi ld h, (ix+127) ; Error altd ioi ld h, (ix-128) ; Error altd ioi ld h, (iy) ; Error altd ioi ld h, (iy+127) ; Error altd ioi ld h, (iy-128) ; Error altd ioi ld hl, (-32768) ; Error altd ioi ld hl, (32767) ; Error altd ioi ld hl, (65535) ; Error altd ioi ld hl, (hl) ; Error altd ioi ld hl, (hl+127) ; Error altd ioi ld hl, (hl-128) ; Error altd ioi ld hl, (ix) ; Error altd ioi ld hl, (ix+127) ; Error altd ioi ld hl, (ix-128) ; Error altd ioi ld hl, (iy) ; Error altd ioi ld hl, (iy+127) ; Error altd ioi ld hl, (iy-128) ; Error altd ioi ld l, (hl) ; Error altd ioi ld l, (ix) ; Error altd ioi ld l, (ix+127) ; Error altd ioi ld l, (ix-128) ; Error altd ioi ld l, (iy) ; Error altd ioi ld l, (iy+127) ; Error altd ioi ld l, (iy-128) ; Error altd ioi or (hl) ; Error altd ioi or (ix) ; Error altd ioi or (ix+127) ; Error altd ioi or (ix-128) ; Error altd ioi or (iy) ; Error altd ioi or (iy+127) ; Error altd ioi or (iy-128) ; Error altd ioi or a, (hl) ; Error altd ioi or a, (ix) ; Error altd ioi or a, (ix+127) ; Error altd ioi or a, (ix-128) ; Error altd ioi or a, (iy) ; Error altd ioi or a, (iy+127) ; Error altd ioi or a, (iy-128) ; Error altd ioi rl (hl) ; Error altd ioi rl (ix) ; Error altd ioi rl (ix+127) ; Error altd ioi rl (ix-128) ; Error altd ioi rl (iy) ; Error altd ioi rl (iy+127) ; Error altd ioi rl (iy-128) ; Error altd ioi rlc (hl) ; Error altd ioi rlc (ix) ; Error altd ioi rlc (ix+127) ; Error altd ioi rlc (ix-128) ; Error altd ioi rlc (iy) ; Error altd ioi rlc (iy+127) ; Error altd ioi rlc (iy-128) ; Error altd ioi rr (hl) ; Error altd ioi rr (ix) ; Error altd ioi rr (ix+127) ; Error altd ioi rr (ix-128) ; Error altd ioi rr (iy) ; Error altd ioi rr (iy+127) ; Error altd ioi rr (iy-128) ; Error altd ioi rrc (hl) ; Error altd ioi rrc (ix) ; Error altd ioi rrc (ix+127) ; Error altd ioi rrc (ix-128) ; Error altd ioi rrc (iy) ; Error altd ioi rrc (iy+127) ; Error altd ioi rrc (iy-128) ; Error altd ioi sbc (hl) ; Error altd ioi sbc (ix) ; Error altd ioi sbc (ix+127) ; Error altd ioi sbc (ix-128) ; Error altd ioi sbc (iy) ; Error altd ioi sbc (iy+127) ; Error altd ioi sbc (iy-128) ; Error altd ioi sbc a, (hl) ; Error altd ioi sbc a, (ix) ; Error altd ioi sbc a, (ix+127) ; Error altd ioi sbc a, (ix-128) ; Error altd ioi sbc a, (iy) ; Error altd ioi sbc a, (iy+127) ; Error altd ioi sbc a, (iy-128) ; Error altd ioi sla (hl) ; Error altd ioi sla (ix) ; Error altd ioi sla (ix+127) ; Error altd ioi sla (ix-128) ; Error altd ioi sla (iy) ; Error altd ioi sla (iy+127) ; Error altd ioi sla (iy-128) ; Error altd ioi sra (hl) ; Error altd ioi sra (ix) ; Error altd ioi sra (ix+127) ; Error altd ioi sra (ix-128) ; Error altd ioi sra (iy) ; Error altd ioi sra (iy+127) ; Error altd ioi sra (iy-128) ; Error altd ioi srl (hl) ; Error altd ioi srl (ix) ; Error altd ioi srl (ix+127) ; Error altd ioi srl (ix-128) ; Error altd ioi srl (iy) ; Error altd ioi srl (iy+127) ; Error altd ioi srl (iy-128) ; Error altd ioi sub (hl) ; Error altd ioi sub (ix) ; Error altd ioi sub (ix+127) ; Error altd ioi sub (ix-128) ; Error altd ioi sub (iy) ; Error altd ioi sub (iy+127) ; Error altd ioi sub (iy-128) ; Error altd ioi sub a, (hl) ; Error altd ioi sub a, (ix) ; Error altd ioi sub a, (ix+127) ; Error altd ioi sub a, (ix-128) ; Error altd ioi sub a, (iy) ; Error altd ioi sub a, (iy+127) ; Error altd ioi sub a, (iy-128) ; Error altd ioi xor (hl) ; Error altd ioi xor (ix) ; Error altd ioi xor (ix+127) ; Error altd ioi xor (ix-128) ; Error altd ioi xor (iy) ; Error altd ioi xor (iy+127) ; Error altd ioi xor (iy-128) ; Error altd ioi xor a, (hl) ; Error altd ioi xor a, (ix) ; Error altd ioi xor a, (ix+127) ; Error altd ioi xor a, (ix-128) ; Error altd ioi xor a, (iy) ; Error altd ioi xor a, (iy+127) ; Error altd ioi xor a, (iy-128) ; Error altd ld a, (-32768) ; Error altd ld a, (32767) ; Error altd ld a, (65535) ; Error altd ld a, (bc) ; Error altd ld a, (bc+) ; Error altd ld a, (bc-) ; Error altd ld a, (de) ; Error altd ld a, (de+) ; Error altd ld a, (de-) ; Error altd ld a, (hl) ; Error altd ld a, (hl+) ; Error altd ld a, (hl-) ; Error altd ld a, (hld) ; Error altd ld a, (hli) ; Error altd ld a, (ix) ; Error altd ld a, (ix+127) ; Error altd ld a, (ix-128) ; Error altd ld a, (iy) ; Error altd ld a, (iy+127) ; Error altd ld a, (iy-128) ; Error altd ld a, -128 ; Error altd ld a, 127 ; Error altd ld a, 255 ; Error altd ld a, a ; Error altd ld a, b ; Error altd ld a, c ; Error altd ld a, d ; Error altd ld a, e ; Error altd ld a, eir ; Error altd ld a, h ; Error altd ld a, iir ; Error altd ld a, l ; Error altd ld a, xpc ; Error altd ld b, (hl) ; Error altd ld b, (ix) ; Error altd ld b, (ix+127) ; Error altd ld b, (ix-128) ; Error altd ld b, (iy) ; Error altd ld b, (iy+127) ; Error altd ld b, (iy-128) ; Error altd ld b, -128 ; Error altd ld b, 127 ; Error altd ld b, 255 ; Error altd ld b, a ; Error altd ld b, b ; Error altd ld b, c ; Error altd ld b, d ; Error altd ld b, e ; Error altd ld b, h ; Error altd ld b, l ; Error altd ld bc, (-32768) ; Error altd ld bc, (32767) ; Error altd ld bc, (65535) ; Error altd ld bc, -32768 ; Error altd ld bc, 32767 ; Error altd ld bc, 65535 ; Error altd ld bc, bc ; Error altd ld bc, de ; Error altd ld c, (hl) ; Error altd ld c, (ix) ; Error altd ld c, (ix+127) ; Error altd ld c, (ix-128) ; Error altd ld c, (iy) ; Error altd ld c, (iy+127) ; Error altd ld c, (iy-128) ; Error altd ld c, -128 ; Error altd ld c, 127 ; Error altd ld c, 255 ; Error altd ld c, a ; Error altd ld c, b ; Error altd ld c, c ; Error altd ld c, d ; Error altd ld c, e ; Error altd ld c, h ; Error altd ld c, l ; Error altd ld d, (hl) ; Error altd ld d, (ix) ; Error altd ld d, (ix+127) ; Error altd ld d, (ix-128) ; Error altd ld d, (iy) ; Error altd ld d, (iy+127) ; Error altd ld d, (iy-128) ; Error altd ld d, -128 ; Error altd ld d, 127 ; Error altd ld d, 255 ; Error altd ld d, a ; Error altd ld d, b ; Error altd ld d, c ; Error altd ld d, d ; Error altd ld d, e ; Error altd ld d, h ; Error altd ld d, l ; Error altd ld de, (-32768) ; Error altd ld de, (32767) ; Error altd ld de, (65535) ; Error altd ld de, -32768 ; Error altd ld de, 32767 ; Error altd ld de, 65535 ; Error altd ld de, bc ; Error altd ld de, de ; Error altd ld e, (hl) ; Error altd ld e, (ix) ; Error altd ld e, (ix+127) ; Error altd ld e, (ix-128) ; Error altd ld e, (iy) ; Error altd ld e, (iy+127) ; Error altd ld e, (iy-128) ; Error altd ld e, -128 ; Error altd ld e, 127 ; Error altd ld e, 255 ; Error altd ld e, a ; Error altd ld e, b ; Error altd ld e, c ; Error altd ld e, d ; Error altd ld e, e ; Error altd ld e, h ; Error altd ld e, l ; Error altd ld h, (hl) ; Error altd ld h, (ix) ; Error altd ld h, (ix+127) ; Error altd ld h, (ix-128) ; Error altd ld h, (iy) ; Error altd ld h, (iy+127) ; Error altd ld h, (iy-128) ; Error altd ld h, -128 ; Error altd ld h, 127 ; Error altd ld h, 255 ; Error altd ld h, a ; Error altd ld h, b ; Error altd ld h, c ; Error altd ld h, d ; Error altd ld h, e ; Error altd ld h, h ; Error altd ld h, l ; Error altd ld hl, (-32768) ; Error altd ld hl, (32767) ; Error altd ld hl, (65535) ; Error altd ld hl, (hl) ; Error altd ld hl, (hl+127) ; Error altd ld hl, (hl-128) ; Error altd ld hl, (ix) ; Error altd ld hl, (ix+127) ; Error altd ld hl, (ix-128) ; Error altd ld hl, (iy) ; Error altd ld hl, (iy+127) ; Error altd ld hl, (iy-128) ; Error altd ld hl, (sp) ; Error altd ld hl, (sp+0) ; Error altd ld hl, (sp+255) ; Error altd ld hl, -32768 ; Error altd ld hl, 32767 ; Error altd ld hl, 65535 ; Error altd ld hl, bc ; Error altd ld hl, de ; Error altd ld hl, ix ; Error altd ld hl, iy ; Error altd ld l, (hl) ; Error altd ld l, (ix) ; Error altd ld l, (ix+127) ; Error altd ld l, (ix-128) ; Error altd ld l, (iy) ; Error altd ld l, (iy+127) ; Error altd ld l, (iy-128) ; Error altd ld l, -128 ; Error altd ld l, 127 ; Error altd ld l, 255 ; Error altd ld l, a ; Error altd ld l, b ; Error altd ld l, c ; Error altd ld l, d ; Error altd ld l, e ; Error altd ld l, h ; Error altd ld l, l ; Error altd neg ; Error altd neg a ; Error altd or (hl) ; Error altd or (ix) ; Error altd or (ix+127) ; Error altd or (ix-128) ; Error altd or (iy) ; Error altd or (iy+127) ; Error altd or (iy-128) ; Error altd or -128 ; Error altd or 127 ; Error altd or 255 ; Error altd or a ; Error altd or a, (hl) ; Error altd or a, (ix) ; Error altd or a, (ix+127) ; Error altd or a, (ix-128) ; Error altd or a, (iy) ; Error altd or a, (iy+127) ; Error altd or a, (iy-128) ; Error altd or a, -128 ; Error altd or a, 127 ; Error altd or a, 255 ; Error altd or a, a ; Error altd or a, b ; Error altd or a, c ; Error altd or a, d ; Error altd or a, e ; Error altd or a, h ; Error altd or a, l ; Error altd or b ; Error altd or c ; Error altd or d ; Error altd or e ; Error altd or h ; Error altd or hl, de ; Error altd or ix, de ; Error altd or iy, de ; Error altd or l ; Error altd pop af ; Error altd pop b ; Error altd pop bc ; Error altd pop d ; Error altd pop de ; Error altd pop h ; Error altd pop hl ; Error altd res -1, a ; Error altd res -1, a ; Error altd res -1, b ; Error altd res -1, b ; Error altd res -1, c ; Error altd res -1, c ; Error altd res -1, d ; Error altd res -1, d ; Error altd res -1, e ; Error altd res -1, e ; Error altd res -1, h ; Error altd res -1, h ; Error altd res -1, l ; Error altd res -1, l ; Error altd res 0, a ; Error altd res 0, b ; Error altd res 0, c ; Error altd res 0, d ; Error altd res 0, e ; Error altd res 0, h ; Error altd res 0, l ; Error altd res 1, a ; Error altd res 1, b ; Error altd res 1, c ; Error altd res 1, d ; Error altd res 1, e ; Error altd res 1, h ; Error altd res 1, l ; Error altd res 2, a ; Error altd res 2, b ; Error altd res 2, c ; Error altd res 2, d ; Error altd res 2, e ; Error altd res 2, h ; Error altd res 2, l ; Error altd res 3, a ; Error altd res 3, b ; Error altd res 3, c ; Error altd res 3, d ; Error altd res 3, e ; Error altd res 3, h ; Error altd res 3, l ; Error altd res 4, a ; Error altd res 4, b ; Error altd res 4, c ; Error altd res 4, d ; Error altd res 4, e ; Error altd res 4, h ; Error altd res 4, l ; Error altd res 5, a ; Error altd res 5, b ; Error altd res 5, c ; Error altd res 5, d ; Error altd res 5, e ; Error altd res 5, h ; Error altd res 5, l ; Error altd res 6, a ; Error altd res 6, b ; Error altd res 6, c ; Error altd res 6, d ; Error altd res 6, e ; Error altd res 6, h ; Error altd res 6, l ; Error altd res 7, a ; Error altd res 7, b ; Error altd res 7, c ; Error altd res 7, d ; Error altd res 7, e ; Error altd res 7, h ; Error altd res 7, l ; Error altd res 8, a ; Error altd res 8, a ; Error altd res 8, b ; Error altd res 8, b ; Error altd res 8, c ; Error altd res 8, c ; Error altd res 8, d ; Error altd res 8, d ; Error altd res 8, e ; Error altd res 8, e ; Error altd res 8, h ; Error altd res 8, h ; Error altd res 8, l ; Error altd res 8, l ; Error altd rl (hl) ; Error altd rl (ix) ; Error altd rl (ix+127) ; Error altd rl (ix-128) ; Error altd rl (iy) ; Error altd rl (iy+127) ; Error altd rl (iy-128) ; Error altd rl a ; Error altd rl b ; Error altd rl c ; Error altd rl d ; Error altd rl de ; Error altd rl e ; Error altd rl h ; Error altd rl l ; Error altd rla ; Error altd rlc (hl) ; Error altd rlc (ix) ; Error altd rlc (ix+127) ; Error altd rlc (ix-128) ; Error altd rlc (iy) ; Error altd rlc (iy+127) ; Error altd rlc (iy-128) ; Error altd rlc a ; Error altd rlc b ; Error altd rlc c ; Error altd rlc d ; Error altd rlc e ; Error altd rlc h ; Error altd rlc l ; Error altd rlca ; Error altd rr (hl) ; Error altd rr (ix) ; Error altd rr (ix+127) ; Error altd rr (ix-128) ; Error altd rr (iy) ; Error altd rr (iy+127) ; Error altd rr (iy-128) ; Error altd rr a ; Error altd rr b ; Error altd rr c ; Error altd rr d ; Error altd rr de ; Error altd rr e ; Error altd rr h ; Error altd rr hl ; Error altd rr ix ; Error altd rr iy ; Error altd rr l ; Error altd rra ; Error altd rrc (hl) ; Error altd rrc (ix) ; Error altd rrc (ix+127) ; Error altd rrc (ix-128) ; Error altd rrc (iy) ; Error altd rrc (iy+127) ; Error altd rrc (iy-128) ; Error altd rrc a ; Error altd rrc b ; Error altd rrc c ; Error altd rrc d ; Error altd rrc e ; Error altd rrc h ; Error altd rrc l ; Error altd rrca ; Error altd sbc (hl) ; Error altd sbc (ix) ; Error altd sbc (ix+127) ; Error altd sbc (ix-128) ; Error altd sbc (iy) ; Error altd sbc (iy+127) ; Error altd sbc (iy-128) ; Error altd sbc -128 ; Error altd sbc 127 ; Error altd sbc 255 ; Error altd sbc a ; Error altd sbc a, (hl) ; Error altd sbc a, (ix) ; Error altd sbc a, (ix+127) ; Error altd sbc a, (ix-128) ; Error altd sbc a, (iy) ; Error altd sbc a, (iy+127) ; Error altd sbc a, (iy-128) ; Error altd sbc a, -128 ; Error altd sbc a, 127 ; Error altd sbc a, 255 ; Error altd sbc a, a ; Error altd sbc a, b ; Error altd sbc a, c ; Error altd sbc a, d ; Error altd sbc a, e ; Error altd sbc a, h ; Error altd sbc a, l ; Error altd sbc b ; Error altd sbc c ; Error altd sbc d ; Error altd sbc e ; Error altd sbc h ; Error altd sbc hl, bc ; Error altd sbc hl, de ; Error altd sbc hl, hl ; Error altd sbc hl, sp ; Error altd sbc l ; Error altd scf ; Error altd set -1, a ; Error altd set -1, a ; Error altd set -1, b ; Error altd set -1, b ; Error altd set -1, c ; Error altd set -1, c ; Error altd set -1, d ; Error altd set -1, d ; Error altd set -1, e ; Error altd set -1, e ; Error altd set -1, h ; Error altd set -1, h ; Error altd set -1, l ; Error altd set -1, l ; Error altd set 0, a ; Error altd set 0, b ; Error altd set 0, c ; Error altd set 0, d ; Error altd set 0, e ; Error altd set 0, h ; Error altd set 0, l ; Error altd set 1, a ; Error altd set 1, b ; Error altd set 1, c ; Error altd set 1, d ; Error altd set 1, e ; Error altd set 1, h ; Error altd set 1, l ; Error altd set 2, a ; Error altd set 2, b ; Error altd set 2, c ; Error altd set 2, d ; Error altd set 2, e ; Error altd set 2, h ; Error altd set 2, l ; Error altd set 3, a ; Error altd set 3, b ; Error altd set 3, c ; Error altd set 3, d ; Error altd set 3, e ; Error altd set 3, h ; Error altd set 3, l ; Error altd set 4, a ; Error altd set 4, b ; Error altd set 4, c ; Error altd set 4, d ; Error altd set 4, e ; Error altd set 4, h ; Error altd set 4, l ; Error altd set 5, a ; Error altd set 5, b ; Error altd set 5, c ; Error altd set 5, d ; Error altd set 5, e ; Error altd set 5, h ; Error altd set 5, l ; Error altd set 6, a ; Error altd set 6, b ; Error altd set 6, c ; Error altd set 6, d ; Error altd set 6, e ; Error altd set 6, h ; Error altd set 6, l ; Error altd set 7, a ; Error altd set 7, b ; Error altd set 7, c ; Error altd set 7, d ; Error altd set 7, e ; Error altd set 7, h ; Error altd set 7, l ; Error altd set 8, a ; Error altd set 8, a ; Error altd set 8, b ; Error altd set 8, b ; Error altd set 8, c ; Error altd set 8, c ; Error altd set 8, d ; Error altd set 8, d ; Error altd set 8, e ; Error altd set 8, e ; Error altd set 8, h ; Error altd set 8, h ; Error altd set 8, l ; Error altd set 8, l ; Error altd sla (hl) ; Error altd sla (ix) ; Error altd sla (ix+127) ; Error altd sla (ix-128) ; Error altd sla (iy) ; Error altd sla (iy+127) ; Error altd sla (iy-128) ; Error altd sla a ; Error altd sla b ; Error altd sla c ; Error altd sla d ; Error altd sla e ; Error altd sla h ; Error altd sla l ; Error altd sra (hl) ; Error altd sra (ix) ; Error altd sra (ix+127) ; Error altd sra (ix-128) ; Error altd sra (iy) ; Error altd sra (iy+127) ; Error altd sra (iy-128) ; Error altd sra a ; Error altd sra b ; Error altd sra c ; Error altd sra d ; Error altd sra e ; Error altd sra h ; Error altd sra l ; Error altd srl (hl) ; Error altd srl (ix) ; Error altd srl (ix+127) ; Error altd srl (ix-128) ; Error altd srl (iy) ; Error altd srl (iy+127) ; Error altd srl (iy-128) ; Error altd srl a ; Error altd srl b ; Error altd srl c ; Error altd srl d ; Error altd srl e ; Error altd srl h ; Error altd srl l ; Error altd sub (hl) ; Error altd sub (ix) ; Error altd sub (ix+127) ; Error altd sub (ix-128) ; Error altd sub (iy) ; Error altd sub (iy+127) ; Error altd sub (iy-128) ; Error altd sub -128 ; Error altd sub 127 ; Error altd sub 255 ; Error altd sub a ; Error altd sub a, (hl) ; Error altd sub a, (ix) ; Error altd sub a, (ix+127) ; Error altd sub a, (ix-128) ; Error altd sub a, (iy) ; Error altd sub a, (iy+127) ; Error altd sub a, (iy-128) ; Error altd sub a, -128 ; Error altd sub a, 127 ; Error altd sub a, 255 ; Error altd sub a, a ; Error altd sub a, b ; Error altd sub a, c ; Error altd sub a, d ; Error altd sub a, e ; Error altd sub a, h ; Error altd sub a, l ; Error altd sub b ; Error altd sub c ; Error altd sub d ; Error altd sub e ; Error altd sub h ; Error altd sub l ; Error altd sub m ; Error altd xor (hl) ; Error altd xor (ix) ; Error altd xor (ix+127) ; Error altd xor (ix-128) ; Error altd xor (iy) ; Error altd xor (iy+127) ; Error altd xor (iy-128) ; Error altd xor -128 ; Error altd xor 127 ; Error altd xor 255 ; Error altd xor a ; Error altd xor a, (hl) ; Error altd xor a, (ix) ; Error altd xor a, (ix+127) ; Error altd xor a, (ix-128) ; Error altd xor a, (iy) ; Error altd xor a, (iy+127) ; Error altd xor a, (iy-128) ; Error altd xor a, -128 ; Error altd xor a, 127 ; Error altd xor a, 255 ; Error altd xor a, a ; Error altd xor a, b ; Error altd xor a, c ; Error altd xor a, d ; Error altd xor a, e ; Error altd xor a, h ; Error altd xor a, l ; Error altd xor b ; Error altd xor c ; Error altd xor d ; Error altd xor e ; Error altd xor h ; Error altd xor l ; Error and a', (hl) ; Error and a', (ix) ; Error and a', (ix+127) ; Error and a', (ix-128) ; Error and a', (iy) ; Error and a', (iy+127) ; Error and a', (iy-128) ; Error and a', -128 ; Error and a', 127 ; Error and a', 255 ; Error and a', a ; Error and a', b ; Error and a', c ; Error and a', d ; Error and a', e ; Error and a', h ; Error and a', l ; Error and hl', de ; Error and hl, de ; Error and ix, de ; Error and iy, de ; Error and.a ix, de ; Error and.a iy, de ; Error bit -1, (hl) ; Error bit -1, (hl) ; Error bit -1, (ix) ; Error bit -1, (ix) ; Error bit -1, (ix+127) ; Error bit -1, (ix+127) ; Error bit -1, (ix-128) ; Error bit -1, (ix-128) ; Error bit -1, (iy) ; Error bit -1, (iy) ; Error bit -1, (iy+127) ; Error bit -1, (iy+127) ; Error bit -1, (iy-128) ; Error bit -1, (iy-128) ; Error bit -1, a ; Error bit -1, a ; Error bit -1, b ; Error bit -1, b ; Error bit -1, c ; Error bit -1, c ; Error bit -1, d ; Error bit -1, d ; Error bit -1, e ; Error bit -1, e ; Error bit -1, h ; Error bit -1, h ; Error bit -1, l ; Error bit -1, l ; Error bit 8, (hl) ; Error bit 8, (hl) ; Error bit 8, (ix) ; Error bit 8, (ix) ; Error bit 8, (ix+127) ; Error bit 8, (ix+127) ; Error bit 8, (ix-128) ; Error bit 8, (ix-128) ; Error bit 8, (iy) ; Error bit 8, (iy) ; Error bit 8, (iy+127) ; Error bit 8, (iy+127) ; Error bit 8, (iy-128) ; Error bit 8, (iy-128) ; Error bit 8, a ; Error bit 8, a ; Error bit 8, b ; Error bit 8, b ; Error bit 8, c ; Error bit 8, c ; Error bit 8, d ; Error bit 8, d ; Error bit 8, e ; Error bit 8, e ; Error bit 8, h ; Error bit 8, h ; Error bit 8, l ; Error bit 8, l ; Error bit.a -1, (hl) ; Error bit.a -1, (hl) ; Error bit.a -1, (ix) ; Error bit.a -1, (ix) ; Error bit.a -1, (ix+127) ; Error bit.a -1, (ix+127) ; Error bit.a -1, (ix-128) ; Error bit.a -1, (ix-128) ; Error bit.a -1, (iy) ; Error bit.a -1, (iy) ; Error bit.a -1, (iy+127) ; Error bit.a -1, (iy+127) ; Error bit.a -1, (iy-128) ; Error bit.a -1, (iy-128) ; Error bit.a -1, a ; Error bit.a -1, a ; Error bit.a -1, b ; Error bit.a -1, b ; Error bit.a -1, c ; Error bit.a -1, c ; Error bit.a -1, d ; Error bit.a -1, d ; Error bit.a -1, e ; Error bit.a -1, e ; Error bit.a -1, h ; Error bit.a -1, h ; Error bit.a -1, l ; Error bit.a -1, l ; Error bit.a 8, (hl) ; Error bit.a 8, (hl) ; Error bit.a 8, (ix) ; Error bit.a 8, (ix) ; Error bit.a 8, (ix+127) ; Error bit.a 8, (ix+127) ; Error bit.a 8, (ix-128) ; Error bit.a 8, (ix-128) ; Error bit.a 8, (iy) ; Error bit.a 8, (iy) ; Error bit.a 8, (iy+127) ; Error bit.a 8, (iy+127) ; Error bit.a 8, (iy-128) ; Error bit.a 8, (iy-128) ; Error bit.a 8, a ; Error bit.a 8, a ; Error bit.a 8, b ; Error bit.a 8, b ; Error bit.a 8, c ; Error bit.a 8, c ; Error bit.a 8, d ; Error bit.a 8, d ; Error bit.a 8, e ; Error bit.a 8, e ; Error bit.a 8, h ; Error bit.a 8, h ; Error bit.a 8, l ; Error bit.a 8, l ; Error bool hl ; Error bool hl' ; Error bool ix ; Error bool iy ; Error brlc de,b ; Error bsla de,b ; Error bsra de,b ; Error bsrf de,b ; Error bsrl de,b ; Error call lo, -32768 ; Error call lo, 32767 ; Error call lo, 65535 ; Error call lz, -32768 ; Error call lz, 32767 ; Error call lz, 65535 ; Error ccf' ; Error clo -32768 ; Error clo 32767 ; Error clo 65535 ; Error clz -32768 ; Error clz 32767 ; Error clz 65535 ; Error cpl a' ; Error dec a' ; Error dec b' ; Error dec bc' ; Error dec c' ; Error dec d' ; Error dec de' ; Error dec e' ; Error dec h' ; Error dec hl' ; Error dec l' ; Error djnz b', ASMPC ; Error ex (sp), hl' ; Error ex de', hl ; Error ex de', hl' ; Error ex de, hl' ; Error idet ; Error im -1 ; Error im -1 ; Error im 3 ; Error im 3 ; Error in0 (-128) ; Error in0 (127) ; Error in0 (255) ; Error in0 a, (-128) ; Error in0 a, (127) ; Error in0 a, (255) ; Error in0 b, (-128) ; Error in0 b, (127) ; Error in0 b, (255) ; Error in0 c, (-128) ; Error in0 c, (127) ; Error in0 c, (255) ; Error in0 d, (-128) ; Error in0 d, (127) ; Error in0 d, (255) ; Error in0 e, (-128) ; Error in0 e, (127) ; Error in0 e, (255) ; Error in0 f, (-128) ; Error in0 f, (127) ; Error in0 f, (255) ; Error in0 h, (-128) ; Error in0 h, (127) ; Error in0 h, (255) ; Error in0 l, (-128) ; Error in0 l, (127) ; Error in0 l, (255) ; Error inc a' ; Error inc b' ; Error inc bc' ; Error inc c' ; Error inc d' ; Error inc de' ; Error inc e' ; Error inc h' ; Error inc hl' ; Error inc l' ; Error ioe adc (hl) ; Error ioe adc (ix) ; Error ioe adc (ix+127) ; Error ioe adc (ix-128) ; Error ioe adc (iy) ; Error ioe adc (iy+127) ; Error ioe adc (iy-128) ; Error ioe adc a', (hl) ; Error ioe adc a', (ix) ; Error ioe adc a', (ix+127) ; Error ioe adc a', (ix-128) ; Error ioe adc a', (iy) ; Error ioe adc a', (iy+127) ; Error ioe adc a', (iy-128) ; Error ioe adc a, (hl) ; Error ioe adc a, (ix) ; Error ioe adc a, (ix+127) ; Error ioe adc a, (ix-128) ; Error ioe adc a, (iy) ; Error ioe adc a, (iy+127) ; Error ioe adc a, (iy-128) ; Error ioe add (hl) ; Error ioe add (ix) ; Error ioe add (ix+127) ; Error ioe add (ix-128) ; Error ioe add (iy) ; Error ioe add (iy+127) ; Error ioe add (iy-128) ; Error ioe add a', (hl) ; Error ioe add a', (ix) ; Error ioe add a', (ix+127) ; Error ioe add a', (ix-128) ; Error ioe add a', (iy) ; Error ioe add a', (iy+127) ; Error ioe add a', (iy-128) ; Error ioe add a, (hl) ; Error ioe add a, (ix) ; Error ioe add a, (ix+127) ; Error ioe add a, (ix-128) ; Error ioe add a, (iy) ; Error ioe add a, (iy+127) ; Error ioe add a, (iy-128) ; Error ioe altd adc (hl) ; Error ioe altd adc (ix) ; Error ioe altd adc (ix+127) ; Error ioe altd adc (ix-128) ; Error ioe altd adc (iy) ; Error ioe altd adc (iy+127) ; Error ioe altd adc (iy-128) ; Error ioe altd adc a, (hl) ; Error ioe altd adc a, (ix) ; Error ioe altd adc a, (ix+127) ; Error ioe altd adc a, (ix-128) ; Error ioe altd adc a, (iy) ; Error ioe altd adc a, (iy+127) ; Error ioe altd adc a, (iy-128) ; Error ioe altd add (hl) ; Error ioe altd add (ix) ; Error ioe altd add (ix+127) ; Error ioe altd add (ix-128) ; Error ioe altd add (iy) ; Error ioe altd add (iy+127) ; Error ioe altd add (iy-128) ; Error ioe altd add a, (hl) ; Error ioe altd add a, (ix) ; Error ioe altd add a, (ix+127) ; Error ioe altd add a, (ix-128) ; Error ioe altd add a, (iy) ; Error ioe altd add a, (iy+127) ; Error ioe altd add a, (iy-128) ; Error ioe altd and (hl) ; Error ioe altd and (ix) ; Error ioe altd and (ix+127) ; Error ioe altd and (ix-128) ; Error ioe altd and (iy) ; Error ioe altd and (iy+127) ; Error ioe altd and (iy-128) ; Error ioe altd and a, (hl) ; Error ioe altd and a, (ix) ; Error ioe altd and a, (ix+127) ; Error ioe altd and a, (ix-128) ; Error ioe altd and a, (iy) ; Error ioe altd and a, (iy+127) ; Error ioe altd and a, (iy-128) ; Error ioe altd bit -1, (hl) ; Error ioe altd bit -1, (hl) ; Error ioe altd bit -1, (ix) ; Error ioe altd bit -1, (ix) ; Error ioe altd bit -1, (ix+127) ; Error ioe altd bit -1, (ix+127) ; Error ioe altd bit -1, (ix-128) ; Error ioe altd bit -1, (ix-128) ; Error ioe altd bit -1, (iy) ; Error ioe altd bit -1, (iy) ; Error ioe altd bit -1, (iy+127) ; Error ioe altd bit -1, (iy+127) ; Error ioe altd bit -1, (iy-128) ; Error ioe altd bit -1, (iy-128) ; Error ioe altd bit 0, (hl) ; Error ioe altd bit 0, (ix) ; Error ioe altd bit 0, (ix+127) ; Error ioe altd bit 0, (ix-128) ; Error ioe altd bit 0, (iy) ; Error ioe altd bit 0, (iy+127) ; Error ioe altd bit 0, (iy-128) ; Error ioe altd bit 1, (hl) ; Error ioe altd bit 1, (ix) ; Error ioe altd bit 1, (ix+127) ; Error ioe altd bit 1, (ix-128) ; Error ioe altd bit 1, (iy) ; Error ioe altd bit 1, (iy+127) ; Error ioe altd bit 1, (iy-128) ; Error ioe altd bit 2, (hl) ; Error ioe altd bit 2, (ix) ; Error ioe altd bit 2, (ix+127) ; Error ioe altd bit 2, (ix-128) ; Error ioe altd bit 2, (iy) ; Error ioe altd bit 2, (iy+127) ; Error ioe altd bit 2, (iy-128) ; Error ioe altd bit 3, (hl) ; Error ioe altd bit 3, (ix) ; Error ioe altd bit 3, (ix+127) ; Error ioe altd bit 3, (ix-128) ; Error ioe altd bit 3, (iy) ; Error ioe altd bit 3, (iy+127) ; Error ioe altd bit 3, (iy-128) ; Error ioe altd bit 4, (hl) ; Error ioe altd bit 4, (ix) ; Error ioe altd bit 4, (ix+127) ; Error ioe altd bit 4, (ix-128) ; Error ioe altd bit 4, (iy) ; Error ioe altd bit 4, (iy+127) ; Error ioe altd bit 4, (iy-128) ; Error ioe altd bit 5, (hl) ; Error ioe altd bit 5, (ix) ; Error ioe altd bit 5, (ix+127) ; Error ioe altd bit 5, (ix-128) ; Error ioe altd bit 5, (iy) ; Error ioe altd bit 5, (iy+127) ; Error ioe altd bit 5, (iy-128) ; Error ioe altd bit 6, (hl) ; Error ioe altd bit 6, (ix) ; Error ioe altd bit 6, (ix+127) ; Error ioe altd bit 6, (ix-128) ; Error ioe altd bit 6, (iy) ; Error ioe altd bit 6, (iy+127) ; Error ioe altd bit 6, (iy-128) ; Error ioe altd bit 7, (hl) ; Error ioe altd bit 7, (ix) ; Error ioe altd bit 7, (ix+127) ; Error ioe altd bit 7, (ix-128) ; Error ioe altd bit 7, (iy) ; Error ioe altd bit 7, (iy+127) ; Error ioe altd bit 7, (iy-128) ; Error ioe altd bit 8, (hl) ; Error ioe altd bit 8, (hl) ; Error ioe altd bit 8, (ix) ; Error ioe altd bit 8, (ix) ; Error ioe altd bit 8, (ix+127) ; Error ioe altd bit 8, (ix+127) ; Error ioe altd bit 8, (ix-128) ; Error ioe altd bit 8, (ix-128) ; Error ioe altd bit 8, (iy) ; Error ioe altd bit 8, (iy) ; Error ioe altd bit 8, (iy+127) ; Error ioe altd bit 8, (iy+127) ; Error ioe altd bit 8, (iy-128) ; Error ioe altd bit 8, (iy-128) ; Error ioe altd cp (hl) ; Error ioe altd cp (ix) ; Error ioe altd cp (ix+127) ; Error ioe altd cp (ix-128) ; Error ioe altd cp (iy) ; Error ioe altd cp (iy+127) ; Error ioe altd cp (iy-128) ; Error ioe altd cp a, (hl) ; Error ioe altd cp a, (ix) ; Error ioe altd cp a, (ix+127) ; Error ioe altd cp a, (ix-128) ; Error ioe altd cp a, (iy) ; Error ioe altd cp a, (iy+127) ; Error ioe altd cp a, (iy-128) ; Error ioe altd dec (hl) ; Error ioe altd dec (ix) ; Error ioe altd dec (ix+127) ; Error ioe altd dec (ix-128) ; Error ioe altd dec (iy) ; Error ioe altd dec (iy+127) ; Error ioe altd dec (iy-128) ; Error ioe altd inc (hl) ; Error ioe altd inc (ix) ; Error ioe altd inc (ix+127) ; Error ioe altd inc (ix-128) ; Error ioe altd inc (iy) ; Error ioe altd inc (iy+127) ; Error ioe altd inc (iy-128) ; Error ioe altd ld a, (-32768) ; Error ioe altd ld a, (32767) ; Error ioe altd ld a, (65535) ; Error ioe altd ld a, (bc) ; Error ioe altd ld a, (bc+) ; Error ioe altd ld a, (bc-) ; Error ioe altd ld a, (de) ; Error ioe altd ld a, (de+) ; Error ioe altd ld a, (de-) ; Error ioe altd ld a, (hl) ; Error ioe altd ld a, (hl+) ; Error ioe altd ld a, (hl-) ; Error ioe altd ld a, (hld) ; Error ioe altd ld a, (hli) ; Error ioe altd ld a, (ix) ; Error ioe altd ld a, (ix+127) ; Error ioe altd ld a, (ix-128) ; Error ioe altd ld a, (iy) ; Error ioe altd ld a, (iy+127) ; Error ioe altd ld a, (iy-128) ; Error ioe altd ld b, (hl) ; Error ioe altd ld b, (ix) ; Error ioe altd ld b, (ix+127) ; Error ioe altd ld b, (ix-128) ; Error ioe altd ld b, (iy) ; Error ioe altd ld b, (iy+127) ; Error ioe altd ld b, (iy-128) ; Error ioe altd ld bc, (-32768) ; Error ioe altd ld bc, (32767) ; Error ioe altd ld bc, (65535) ; Error ioe altd ld c, (hl) ; Error ioe altd ld c, (ix) ; Error ioe altd ld c, (ix+127) ; Error ioe altd ld c, (ix-128) ; Error ioe altd ld c, (iy) ; Error ioe altd ld c, (iy+127) ; Error ioe altd ld c, (iy-128) ; Error ioe altd ld d, (hl) ; Error ioe altd ld d, (ix) ; Error ioe altd ld d, (ix+127) ; Error ioe altd ld d, (ix-128) ; Error ioe altd ld d, (iy) ; Error ioe altd ld d, (iy+127) ; Error ioe altd ld d, (iy-128) ; Error ioe altd ld de, (-32768) ; Error ioe altd ld de, (32767) ; Error ioe altd ld de, (65535) ; Error ioe altd ld e, (hl) ; Error ioe altd ld e, (ix) ; Error ioe altd ld e, (ix+127) ; Error ioe altd ld e, (ix-128) ; Error ioe altd ld e, (iy) ; Error ioe altd ld e, (iy+127) ; Error ioe altd ld e, (iy-128) ; Error ioe altd ld h, (hl) ; Error ioe altd ld h, (ix) ; Error ioe altd ld h, (ix+127) ; Error ioe altd ld h, (ix-128) ; Error ioe altd ld h, (iy) ; Error ioe altd ld h, (iy+127) ; Error ioe altd ld h, (iy-128) ; Error ioe altd ld hl, (-32768) ; Error ioe altd ld hl, (32767) ; Error ioe altd ld hl, (65535) ; Error ioe altd ld hl, (hl) ; Error ioe altd ld hl, (hl+127) ; Error ioe altd ld hl, (hl-128) ; Error ioe altd ld hl, (ix) ; Error ioe altd ld hl, (ix+127) ; Error ioe altd ld hl, (ix-128) ; Error ioe altd ld hl, (iy) ; Error ioe altd ld hl, (iy+127) ; Error ioe altd ld hl, (iy-128) ; Error ioe altd ld l, (hl) ; Error ioe altd ld l, (ix) ; Error ioe altd ld l, (ix+127) ; Error ioe altd ld l, (ix-128) ; Error ioe altd ld l, (iy) ; Error ioe altd ld l, (iy+127) ; Error ioe altd ld l, (iy-128) ; Error ioe altd or (hl) ; Error ioe altd or (ix) ; Error ioe altd or (ix+127) ; Error ioe altd or (ix-128) ; Error ioe altd or (iy) ; Error ioe altd or (iy+127) ; Error ioe altd or (iy-128) ; Error ioe altd or a, (hl) ; Error ioe altd or a, (ix) ; Error ioe altd or a, (ix+127) ; Error ioe altd or a, (ix-128) ; Error ioe altd or a, (iy) ; Error ioe altd or a, (iy+127) ; Error ioe altd or a, (iy-128) ; Error ioe altd rl (hl) ; Error ioe altd rl (ix) ; Error ioe altd rl (ix+127) ; Error ioe altd rl (ix-128) ; Error ioe altd rl (iy) ; Error ioe altd rl (iy+127) ; Error ioe altd rl (iy-128) ; Error ioe altd rlc (hl) ; Error ioe altd rlc (ix) ; Error ioe altd rlc (ix+127) ; Error ioe altd rlc (ix-128) ; Error ioe altd rlc (iy) ; Error ioe altd rlc (iy+127) ; Error ioe altd rlc (iy-128) ; Error ioe altd rr (hl) ; Error ioe altd rr (ix) ; Error ioe altd rr (ix+127) ; Error ioe altd rr (ix-128) ; Error ioe altd rr (iy) ; Error ioe altd rr (iy+127) ; Error ioe altd rr (iy-128) ; Error ioe altd rrc (hl) ; Error ioe altd rrc (ix) ; Error ioe altd rrc (ix+127) ; Error ioe altd rrc (ix-128) ; Error ioe altd rrc (iy) ; Error ioe altd rrc (iy+127) ; Error ioe altd rrc (iy-128) ; Error ioe altd sbc (hl) ; Error ioe altd sbc (ix) ; Error ioe altd sbc (ix+127) ; Error ioe altd sbc (ix-128) ; Error ioe altd sbc (iy) ; Error ioe altd sbc (iy+127) ; Error ioe altd sbc (iy-128) ; Error ioe altd sbc a, (hl) ; Error ioe altd sbc a, (ix) ; Error ioe altd sbc a, (ix+127) ; Error ioe altd sbc a, (ix-128) ; Error ioe altd sbc a, (iy) ; Error ioe altd sbc a, (iy+127) ; Error ioe altd sbc a, (iy-128) ; Error ioe altd sla (hl) ; Error ioe altd sla (ix) ; Error ioe altd sla (ix+127) ; Error ioe altd sla (ix-128) ; Error ioe altd sla (iy) ; Error ioe altd sla (iy+127) ; Error ioe altd sla (iy-128) ; Error ioe altd sra (hl) ; Error ioe altd sra (ix) ; Error ioe altd sra (ix+127) ; Error ioe altd sra (ix-128) ; Error ioe altd sra (iy) ; Error ioe altd sra (iy+127) ; Error ioe altd sra (iy-128) ; Error ioe altd srl (hl) ; Error ioe altd srl (ix) ; Error ioe altd srl (ix+127) ; Error ioe altd srl (ix-128) ; Error ioe altd srl (iy) ; Error ioe altd srl (iy+127) ; Error ioe altd srl (iy-128) ; Error ioe altd sub (hl) ; Error ioe altd sub (ix) ; Error ioe altd sub (ix+127) ; Error ioe altd sub (ix-128) ; Error ioe altd sub (iy) ; Error ioe altd sub (iy+127) ; Error ioe altd sub (iy-128) ; Error ioe altd sub a, (hl) ; Error ioe altd sub a, (ix) ; Error ioe altd sub a, (ix+127) ; Error ioe altd sub a, (ix-128) ; Error ioe altd sub a, (iy) ; Error ioe altd sub a, (iy+127) ; Error ioe altd sub a, (iy-128) ; Error ioe altd xor (hl) ; Error ioe altd xor (ix) ; Error ioe altd xor (ix+127) ; Error ioe altd xor (ix-128) ; Error ioe altd xor (iy) ; Error ioe altd xor (iy+127) ; Error ioe altd xor (iy-128) ; Error ioe altd xor a, (hl) ; Error ioe altd xor a, (ix) ; Error ioe altd xor a, (ix+127) ; Error ioe altd xor a, (ix-128) ; Error ioe altd xor a, (iy) ; Error ioe altd xor a, (iy+127) ; Error ioe altd xor a, (iy-128) ; Error ioe and (hl) ; Error ioe and (ix) ; Error ioe and (ix+127) ; Error ioe and (ix-128) ; Error ioe and (iy) ; Error ioe and (iy+127) ; Error ioe and (iy-128) ; Error ioe and a', (hl) ; Error ioe and a', (ix) ; Error ioe and a', (ix+127) ; Error ioe and a', (ix-128) ; Error ioe and a', (iy) ; Error ioe and a', (iy+127) ; Error ioe and a', (iy-128) ; Error ioe and a, (hl) ; Error ioe and a, (ix) ; Error ioe and a, (ix+127) ; Error ioe and a, (ix-128) ; Error ioe and a, (iy) ; Error ioe and a, (iy+127) ; Error ioe and a, (iy-128) ; Error ioe bit -1, (hl) ; Error ioe bit -1, (hl) ; Error ioe bit -1, (ix) ; Error ioe bit -1, (ix) ; Error ioe bit -1, (ix+127) ; Error ioe bit -1, (ix+127) ; Error ioe bit -1, (ix-128) ; Error ioe bit -1, (ix-128) ; Error ioe bit -1, (iy) ; Error ioe bit -1, (iy) ; Error ioe bit -1, (iy+127) ; Error ioe bit -1, (iy+127) ; Error ioe bit -1, (iy-128) ; Error ioe bit -1, (iy-128) ; Error ioe bit 0, (hl) ; Error ioe bit 0, (ix) ; Error ioe bit 0, (ix+127) ; Error ioe bit 0, (ix-128) ; Error ioe bit 0, (iy) ; Error ioe bit 0, (iy+127) ; Error ioe bit 0, (iy-128) ; Error ioe bit 1, (hl) ; Error ioe bit 1, (ix) ; Error ioe bit 1, (ix+127) ; Error ioe bit 1, (ix-128) ; Error ioe bit 1, (iy) ; Error ioe bit 1, (iy+127) ; Error ioe bit 1, (iy-128) ; Error ioe bit 2, (hl) ; Error ioe bit 2, (ix) ; Error ioe bit 2, (ix+127) ; Error ioe bit 2, (ix-128) ; Error ioe bit 2, (iy) ; Error ioe bit 2, (iy+127) ; Error ioe bit 2, (iy-128) ; Error ioe bit 3, (hl) ; Error ioe bit 3, (ix) ; Error ioe bit 3, (ix+127) ; Error ioe bit 3, (ix-128) ; Error ioe bit 3, (iy) ; Error ioe bit 3, (iy+127) ; Error ioe bit 3, (iy-128) ; Error ioe bit 4, (hl) ; Error ioe bit 4, (ix) ; Error ioe bit 4, (ix+127) ; Error ioe bit 4, (ix-128) ; Error ioe bit 4, (iy) ; Error ioe bit 4, (iy+127) ; Error ioe bit 4, (iy-128) ; Error ioe bit 5, (hl) ; Error ioe bit 5, (ix) ; Error ioe bit 5, (ix+127) ; Error ioe bit 5, (ix-128) ; Error ioe bit 5, (iy) ; Error ioe bit 5, (iy+127) ; Error ioe bit 5, (iy-128) ; Error ioe bit 6, (hl) ; Error ioe bit 6, (ix) ; Error ioe bit 6, (ix+127) ; Error ioe bit 6, (ix-128) ; Error ioe bit 6, (iy) ; Error ioe bit 6, (iy+127) ; Error ioe bit 6, (iy-128) ; Error ioe bit 7, (hl) ; Error ioe bit 7, (ix) ; Error ioe bit 7, (ix+127) ; Error ioe bit 7, (ix-128) ; Error ioe bit 7, (iy) ; Error ioe bit 7, (iy+127) ; Error ioe bit 7, (iy-128) ; Error ioe bit 8, (hl) ; Error ioe bit 8, (hl) ; Error ioe bit 8, (ix) ; Error ioe bit 8, (ix) ; Error ioe bit 8, (ix+127) ; Error ioe bit 8, (ix+127) ; Error ioe bit 8, (ix-128) ; Error ioe bit 8, (ix-128) ; Error ioe bit 8, (iy) ; Error ioe bit 8, (iy) ; Error ioe bit 8, (iy+127) ; Error ioe bit 8, (iy+127) ; Error ioe bit 8, (iy-128) ; Error ioe bit 8, (iy-128) ; Error ioe bit.a -1, (hl) ; Error ioe bit.a -1, (hl) ; Error ioe bit.a -1, (ix) ; Error ioe bit.a -1, (ix) ; Error ioe bit.a -1, (ix+127) ; Error ioe bit.a -1, (ix+127) ; Error ioe bit.a -1, (ix-128) ; Error ioe bit.a -1, (ix-128) ; Error ioe bit.a -1, (iy) ; Error ioe bit.a -1, (iy) ; Error ioe bit.a -1, (iy+127) ; Error ioe bit.a -1, (iy+127) ; Error ioe bit.a -1, (iy-128) ; Error ioe bit.a -1, (iy-128) ; Error ioe bit.a 0, (hl) ; Error ioe bit.a 0, (ix) ; Error ioe bit.a 0, (ix+127) ; Error ioe bit.a 0, (ix-128) ; Error ioe bit.a 0, (iy) ; Error ioe bit.a 0, (iy+127) ; Error ioe bit.a 0, (iy-128) ; Error ioe bit.a 1, (hl) ; Error ioe bit.a 1, (ix) ; Error ioe bit.a 1, (ix+127) ; Error ioe bit.a 1, (ix-128) ; Error ioe bit.a 1, (iy) ; Error ioe bit.a 1, (iy+127) ; Error ioe bit.a 1, (iy-128) ; Error ioe bit.a 2, (hl) ; Error ioe bit.a 2, (ix) ; Error ioe bit.a 2, (ix+127) ; Error ioe bit.a 2, (ix-128) ; Error ioe bit.a 2, (iy) ; Error ioe bit.a 2, (iy+127) ; Error ioe bit.a 2, (iy-128) ; Error ioe bit.a 3, (hl) ; Error ioe bit.a 3, (ix) ; Error ioe bit.a 3, (ix+127) ; Error ioe bit.a 3, (ix-128) ; Error ioe bit.a 3, (iy) ; Error ioe bit.a 3, (iy+127) ; Error ioe bit.a 3, (iy-128) ; Error ioe bit.a 4, (hl) ; Error ioe bit.a 4, (ix) ; Error ioe bit.a 4, (ix+127) ; Error ioe bit.a 4, (ix-128) ; Error ioe bit.a 4, (iy) ; Error ioe bit.a 4, (iy+127) ; Error ioe bit.a 4, (iy-128) ; Error ioe bit.a 5, (hl) ; Error ioe bit.a 5, (ix) ; Error ioe bit.a 5, (ix+127) ; Error ioe bit.a 5, (ix-128) ; Error ioe bit.a 5, (iy) ; Error ioe bit.a 5, (iy+127) ; Error ioe bit.a 5, (iy-128) ; Error ioe bit.a 6, (hl) ; Error ioe bit.a 6, (ix) ; Error ioe bit.a 6, (ix+127) ; Error ioe bit.a 6, (ix-128) ; Error ioe bit.a 6, (iy) ; Error ioe bit.a 6, (iy+127) ; Error ioe bit.a 6, (iy-128) ; Error ioe bit.a 7, (hl) ; Error ioe bit.a 7, (ix) ; Error ioe bit.a 7, (ix+127) ; Error ioe bit.a 7, (ix-128) ; Error ioe bit.a 7, (iy) ; Error ioe bit.a 7, (iy+127) ; Error ioe bit.a 7, (iy-128) ; Error ioe bit.a 8, (hl) ; Error ioe bit.a 8, (hl) ; Error ioe bit.a 8, (ix) ; Error ioe bit.a 8, (ix) ; Error ioe bit.a 8, (ix+127) ; Error ioe bit.a 8, (ix+127) ; Error ioe bit.a 8, (ix-128) ; Error ioe bit.a 8, (ix-128) ; Error ioe bit.a 8, (iy) ; Error ioe bit.a 8, (iy) ; Error ioe bit.a 8, (iy+127) ; Error ioe bit.a 8, (iy+127) ; Error ioe bit.a 8, (iy-128) ; Error ioe bit.a 8, (iy-128) ; Error ioe cmp (hl) ; Error ioe cmp (ix) ; Error ioe cmp (ix+127) ; Error ioe cmp (ix-128) ; Error ioe cmp (iy) ; Error ioe cmp (iy+127) ; Error ioe cmp (iy-128) ; Error ioe cmp a, (hl) ; Error ioe cmp a, (ix) ; Error ioe cmp a, (ix+127) ; Error ioe cmp a, (ix-128) ; Error ioe cmp a, (iy) ; Error ioe cmp a, (iy+127) ; Error ioe cmp a, (iy-128) ; Error ioe cp (hl) ; Error ioe cp (ix) ; Error ioe cp (ix+127) ; Error ioe cp (ix-128) ; Error ioe cp (iy) ; Error ioe cp (iy+127) ; Error ioe cp (iy-128) ; Error ioe cp a, (hl) ; Error ioe cp a, (ix) ; Error ioe cp a, (ix+127) ; Error ioe cp a, (ix-128) ; Error ioe cp a, (iy) ; Error ioe cp a, (iy+127) ; Error ioe cp a, (iy-128) ; Error ioe dec (hl) ; Error ioe dec (ix) ; Error ioe dec (ix+127) ; Error ioe dec (ix-128) ; Error ioe dec (iy) ; Error ioe dec (iy+127) ; Error ioe dec (iy-128) ; Error ioe inc (hl) ; Error ioe inc (ix) ; Error ioe inc (ix+127) ; Error ioe inc (ix-128) ; Error ioe inc (iy) ; Error ioe inc (iy+127) ; Error ioe inc (iy-128) ; Error ioe ld (-32768), a ; Error ioe ld (-32768), bc ; Error ioe ld (-32768), de ; Error ioe ld (-32768), hl ; Error ioe ld (-32768), ix ; Error ioe ld (-32768), iy ; Error ioe ld (-32768), sp ; Error ioe ld (32767), a ; Error ioe ld (32767), bc ; Error ioe ld (32767), de ; Error ioe ld (32767), hl ; Error ioe ld (32767), ix ; Error ioe ld (32767), iy ; Error ioe ld (32767), sp ; Error ioe ld (65535), a ; Error ioe ld (65535), bc ; Error ioe ld (65535), de ; Error ioe ld (65535), hl ; Error ioe ld (65535), ix ; Error ioe ld (65535), iy ; Error ioe ld (65535), sp ; Error ioe ld (bc), a ; Error ioe ld (bc+), a ; Error ioe ld (bc-), a ; Error ioe ld (de), a ; Error ioe ld (de+), a ; Error ioe ld (de-), a ; Error ioe ld (hl), -128 ; Error ioe ld (hl), 127 ; Error ioe ld (hl), 255 ; Error ioe ld (hl), a ; Error ioe ld (hl), b ; Error ioe ld (hl), c ; Error ioe ld (hl), d ; Error ioe ld (hl), e ; Error ioe ld (hl), h ; Error ioe ld (hl), hl ; Error ioe ld (hl), l ; Error ioe ld (hl+), a ; Error ioe ld (hl+127), hl ; Error ioe ld (hl-), a ; Error ioe ld (hl-128), hl ; Error ioe ld (hld), a ; Error ioe ld (hli), a ; Error ioe ld (ix), -128 ; Error ioe ld (ix), 127 ; Error ioe ld (ix), 255 ; Error ioe ld (ix), a ; Error ioe ld (ix), b ; Error ioe ld (ix), c ; Error ioe ld (ix), d ; Error ioe ld (ix), e ; Error ioe ld (ix), h ; Error ioe ld (ix), hl ; Error ioe ld (ix), l ; Error ioe ld (ix+127), -128 ; Error ioe ld (ix+127), 127 ; Error ioe ld (ix+127), 255 ; Error ioe ld (ix+127), a ; Error ioe ld (ix+127), b ; Error ioe ld (ix+127), c ; Error ioe ld (ix+127), d ; Error ioe ld (ix+127), e ; Error ioe ld (ix+127), h ; Error ioe ld (ix+127), hl ; Error ioe ld (ix+127), l ; Error ioe ld (ix-128), -128 ; Error ioe ld (ix-128), 127 ; Error ioe ld (ix-128), 255 ; Error ioe ld (ix-128), a ; Error ioe ld (ix-128), b ; Error ioe ld (ix-128), c ; Error ioe ld (ix-128), d ; Error ioe ld (ix-128), e ; Error ioe ld (ix-128), h ; Error ioe ld (ix-128), hl ; Error ioe ld (ix-128), l ; Error ioe ld (iy), -128 ; Error ioe ld (iy), 127 ; Error ioe ld (iy), 255 ; Error ioe ld (iy), a ; Error ioe ld (iy), b ; Error ioe ld (iy), c ; Error ioe ld (iy), d ; Error ioe ld (iy), e ; Error ioe ld (iy), h ; Error ioe ld (iy), hl ; Error ioe ld (iy), l ; Error ioe ld (iy+127), -128 ; Error ioe ld (iy+127), 127 ; Error ioe ld (iy+127), 255 ; Error ioe ld (iy+127), a ; Error ioe ld (iy+127), b ; Error ioe ld (iy+127), c ; Error ioe ld (iy+127), d ; Error ioe ld (iy+127), e ; Error ioe ld (iy+127), h ; Error ioe ld (iy+127), hl ; Error ioe ld (iy+127), l ; Error ioe ld (iy-128), -128 ; Error ioe ld (iy-128), 127 ; Error ioe ld (iy-128), 255 ; Error ioe ld (iy-128), a ; Error ioe ld (iy-128), b ; Error ioe ld (iy-128), c ; Error ioe ld (iy-128), d ; Error ioe ld (iy-128), e ; Error ioe ld (iy-128), h ; Error ioe ld (iy-128), hl ; Error ioe ld (iy-128), l ; Error ioe ld a', (-32768) ; Error ioe ld a', (32767) ; Error ioe ld a', (65535) ; Error ioe ld a', (bc) ; Error ioe ld a', (bc+) ; Error ioe ld a', (bc-) ; Error ioe ld a', (de) ; Error ioe ld a', (de+) ; Error ioe ld a', (de-) ; Error ioe ld a', (hl) ; Error ioe ld a', (hl+) ; Error ioe ld a', (hl-) ; Error ioe ld a', (hld) ; Error ioe ld a', (hli) ; Error ioe ld a', (ix) ; Error ioe ld a', (ix+127) ; Error ioe ld a', (ix-128) ; Error ioe ld a', (iy) ; Error ioe ld a', (iy+127) ; Error ioe ld a', (iy-128) ; Error ioe ld a, (-32768) ; Error ioe ld a, (32767) ; Error ioe ld a, (65535) ; Error ioe ld a, (bc) ; Error ioe ld a, (bc+) ; Error ioe ld a, (bc-) ; Error ioe ld a, (de) ; Error ioe ld a, (de+) ; Error ioe ld a, (de-) ; Error ioe ld a, (hl) ; Error ioe ld a, (hl+) ; Error ioe ld a, (hl-) ; Error ioe ld a, (hld) ; Error ioe ld a, (hli) ; Error ioe ld a, (ix) ; Error ioe ld a, (ix+127) ; Error ioe ld a, (ix-128) ; Error ioe ld a, (iy) ; Error ioe ld a, (iy+127) ; Error ioe ld a, (iy-128) ; Error ioe ld b', (hl) ; Error ioe ld b', (ix) ; Error ioe ld b', (ix+127) ; Error ioe ld b', (ix-128) ; Error ioe ld b', (iy) ; Error ioe ld b', (iy+127) ; Error ioe ld b', (iy-128) ; Error ioe ld b, (hl) ; Error ioe ld b, (ix) ; Error ioe ld b, (ix+127) ; Error ioe ld b, (ix-128) ; Error ioe ld b, (iy) ; Error ioe ld b, (iy+127) ; Error ioe ld b, (iy-128) ; Error ioe ld bc', (-32768) ; Error ioe ld bc', (32767) ; Error ioe ld bc', (65535) ; Error ioe ld bc, (-32768) ; Error ioe ld bc, (32767) ; Error ioe ld bc, (65535) ; Error ioe ld c', (hl) ; Error ioe ld c', (ix) ; Error ioe ld c', (ix+127) ; Error ioe ld c', (ix-128) ; Error ioe ld c', (iy) ; Error ioe ld c', (iy+127) ; Error ioe ld c', (iy-128) ; Error ioe ld c, (hl) ; Error ioe ld c, (ix) ; Error ioe ld c, (ix+127) ; Error ioe ld c, (ix-128) ; Error ioe ld c, (iy) ; Error ioe ld c, (iy+127) ; Error ioe ld c, (iy-128) ; Error ioe ld d', (hl) ; Error ioe ld d', (ix) ; Error ioe ld d', (ix+127) ; Error ioe ld d', (ix-128) ; Error ioe ld d', (iy) ; Error ioe ld d', (iy+127) ; Error ioe ld d', (iy-128) ; Error ioe ld d, (hl) ; Error ioe ld d, (ix) ; Error ioe ld d, (ix+127) ; Error ioe ld d, (ix-128) ; Error ioe ld d, (iy) ; Error ioe ld d, (iy+127) ; Error ioe ld d, (iy-128) ; Error ioe ld de', (-32768) ; Error ioe ld de', (32767) ; Error ioe ld de', (65535) ; Error ioe ld de, (-32768) ; Error ioe ld de, (32767) ; Error ioe ld de, (65535) ; Error ioe ld e', (hl) ; Error ioe ld e', (ix) ; Error ioe ld e', (ix+127) ; Error ioe ld e', (ix-128) ; Error ioe ld e', (iy) ; Error ioe ld e', (iy+127) ; Error ioe ld e', (iy-128) ; Error ioe ld e, (hl) ; Error ioe ld e, (ix) ; Error ioe ld e, (ix+127) ; Error ioe ld e, (ix-128) ; Error ioe ld e, (iy) ; Error ioe ld e, (iy+127) ; Error ioe ld e, (iy-128) ; Error ioe ld h', (hl) ; Error ioe ld h', (ix) ; Error ioe ld h', (ix+127) ; Error ioe ld h', (ix-128) ; Error ioe ld h', (iy) ; Error ioe ld h', (iy+127) ; Error ioe ld h', (iy-128) ; Error ioe ld h, (hl) ; Error ioe ld h, (ix) ; Error ioe ld h, (ix+127) ; Error ioe ld h, (ix-128) ; Error ioe ld h, (iy) ; Error ioe ld h, (iy+127) ; Error ioe ld h, (iy-128) ; Error ioe ld hl', (-32768) ; Error ioe ld hl', (32767) ; Error ioe ld hl', (65535) ; Error ioe ld hl', (hl) ; Error ioe ld hl', (hl+127) ; Error ioe ld hl', (hl-128) ; Error ioe ld hl', (ix) ; Error ioe ld hl', (ix+127) ; Error ioe ld hl', (ix-128) ; Error ioe ld hl', (iy) ; Error ioe ld hl', (iy+127) ; Error ioe ld hl', (iy-128) ; Error ioe ld hl, (-32768) ; Error ioe ld hl, (32767) ; Error ioe ld hl, (65535) ; Error ioe ld hl, (hl) ; Error ioe ld hl, (hl+127) ; Error ioe ld hl, (hl-128) ; Error ioe ld hl, (ix) ; Error ioe ld hl, (ix+127) ; Error ioe ld hl, (ix-128) ; Error ioe ld hl, (iy) ; Error ioe ld hl, (iy+127) ; Error ioe ld hl, (iy-128) ; Error ioe ld ix, (-32768) ; Error ioe ld ix, (32767) ; Error ioe ld ix, (65535) ; Error ioe ld iy, (-32768) ; Error ioe ld iy, (32767) ; Error ioe ld iy, (65535) ; Error ioe ld l', (hl) ; Error ioe ld l', (ix) ; Error ioe ld l', (ix+127) ; Error ioe ld l', (ix-128) ; Error ioe ld l', (iy) ; Error ioe ld l', (iy+127) ; Error ioe ld l', (iy-128) ; Error ioe ld l, (hl) ; Error ioe ld l, (ix) ; Error ioe ld l, (ix+127) ; Error ioe ld l, (ix-128) ; Error ioe ld l, (iy) ; Error ioe ld l, (iy+127) ; Error ioe ld l, (iy-128) ; Error ioe ld sp, (-32768) ; Error ioe ld sp, (32767) ; Error ioe ld sp, (65535) ; Error ioe ldd ; Error ioe ldd (bc), a ; Error ioe ldd (de), a ; Error ioe ldd (hl), a ; Error ioe ldd a, (bc) ; Error ioe ldd a, (de) ; Error ioe ldd a, (hl) ; Error ioe lddr ; Error ioe lddsr ; Error ioe ldi ; Error ioe ldi (bc), a ; Error ioe ldi (de), a ; Error ioe ldi (hl), a ; Error ioe ldi a, (bc) ; Error ioe ldi a, (de) ; Error ioe ldi a, (hl) ; Error ioe ldir ; Error ioe ldisr ; Error ioe lsddr ; Error ioe lsdr ; Error ioe lsidr ; Error ioe lsir ; Error ioe or (hl) ; Error ioe or (ix) ; Error ioe or (ix+127) ; Error ioe or (ix-128) ; Error ioe or (iy) ; Error ioe or (iy+127) ; Error ioe or (iy-128) ; Error ioe or a', (hl) ; Error ioe or a', (ix) ; Error ioe or a', (ix+127) ; Error ioe or a', (ix-128) ; Error ioe or a', (iy) ; Error ioe or a', (iy+127) ; Error ioe or a', (iy-128) ; Error ioe or a, (hl) ; Error ioe or a, (ix) ; Error ioe or a, (ix+127) ; Error ioe or a, (ix-128) ; Error ioe or a, (iy) ; Error ioe or a, (iy+127) ; Error ioe or a, (iy-128) ; Error ioe res -1, (hl) ; Error ioe res -1, (hl) ; Error ioe res -1, (ix) ; Error ioe res -1, (ix) ; Error ioe res -1, (ix+127) ; Error ioe res -1, (ix+127) ; Error ioe res -1, (ix-128) ; Error ioe res -1, (ix-128) ; Error ioe res -1, (iy) ; Error ioe res -1, (iy) ; Error ioe res -1, (iy+127) ; Error ioe res -1, (iy+127) ; Error ioe res -1, (iy-128) ; Error ioe res -1, (iy-128) ; Error ioe res 0, (hl) ; Error ioe res 0, (ix) ; Error ioe res 0, (ix+127) ; Error ioe res 0, (ix-128) ; Error ioe res 0, (iy) ; Error ioe res 0, (iy+127) ; Error ioe res 0, (iy-128) ; Error ioe res 1, (hl) ; Error ioe res 1, (ix) ; Error ioe res 1, (ix+127) ; Error ioe res 1, (ix-128) ; Error ioe res 1, (iy) ; Error ioe res 1, (iy+127) ; Error ioe res 1, (iy-128) ; Error ioe res 2, (hl) ; Error ioe res 2, (ix) ; Error ioe res 2, (ix+127) ; Error ioe res 2, (ix-128) ; Error ioe res 2, (iy) ; Error ioe res 2, (iy+127) ; Error ioe res 2, (iy-128) ; Error ioe res 3, (hl) ; Error ioe res 3, (ix) ; Error ioe res 3, (ix+127) ; Error ioe res 3, (ix-128) ; Error ioe res 3, (iy) ; Error ioe res 3, (iy+127) ; Error ioe res 3, (iy-128) ; Error ioe res 4, (hl) ; Error ioe res 4, (ix) ; Error ioe res 4, (ix+127) ; Error ioe res 4, (ix-128) ; Error ioe res 4, (iy) ; Error ioe res 4, (iy+127) ; Error ioe res 4, (iy-128) ; Error ioe res 5, (hl) ; Error ioe res 5, (ix) ; Error ioe res 5, (ix+127) ; Error ioe res 5, (ix-128) ; Error ioe res 5, (iy) ; Error ioe res 5, (iy+127) ; Error ioe res 5, (iy-128) ; Error ioe res 6, (hl) ; Error ioe res 6, (ix) ; Error ioe res 6, (ix+127) ; Error ioe res 6, (ix-128) ; Error ioe res 6, (iy) ; Error ioe res 6, (iy+127) ; Error ioe res 6, (iy-128) ; Error ioe res 7, (hl) ; Error ioe res 7, (ix) ; Error ioe res 7, (ix+127) ; Error ioe res 7, (ix-128) ; Error ioe res 7, (iy) ; Error ioe res 7, (iy+127) ; Error ioe res 7, (iy-128) ; Error ioe res 8, (hl) ; Error ioe res 8, (hl) ; Error ioe res 8, (ix) ; Error ioe res 8, (ix) ; Error ioe res 8, (ix+127) ; Error ioe res 8, (ix+127) ; Error ioe res 8, (ix-128) ; Error ioe res 8, (ix-128) ; Error ioe res 8, (iy) ; Error ioe res 8, (iy) ; Error ioe res 8, (iy+127) ; Error ioe res 8, (iy+127) ; Error ioe res 8, (iy-128) ; Error ioe res 8, (iy-128) ; Error ioe res.a -1, (hl) ; Error ioe res.a -1, (hl) ; Error ioe res.a -1, (ix) ; Error ioe res.a -1, (ix) ; Error ioe res.a -1, (ix+127) ; Error ioe res.a -1, (ix+127) ; Error ioe res.a -1, (ix-128) ; Error ioe res.a -1, (ix-128) ; Error ioe res.a -1, (iy) ; Error ioe res.a -1, (iy) ; Error ioe res.a -1, (iy+127) ; Error ioe res.a -1, (iy+127) ; Error ioe res.a -1, (iy-128) ; Error ioe res.a -1, (iy-128) ; Error ioe res.a 0, (hl) ; Error ioe res.a 0, (ix) ; Error ioe res.a 0, (ix+127) ; Error ioe res.a 0, (ix-128) ; Error ioe res.a 0, (iy) ; Error ioe res.a 0, (iy+127) ; Error ioe res.a 0, (iy-128) ; Error ioe res.a 1, (hl) ; Error ioe res.a 1, (ix) ; Error ioe res.a 1, (ix+127) ; Error ioe res.a 1, (ix-128) ; Error ioe res.a 1, (iy) ; Error ioe res.a 1, (iy+127) ; Error ioe res.a 1, (iy-128) ; Error ioe res.a 2, (hl) ; Error ioe res.a 2, (ix) ; Error ioe res.a 2, (ix+127) ; Error ioe res.a 2, (ix-128) ; Error ioe res.a 2, (iy) ; Error ioe res.a 2, (iy+127) ; Error ioe res.a 2, (iy-128) ; Error ioe res.a 3, (hl) ; Error ioe res.a 3, (ix) ; Error ioe res.a 3, (ix+127) ; Error ioe res.a 3, (ix-128) ; Error ioe res.a 3, (iy) ; Error ioe res.a 3, (iy+127) ; Error ioe res.a 3, (iy-128) ; Error ioe res.a 4, (hl) ; Error ioe res.a 4, (ix) ; Error ioe res.a 4, (ix+127) ; Error ioe res.a 4, (ix-128) ; Error ioe res.a 4, (iy) ; Error ioe res.a 4, (iy+127) ; Error ioe res.a 4, (iy-128) ; Error ioe res.a 5, (hl) ; Error ioe res.a 5, (ix) ; Error ioe res.a 5, (ix+127) ; Error ioe res.a 5, (ix-128) ; Error ioe res.a 5, (iy) ; Error ioe res.a 5, (iy+127) ; Error ioe res.a 5, (iy-128) ; Error ioe res.a 6, (hl) ; Error ioe res.a 6, (ix) ; Error ioe res.a 6, (ix+127) ; Error ioe res.a 6, (ix-128) ; Error ioe res.a 6, (iy) ; Error ioe res.a 6, (iy+127) ; Error ioe res.a 6, (iy-128) ; Error ioe res.a 7, (hl) ; Error ioe res.a 7, (ix) ; Error ioe res.a 7, (ix+127) ; Error ioe res.a 7, (ix-128) ; Error ioe res.a 7, (iy) ; Error ioe res.a 7, (iy+127) ; Error ioe res.a 7, (iy-128) ; Error ioe res.a 8, (hl) ; Error ioe res.a 8, (hl) ; Error ioe res.a 8, (ix) ; Error ioe res.a 8, (ix) ; Error ioe res.a 8, (ix+127) ; Error ioe res.a 8, (ix+127) ; Error ioe res.a 8, (ix-128) ; Error ioe res.a 8, (ix-128) ; Error ioe res.a 8, (iy) ; Error ioe res.a 8, (iy) ; Error ioe res.a 8, (iy+127) ; Error ioe res.a 8, (iy+127) ; Error ioe res.a 8, (iy-128) ; Error ioe res.a 8, (iy-128) ; Error ioe rl (hl) ; Error ioe rl (ix) ; Error ioe rl (ix+127) ; Error ioe rl (ix-128) ; Error ioe rl (iy) ; Error ioe rl (iy+127) ; Error ioe rl (iy-128) ; Error ioe rlc (hl) ; Error ioe rlc (ix) ; Error ioe rlc (ix+127) ; Error ioe rlc (ix-128) ; Error ioe rlc (iy) ; Error ioe rlc (iy+127) ; Error ioe rlc (iy-128) ; Error ioe rr (hl) ; Error ioe rr (ix) ; Error ioe rr (ix+127) ; Error ioe rr (ix-128) ; Error ioe rr (iy) ; Error ioe rr (iy+127) ; Error ioe rr (iy-128) ; Error ioe rrc (hl) ; Error ioe rrc (ix) ; Error ioe rrc (ix+127) ; Error ioe rrc (ix-128) ; Error ioe rrc (iy) ; Error ioe rrc (iy+127) ; Error ioe rrc (iy-128) ; Error ioe sbc (hl) ; Error ioe sbc (ix) ; Error ioe sbc (ix+127) ; Error ioe sbc (ix-128) ; Error ioe sbc (iy) ; Error ioe sbc (iy+127) ; Error ioe sbc (iy-128) ; Error ioe sbc a', (hl) ; Error ioe sbc a', (ix) ; Error ioe sbc a', (ix+127) ; Error ioe sbc a', (ix-128) ; Error ioe sbc a', (iy) ; Error ioe sbc a', (iy+127) ; Error ioe sbc a', (iy-128) ; Error ioe sbc a, (hl) ; Error ioe sbc a, (ix) ; Error ioe sbc a, (ix+127) ; Error ioe sbc a, (ix-128) ; Error ioe sbc a, (iy) ; Error ioe sbc a, (iy+127) ; Error ioe sbc a, (iy-128) ; Error ioe set -1, (hl) ; Error ioe set -1, (hl) ; Error ioe set -1, (ix) ; Error ioe set -1, (ix) ; Error ioe set -1, (ix+127) ; Error ioe set -1, (ix+127) ; Error ioe set -1, (ix-128) ; Error ioe set -1, (ix-128) ; Error ioe set -1, (iy) ; Error ioe set -1, (iy) ; Error ioe set -1, (iy+127) ; Error ioe set -1, (iy+127) ; Error ioe set -1, (iy-128) ; Error ioe set -1, (iy-128) ; Error ioe set 0, (hl) ; Error ioe set 0, (ix) ; Error ioe set 0, (ix+127) ; Error ioe set 0, (ix-128) ; Error ioe set 0, (iy) ; Error ioe set 0, (iy+127) ; Error ioe set 0, (iy-128) ; Error ioe set 1, (hl) ; Error ioe set 1, (ix) ; Error ioe set 1, (ix+127) ; Error ioe set 1, (ix-128) ; Error ioe set 1, (iy) ; Error ioe set 1, (iy+127) ; Error ioe set 1, (iy-128) ; Error ioe set 2, (hl) ; Error ioe set 2, (ix) ; Error ioe set 2, (ix+127) ; Error ioe set 2, (ix-128) ; Error ioe set 2, (iy) ; Error ioe set 2, (iy+127) ; Error ioe set 2, (iy-128) ; Error ioe set 3, (hl) ; Error ioe set 3, (ix) ; Error ioe set 3, (ix+127) ; Error ioe set 3, (ix-128) ; Error ioe set 3, (iy) ; Error ioe set 3, (iy+127) ; Error ioe set 3, (iy-128) ; Error ioe set 4, (hl) ; Error ioe set 4, (ix) ; Error ioe set 4, (ix+127) ; Error ioe set 4, (ix-128) ; Error ioe set 4, (iy) ; Error ioe set 4, (iy+127) ; Error ioe set 4, (iy-128) ; Error ioe set 5, (hl) ; Error ioe set 5, (ix) ; Error ioe set 5, (ix+127) ; Error ioe set 5, (ix-128) ; Error ioe set 5, (iy) ; Error ioe set 5, (iy+127) ; Error ioe set 5, (iy-128) ; Error ioe set 6, (hl) ; Error ioe set 6, (ix) ; Error ioe set 6, (ix+127) ; Error ioe set 6, (ix-128) ; Error ioe set 6, (iy) ; Error ioe set 6, (iy+127) ; Error ioe set 6, (iy-128) ; Error ioe set 7, (hl) ; Error ioe set 7, (ix) ; Error ioe set 7, (ix+127) ; Error ioe set 7, (ix-128) ; Error ioe set 7, (iy) ; Error ioe set 7, (iy+127) ; Error ioe set 7, (iy-128) ; Error ioe set 8, (hl) ; Error ioe set 8, (hl) ; Error ioe set 8, (ix) ; Error ioe set 8, (ix) ; Error ioe set 8, (ix+127) ; Error ioe set 8, (ix+127) ; Error ioe set 8, (ix-128) ; Error ioe set 8, (ix-128) ; Error ioe set 8, (iy) ; Error ioe set 8, (iy) ; Error ioe set 8, (iy+127) ; Error ioe set 8, (iy+127) ; Error ioe set 8, (iy-128) ; Error ioe set 8, (iy-128) ; Error ioe set.a -1, (hl) ; Error ioe set.a -1, (hl) ; Error ioe set.a -1, (ix) ; Error ioe set.a -1, (ix) ; Error ioe set.a -1, (ix+127) ; Error ioe set.a -1, (ix+127) ; Error ioe set.a -1, (ix-128) ; Error ioe set.a -1, (ix-128) ; Error ioe set.a -1, (iy) ; Error ioe set.a -1, (iy) ; Error ioe set.a -1, (iy+127) ; Error ioe set.a -1, (iy+127) ; Error ioe set.a -1, (iy-128) ; Error ioe set.a -1, (iy-128) ; Error ioe set.a 0, (hl) ; Error ioe set.a 0, (ix) ; Error ioe set.a 0, (ix+127) ; Error ioe set.a 0, (ix-128) ; Error ioe set.a 0, (iy) ; Error ioe set.a 0, (iy+127) ; Error ioe set.a 0, (iy-128) ; Error ioe set.a 1, (hl) ; Error ioe set.a 1, (ix) ; Error ioe set.a 1, (ix+127) ; Error ioe set.a 1, (ix-128) ; Error ioe set.a 1, (iy) ; Error ioe set.a 1, (iy+127) ; Error ioe set.a 1, (iy-128) ; Error ioe set.a 2, (hl) ; Error ioe set.a 2, (ix) ; Error ioe set.a 2, (ix+127) ; Error ioe set.a 2, (ix-128) ; Error ioe set.a 2, (iy) ; Error ioe set.a 2, (iy+127) ; Error ioe set.a 2, (iy-128) ; Error ioe set.a 3, (hl) ; Error ioe set.a 3, (ix) ; Error ioe set.a 3, (ix+127) ; Error ioe set.a 3, (ix-128) ; Error ioe set.a 3, (iy) ; Error ioe set.a 3, (iy+127) ; Error ioe set.a 3, (iy-128) ; Error ioe set.a 4, (hl) ; Error ioe set.a 4, (ix) ; Error ioe set.a 4, (ix+127) ; Error ioe set.a 4, (ix-128) ; Error ioe set.a 4, (iy) ; Error ioe set.a 4, (iy+127) ; Error ioe set.a 4, (iy-128) ; Error ioe set.a 5, (hl) ; Error ioe set.a 5, (ix) ; Error ioe set.a 5, (ix+127) ; Error ioe set.a 5, (ix-128) ; Error ioe set.a 5, (iy) ; Error ioe set.a 5, (iy+127) ; Error ioe set.a 5, (iy-128) ; Error ioe set.a 6, (hl) ; Error ioe set.a 6, (ix) ; Error ioe set.a 6, (ix+127) ; Error ioe set.a 6, (ix-128) ; Error ioe set.a 6, (iy) ; Error ioe set.a 6, (iy+127) ; Error ioe set.a 6, (iy-128) ; Error ioe set.a 7, (hl) ; Error ioe set.a 7, (ix) ; Error ioe set.a 7, (ix+127) ; Error ioe set.a 7, (ix-128) ; Error ioe set.a 7, (iy) ; Error ioe set.a 7, (iy+127) ; Error ioe set.a 7, (iy-128) ; Error ioe set.a 8, (hl) ; Error ioe set.a 8, (hl) ; Error ioe set.a 8, (ix) ; Error ioe set.a 8, (ix) ; Error ioe set.a 8, (ix+127) ; Error ioe set.a 8, (ix+127) ; Error ioe set.a 8, (ix-128) ; Error ioe set.a 8, (ix-128) ; Error ioe set.a 8, (iy) ; Error ioe set.a 8, (iy) ; Error ioe set.a 8, (iy+127) ; Error ioe set.a 8, (iy+127) ; Error ioe set.a 8, (iy-128) ; Error ioe set.a 8, (iy-128) ; Error ioe sla (hl) ; Error ioe sla (ix) ; Error ioe sla (ix+127) ; Error ioe sla (ix-128) ; Error ioe sla (iy) ; Error ioe sla (iy+127) ; Error ioe sla (iy-128) ; Error ioe sra (hl) ; Error ioe sra (ix) ; Error ioe sra (ix+127) ; Error ioe sra (ix-128) ; Error ioe sra (iy) ; Error ioe sra (iy+127) ; Error ioe sra (iy-128) ; Error ioe srl (hl) ; Error ioe srl (ix) ; Error ioe srl (ix+127) ; Error ioe srl (ix-128) ; Error ioe srl (iy) ; Error ioe srl (iy+127) ; Error ioe srl (iy-128) ; Error ioe sub (hl) ; Error ioe sub (ix) ; Error ioe sub (ix+127) ; Error ioe sub (ix-128) ; Error ioe sub (iy) ; Error ioe sub (iy+127) ; Error ioe sub (iy-128) ; Error ioe sub a', (hl) ; Error ioe sub a', (ix) ; Error ioe sub a', (ix+127) ; Error ioe sub a', (ix-128) ; Error ioe sub a', (iy) ; Error ioe sub a', (iy+127) ; Error ioe sub a', (iy-128) ; Error ioe sub a, (hl) ; Error ioe sub a, (ix) ; Error ioe sub a, (ix+127) ; Error ioe sub a, (ix-128) ; Error ioe sub a, (iy) ; Error ioe sub a, (iy+127) ; Error ioe sub a, (iy-128) ; Error ioe xor (hl) ; Error ioe xor (ix) ; Error ioe xor (ix+127) ; Error ioe xor (ix-128) ; Error ioe xor (iy) ; Error ioe xor (iy+127) ; Error ioe xor (iy-128) ; Error ioe xor a', (hl) ; Error ioe xor a', (ix) ; Error ioe xor a', (ix+127) ; Error ioe xor a', (ix-128) ; Error ioe xor a', (iy) ; Error ioe xor a', (iy+127) ; Error ioe xor a', (iy-128) ; Error ioe xor a, (hl) ; Error ioe xor a, (ix) ; Error ioe xor a, (ix+127) ; Error ioe xor a, (ix-128) ; Error ioe xor a, (iy) ; Error ioe xor a, (iy+127) ; Error ioe xor a, (iy-128) ; Error ioi adc (hl) ; Error ioi adc (ix) ; Error ioi adc (ix+127) ; Error ioi adc (ix-128) ; Error ioi adc (iy) ; Error ioi adc (iy+127) ; Error ioi adc (iy-128) ; Error ioi adc a', (hl) ; Error ioi adc a', (ix) ; Error ioi adc a', (ix+127) ; Error ioi adc a', (ix-128) ; Error ioi adc a', (iy) ; Error ioi adc a', (iy+127) ; Error ioi adc a', (iy-128) ; Error ioi adc a, (hl) ; Error ioi adc a, (ix) ; Error ioi adc a, (ix+127) ; Error ioi adc a, (ix-128) ; Error ioi adc a, (iy) ; Error ioi adc a, (iy+127) ; Error ioi adc a, (iy-128) ; Error ioi add (hl) ; Error ioi add (ix) ; Error ioi add (ix+127) ; Error ioi add (ix-128) ; Error ioi add (iy) ; Error ioi add (iy+127) ; Error ioi add (iy-128) ; Error ioi add a', (hl) ; Error ioi add a', (ix) ; Error ioi add a', (ix+127) ; Error ioi add a', (ix-128) ; Error ioi add a', (iy) ; Error ioi add a', (iy+127) ; Error ioi add a', (iy-128) ; Error ioi add a, (hl) ; Error ioi add a, (ix) ; Error ioi add a, (ix+127) ; Error ioi add a, (ix-128) ; Error ioi add a, (iy) ; Error ioi add a, (iy+127) ; Error ioi add a, (iy-128) ; Error ioi altd adc (hl) ; Error ioi altd adc (ix) ; Error ioi altd adc (ix+127) ; Error ioi altd adc (ix-128) ; Error ioi altd adc (iy) ; Error ioi altd adc (iy+127) ; Error ioi altd adc (iy-128) ; Error ioi altd adc a, (hl) ; Error ioi altd adc a, (ix) ; Error ioi altd adc a, (ix+127) ; Error ioi altd adc a, (ix-128) ; Error ioi altd adc a, (iy) ; Error ioi altd adc a, (iy+127) ; Error ioi altd adc a, (iy-128) ; Error ioi altd add (hl) ; Error ioi altd add (ix) ; Error ioi altd add (ix+127) ; Error ioi altd add (ix-128) ; Error ioi altd add (iy) ; Error ioi altd add (iy+127) ; Error ioi altd add (iy-128) ; Error ioi altd add a, (hl) ; Error ioi altd add a, (ix) ; Error ioi altd add a, (ix+127) ; Error ioi altd add a, (ix-128) ; Error ioi altd add a, (iy) ; Error ioi altd add a, (iy+127) ; Error ioi altd add a, (iy-128) ; Error ioi altd and (hl) ; Error ioi altd and (ix) ; Error ioi altd and (ix+127) ; Error ioi altd and (ix-128) ; Error ioi altd and (iy) ; Error ioi altd and (iy+127) ; Error ioi altd and (iy-128) ; Error ioi altd and a, (hl) ; Error ioi altd and a, (ix) ; Error ioi altd and a, (ix+127) ; Error ioi altd and a, (ix-128) ; Error ioi altd and a, (iy) ; Error ioi altd and a, (iy+127) ; Error ioi altd and a, (iy-128) ; Error ioi altd bit -1, (hl) ; Error ioi altd bit -1, (hl) ; Error ioi altd bit -1, (ix) ; Error ioi altd bit -1, (ix) ; Error ioi altd bit -1, (ix+127) ; Error ioi altd bit -1, (ix+127) ; Error ioi altd bit -1, (ix-128) ; Error ioi altd bit -1, (ix-128) ; Error ioi altd bit -1, (iy) ; Error ioi altd bit -1, (iy) ; Error ioi altd bit -1, (iy+127) ; Error ioi altd bit -1, (iy+127) ; Error ioi altd bit -1, (iy-128) ; Error ioi altd bit -1, (iy-128) ; Error ioi altd bit 0, (hl) ; Error ioi altd bit 0, (ix) ; Error ioi altd bit 0, (ix+127) ; Error ioi altd bit 0, (ix-128) ; Error ioi altd bit 0, (iy) ; Error ioi altd bit 0, (iy+127) ; Error ioi altd bit 0, (iy-128) ; Error ioi altd bit 1, (hl) ; Error ioi altd bit 1, (ix) ; Error ioi altd bit 1, (ix+127) ; Error ioi altd bit 1, (ix-128) ; Error ioi altd bit 1, (iy) ; Error ioi altd bit 1, (iy+127) ; Error ioi altd bit 1, (iy-128) ; Error ioi altd bit 2, (hl) ; Error ioi altd bit 2, (ix) ; Error ioi altd bit 2, (ix+127) ; Error ioi altd bit 2, (ix-128) ; Error ioi altd bit 2, (iy) ; Error ioi altd bit 2, (iy+127) ; Error ioi altd bit 2, (iy-128) ; Error ioi altd bit 3, (hl) ; Error ioi altd bit 3, (ix) ; Error ioi altd bit 3, (ix+127) ; Error ioi altd bit 3, (ix-128) ; Error ioi altd bit 3, (iy) ; Error ioi altd bit 3, (iy+127) ; Error ioi altd bit 3, (iy-128) ; Error ioi altd bit 4, (hl) ; Error ioi altd bit 4, (ix) ; Error ioi altd bit 4, (ix+127) ; Error ioi altd bit 4, (ix-128) ; Error ioi altd bit 4, (iy) ; Error ioi altd bit 4, (iy+127) ; Error ioi altd bit 4, (iy-128) ; Error ioi altd bit 5, (hl) ; Error ioi altd bit 5, (ix) ; Error ioi altd bit 5, (ix+127) ; Error ioi altd bit 5, (ix-128) ; Error ioi altd bit 5, (iy) ; Error ioi altd bit 5, (iy+127) ; Error ioi altd bit 5, (iy-128) ; Error ioi altd bit 6, (hl) ; Error ioi altd bit 6, (ix) ; Error ioi altd bit 6, (ix+127) ; Error ioi altd bit 6, (ix-128) ; Error ioi altd bit 6, (iy) ; Error ioi altd bit 6, (iy+127) ; Error ioi altd bit 6, (iy-128) ; Error ioi altd bit 7, (hl) ; Error ioi altd bit 7, (ix) ; Error ioi altd bit 7, (ix+127) ; Error ioi altd bit 7, (ix-128) ; Error ioi altd bit 7, (iy) ; Error ioi altd bit 7, (iy+127) ; Error ioi altd bit 7, (iy-128) ; Error ioi altd bit 8, (hl) ; Error ioi altd bit 8, (hl) ; Error ioi altd bit 8, (ix) ; Error ioi altd bit 8, (ix) ; Error ioi altd bit 8, (ix+127) ; Error ioi altd bit 8, (ix+127) ; Error ioi altd bit 8, (ix-128) ; Error ioi altd bit 8, (ix-128) ; Error ioi altd bit 8, (iy) ; Error ioi altd bit 8, (iy) ; Error ioi altd bit 8, (iy+127) ; Error ioi altd bit 8, (iy+127) ; Error ioi altd bit 8, (iy-128) ; Error ioi altd bit 8, (iy-128) ; Error ioi altd cp (hl) ; Error ioi altd cp (ix) ; Error ioi altd cp (ix+127) ; Error ioi altd cp (ix-128) ; Error ioi altd cp (iy) ; Error ioi altd cp (iy+127) ; Error ioi altd cp (iy-128) ; Error ioi altd cp a, (hl) ; Error ioi altd cp a, (ix) ; Error ioi altd cp a, (ix+127) ; Error ioi altd cp a, (ix-128) ; Error ioi altd cp a, (iy) ; Error ioi altd cp a, (iy+127) ; Error ioi altd cp a, (iy-128) ; Error ioi altd dec (hl) ; Error ioi altd dec (ix) ; Error ioi altd dec (ix+127) ; Error ioi altd dec (ix-128) ; Error ioi altd dec (iy) ; Error ioi altd dec (iy+127) ; Error ioi altd dec (iy-128) ; Error ioi altd inc (hl) ; Error ioi altd inc (ix) ; Error ioi altd inc (ix+127) ; Error ioi altd inc (ix-128) ; Error ioi altd inc (iy) ; Error ioi altd inc (iy+127) ; Error ioi altd inc (iy-128) ; Error ioi altd ld a, (-32768) ; Error ioi altd ld a, (32767) ; Error ioi altd ld a, (65535) ; Error ioi altd ld a, (bc) ; Error ioi altd ld a, (bc+) ; Error ioi altd ld a, (bc-) ; Error ioi altd ld a, (de) ; Error ioi altd ld a, (de+) ; Error ioi altd ld a, (de-) ; Error ioi altd ld a, (hl) ; Error ioi altd ld a, (hl+) ; Error ioi altd ld a, (hl-) ; Error ioi altd ld a, (hld) ; Error ioi altd ld a, (hli) ; Error ioi altd ld a, (ix) ; Error ioi altd ld a, (ix+127) ; Error ioi altd ld a, (ix-128) ; Error ioi altd ld a, (iy) ; Error ioi altd ld a, (iy+127) ; Error ioi altd ld a, (iy-128) ; Error ioi altd ld b, (hl) ; Error ioi altd ld b, (ix) ; Error ioi altd ld b, (ix+127) ; Error ioi altd ld b, (ix-128) ; Error ioi altd ld b, (iy) ; Error ioi altd ld b, (iy+127) ; Error ioi altd ld b, (iy-128) ; Error ioi altd ld bc, (-32768) ; Error ioi altd ld bc, (32767) ; Error ioi altd ld bc, (65535) ; Error ioi altd ld c, (hl) ; Error ioi altd ld c, (ix) ; Error ioi altd ld c, (ix+127) ; Error ioi altd ld c, (ix-128) ; Error ioi altd ld c, (iy) ; Error ioi altd ld c, (iy+127) ; Error ioi altd ld c, (iy-128) ; Error ioi altd ld d, (hl) ; Error ioi altd ld d, (ix) ; Error ioi altd ld d, (ix+127) ; Error ioi altd ld d, (ix-128) ; Error ioi altd ld d, (iy) ; Error ioi altd ld d, (iy+127) ; Error ioi altd ld d, (iy-128) ; Error ioi altd ld de, (-32768) ; Error ioi altd ld de, (32767) ; Error ioi altd ld de, (65535) ; Error ioi altd ld e, (hl) ; Error ioi altd ld e, (ix) ; Error ioi altd ld e, (ix+127) ; Error ioi altd ld e, (ix-128) ; Error ioi altd ld e, (iy) ; Error ioi altd ld e, (iy+127) ; Error ioi altd ld e, (iy-128) ; Error ioi altd ld h, (hl) ; Error ioi altd ld h, (ix) ; Error ioi altd ld h, (ix+127) ; Error ioi altd ld h, (ix-128) ; Error ioi altd ld h, (iy) ; Error ioi altd ld h, (iy+127) ; Error ioi altd ld h, (iy-128) ; Error ioi altd ld hl, (-32768) ; Error ioi altd ld hl, (32767) ; Error ioi altd ld hl, (65535) ; Error ioi altd ld hl, (hl) ; Error ioi altd ld hl, (hl+127) ; Error ioi altd ld hl, (hl-128) ; Error ioi altd ld hl, (ix) ; Error ioi altd ld hl, (ix+127) ; Error ioi altd ld hl, (ix-128) ; Error ioi altd ld hl, (iy) ; Error ioi altd ld hl, (iy+127) ; Error ioi altd ld hl, (iy-128) ; Error ioi altd ld l, (hl) ; Error ioi altd ld l, (ix) ; Error ioi altd ld l, (ix+127) ; Error ioi altd ld l, (ix-128) ; Error ioi altd ld l, (iy) ; Error ioi altd ld l, (iy+127) ; Error ioi altd ld l, (iy-128) ; Error ioi altd or (hl) ; Error ioi altd or (ix) ; Error ioi altd or (ix+127) ; Error ioi altd or (ix-128) ; Error ioi altd or (iy) ; Error ioi altd or (iy+127) ; Error ioi altd or (iy-128) ; Error ioi altd or a, (hl) ; Error ioi altd or a, (ix) ; Error ioi altd or a, (ix+127) ; Error ioi altd or a, (ix-128) ; Error ioi altd or a, (iy) ; Error ioi altd or a, (iy+127) ; Error ioi altd or a, (iy-128) ; Error ioi altd rl (hl) ; Error ioi altd rl (ix) ; Error ioi altd rl (ix+127) ; Error ioi altd rl (ix-128) ; Error ioi altd rl (iy) ; Error ioi altd rl (iy+127) ; Error ioi altd rl (iy-128) ; Error ioi altd rlc (hl) ; Error ioi altd rlc (ix) ; Error ioi altd rlc (ix+127) ; Error ioi altd rlc (ix-128) ; Error ioi altd rlc (iy) ; Error ioi altd rlc (iy+127) ; Error ioi altd rlc (iy-128) ; Error ioi altd rr (hl) ; Error ioi altd rr (ix) ; Error ioi altd rr (ix+127) ; Error ioi altd rr (ix-128) ; Error ioi altd rr (iy) ; Error ioi altd rr (iy+127) ; Error ioi altd rr (iy-128) ; Error ioi altd rrc (hl) ; Error ioi altd rrc (ix) ; Error ioi altd rrc (ix+127) ; Error ioi altd rrc (ix-128) ; Error ioi altd rrc (iy) ; Error ioi altd rrc (iy+127) ; Error ioi altd rrc (iy-128) ; Error ioi altd sbc (hl) ; Error ioi altd sbc (ix) ; Error ioi altd sbc (ix+127) ; Error ioi altd sbc (ix-128) ; Error ioi altd sbc (iy) ; Error ioi altd sbc (iy+127) ; Error ioi altd sbc (iy-128) ; Error ioi altd sbc a, (hl) ; Error ioi altd sbc a, (ix) ; Error ioi altd sbc a, (ix+127) ; Error ioi altd sbc a, (ix-128) ; Error ioi altd sbc a, (iy) ; Error ioi altd sbc a, (iy+127) ; Error ioi altd sbc a, (iy-128) ; Error ioi altd sla (hl) ; Error ioi altd sla (ix) ; Error ioi altd sla (ix+127) ; Error ioi altd sla (ix-128) ; Error ioi altd sla (iy) ; Error ioi altd sla (iy+127) ; Error ioi altd sla (iy-128) ; Error ioi altd sra (hl) ; Error ioi altd sra (ix) ; Error ioi altd sra (ix+127) ; Error ioi altd sra (ix-128) ; Error ioi altd sra (iy) ; Error ioi altd sra (iy+127) ; Error ioi altd sra (iy-128) ; Error ioi altd srl (hl) ; Error ioi altd srl (ix) ; Error ioi altd srl (ix+127) ; Error ioi altd srl (ix-128) ; Error ioi altd srl (iy) ; Error ioi altd srl (iy+127) ; Error ioi altd srl (iy-128) ; Error ioi altd sub (hl) ; Error ioi altd sub (ix) ; Error ioi altd sub (ix+127) ; Error ioi altd sub (ix-128) ; Error ioi altd sub (iy) ; Error ioi altd sub (iy+127) ; Error ioi altd sub (iy-128) ; Error ioi altd sub a, (hl) ; Error ioi altd sub a, (ix) ; Error ioi altd sub a, (ix+127) ; Error ioi altd sub a, (ix-128) ; Error ioi altd sub a, (iy) ; Error ioi altd sub a, (iy+127) ; Error ioi altd sub a, (iy-128) ; Error ioi altd xor (hl) ; Error ioi altd xor (ix) ; Error ioi altd xor (ix+127) ; Error ioi altd xor (ix-128) ; Error ioi altd xor (iy) ; Error ioi altd xor (iy+127) ; Error ioi altd xor (iy-128) ; Error ioi altd xor a, (hl) ; Error ioi altd xor a, (ix) ; Error ioi altd xor a, (ix+127) ; Error ioi altd xor a, (ix-128) ; Error ioi altd xor a, (iy) ; Error ioi altd xor a, (iy+127) ; Error ioi altd xor a, (iy-128) ; Error ioi and (hl) ; Error ioi and (ix) ; Error ioi and (ix+127) ; Error ioi and (ix-128) ; Error ioi and (iy) ; Error ioi and (iy+127) ; Error ioi and (iy-128) ; Error ioi and a', (hl) ; Error ioi and a', (ix) ; Error ioi and a', (ix+127) ; Error ioi and a', (ix-128) ; Error ioi and a', (iy) ; Error ioi and a', (iy+127) ; Error ioi and a', (iy-128) ; Error ioi and a, (hl) ; Error ioi and a, (ix) ; Error ioi and a, (ix+127) ; Error ioi and a, (ix-128) ; Error ioi and a, (iy) ; Error ioi and a, (iy+127) ; Error ioi and a, (iy-128) ; Error ioi bit -1, (hl) ; Error ioi bit -1, (hl) ; Error ioi bit -1, (ix) ; Error ioi bit -1, (ix) ; Error ioi bit -1, (ix+127) ; Error ioi bit -1, (ix+127) ; Error ioi bit -1, (ix-128) ; Error ioi bit -1, (ix-128) ; Error ioi bit -1, (iy) ; Error ioi bit -1, (iy) ; Error ioi bit -1, (iy+127) ; Error ioi bit -1, (iy+127) ; Error ioi bit -1, (iy-128) ; Error ioi bit -1, (iy-128) ; Error ioi bit 0, (hl) ; Error ioi bit 0, (ix) ; Error ioi bit 0, (ix+127) ; Error ioi bit 0, (ix-128) ; Error ioi bit 0, (iy) ; Error ioi bit 0, (iy+127) ; Error ioi bit 0, (iy-128) ; Error ioi bit 1, (hl) ; Error ioi bit 1, (ix) ; Error ioi bit 1, (ix+127) ; Error ioi bit 1, (ix-128) ; Error ioi bit 1, (iy) ; Error ioi bit 1, (iy+127) ; Error ioi bit 1, (iy-128) ; Error ioi bit 2, (hl) ; Error ioi bit 2, (ix) ; Error ioi bit 2, (ix+127) ; Error ioi bit 2, (ix-128) ; Error ioi bit 2, (iy) ; Error ioi bit 2, (iy+127) ; Error ioi bit 2, (iy-128) ; Error ioi bit 3, (hl) ; Error ioi bit 3, (ix) ; Error ioi bit 3, (ix+127) ; Error ioi bit 3, (ix-128) ; Error ioi bit 3, (iy) ; Error ioi bit 3, (iy+127) ; Error ioi bit 3, (iy-128) ; Error ioi bit 4, (hl) ; Error ioi bit 4, (ix) ; Error ioi bit 4, (ix+127) ; Error ioi bit 4, (ix-128) ; Error ioi bit 4, (iy) ; Error ioi bit 4, (iy+127) ; Error ioi bit 4, (iy-128) ; Error ioi bit 5, (hl) ; Error ioi bit 5, (ix) ; Error ioi bit 5, (ix+127) ; Error ioi bit 5, (ix-128) ; Error ioi bit 5, (iy) ; Error ioi bit 5, (iy+127) ; Error ioi bit 5, (iy-128) ; Error ioi bit 6, (hl) ; Error ioi bit 6, (ix) ; Error ioi bit 6, (ix+127) ; Error ioi bit 6, (ix-128) ; Error ioi bit 6, (iy) ; Error ioi bit 6, (iy+127) ; Error ioi bit 6, (iy-128) ; Error ioi bit 7, (hl) ; Error ioi bit 7, (ix) ; Error ioi bit 7, (ix+127) ; Error ioi bit 7, (ix-128) ; Error ioi bit 7, (iy) ; Error ioi bit 7, (iy+127) ; Error ioi bit 7, (iy-128) ; Error ioi bit 8, (hl) ; Error ioi bit 8, (hl) ; Error ioi bit 8, (ix) ; Error ioi bit 8, (ix) ; Error ioi bit 8, (ix+127) ; Error ioi bit 8, (ix+127) ; Error ioi bit 8, (ix-128) ; Error ioi bit 8, (ix-128) ; Error ioi bit 8, (iy) ; Error ioi bit 8, (iy) ; Error ioi bit 8, (iy+127) ; Error ioi bit 8, (iy+127) ; Error ioi bit 8, (iy-128) ; Error ioi bit 8, (iy-128) ; Error ioi bit.a -1, (hl) ; Error ioi bit.a -1, (hl) ; Error ioi bit.a -1, (ix) ; Error ioi bit.a -1, (ix) ; Error ioi bit.a -1, (ix+127) ; Error ioi bit.a -1, (ix+127) ; Error ioi bit.a -1, (ix-128) ; Error ioi bit.a -1, (ix-128) ; Error ioi bit.a -1, (iy) ; Error ioi bit.a -1, (iy) ; Error ioi bit.a -1, (iy+127) ; Error ioi bit.a -1, (iy+127) ; Error ioi bit.a -1, (iy-128) ; Error ioi bit.a -1, (iy-128) ; Error ioi bit.a 0, (hl) ; Error ioi bit.a 0, (ix) ; Error ioi bit.a 0, (ix+127) ; Error ioi bit.a 0, (ix-128) ; Error ioi bit.a 0, (iy) ; Error ioi bit.a 0, (iy+127) ; Error ioi bit.a 0, (iy-128) ; Error ioi bit.a 1, (hl) ; Error ioi bit.a 1, (ix) ; Error ioi bit.a 1, (ix+127) ; Error ioi bit.a 1, (ix-128) ; Error ioi bit.a 1, (iy) ; Error ioi bit.a 1, (iy+127) ; Error ioi bit.a 1, (iy-128) ; Error ioi bit.a 2, (hl) ; Error ioi bit.a 2, (ix) ; Error ioi bit.a 2, (ix+127) ; Error ioi bit.a 2, (ix-128) ; Error ioi bit.a 2, (iy) ; Error ioi bit.a 2, (iy+127) ; Error ioi bit.a 2, (iy-128) ; Error ioi bit.a 3, (hl) ; Error ioi bit.a 3, (ix) ; Error ioi bit.a 3, (ix+127) ; Error ioi bit.a 3, (ix-128) ; Error ioi bit.a 3, (iy) ; Error ioi bit.a 3, (iy+127) ; Error ioi bit.a 3, (iy-128) ; Error ioi bit.a 4, (hl) ; Error ioi bit.a 4, (ix) ; Error ioi bit.a 4, (ix+127) ; Error ioi bit.a 4, (ix-128) ; Error ioi bit.a 4, (iy) ; Error ioi bit.a 4, (iy+127) ; Error ioi bit.a 4, (iy-128) ; Error ioi bit.a 5, (hl) ; Error ioi bit.a 5, (ix) ; Error ioi bit.a 5, (ix+127) ; Error ioi bit.a 5, (ix-128) ; Error ioi bit.a 5, (iy) ; Error ioi bit.a 5, (iy+127) ; Error ioi bit.a 5, (iy-128) ; Error ioi bit.a 6, (hl) ; Error ioi bit.a 6, (ix) ; Error ioi bit.a 6, (ix+127) ; Error ioi bit.a 6, (ix-128) ; Error ioi bit.a 6, (iy) ; Error ioi bit.a 6, (iy+127) ; Error ioi bit.a 6, (iy-128) ; Error ioi bit.a 7, (hl) ; Error ioi bit.a 7, (ix) ; Error ioi bit.a 7, (ix+127) ; Error ioi bit.a 7, (ix-128) ; Error ioi bit.a 7, (iy) ; Error ioi bit.a 7, (iy+127) ; Error ioi bit.a 7, (iy-128) ; Error ioi bit.a 8, (hl) ; Error ioi bit.a 8, (hl) ; Error ioi bit.a 8, (ix) ; Error ioi bit.a 8, (ix) ; Error ioi bit.a 8, (ix+127) ; Error ioi bit.a 8, (ix+127) ; Error ioi bit.a 8, (ix-128) ; Error ioi bit.a 8, (ix-128) ; Error ioi bit.a 8, (iy) ; Error ioi bit.a 8, (iy) ; Error ioi bit.a 8, (iy+127) ; Error ioi bit.a 8, (iy+127) ; Error ioi bit.a 8, (iy-128) ; Error ioi bit.a 8, (iy-128) ; Error ioi cmp (hl) ; Error ioi cmp (ix) ; Error ioi cmp (ix+127) ; Error ioi cmp (ix-128) ; Error ioi cmp (iy) ; Error ioi cmp (iy+127) ; Error ioi cmp (iy-128) ; Error ioi cmp a, (hl) ; Error ioi cmp a, (ix) ; Error ioi cmp a, (ix+127) ; Error ioi cmp a, (ix-128) ; Error ioi cmp a, (iy) ; Error ioi cmp a, (iy+127) ; Error ioi cmp a, (iy-128) ; Error ioi cp (hl) ; Error ioi cp (ix) ; Error ioi cp (ix+127) ; Error ioi cp (ix-128) ; Error ioi cp (iy) ; Error ioi cp (iy+127) ; Error ioi cp (iy-128) ; Error ioi cp a, (hl) ; Error ioi cp a, (ix) ; Error ioi cp a, (ix+127) ; Error ioi cp a, (ix-128) ; Error ioi cp a, (iy) ; Error ioi cp a, (iy+127) ; Error ioi cp a, (iy-128) ; Error ioi dec (hl) ; Error ioi dec (ix) ; Error ioi dec (ix+127) ; Error ioi dec (ix-128) ; Error ioi dec (iy) ; Error ioi dec (iy+127) ; Error ioi dec (iy-128) ; Error ioi inc (hl) ; Error ioi inc (ix) ; Error ioi inc (ix+127) ; Error ioi inc (ix-128) ; Error ioi inc (iy) ; Error ioi inc (iy+127) ; Error ioi inc (iy-128) ; Error ioi ld (-32768), a ; Error ioi ld (-32768), bc ; Error ioi ld (-32768), de ; Error ioi ld (-32768), hl ; Error ioi ld (-32768), ix ; Error ioi ld (-32768), iy ; Error ioi ld (-32768), sp ; Error ioi ld (32767), a ; Error ioi ld (32767), bc ; Error ioi ld (32767), de ; Error ioi ld (32767), hl ; Error ioi ld (32767), ix ; Error ioi ld (32767), iy ; Error ioi ld (32767), sp ; Error ioi ld (65535), a ; Error ioi ld (65535), bc ; Error ioi ld (65535), de ; Error ioi ld (65535), hl ; Error ioi ld (65535), ix ; Error ioi ld (65535), iy ; Error ioi ld (65535), sp ; Error ioi ld (bc), a ; Error ioi ld (bc+), a ; Error ioi ld (bc-), a ; Error ioi ld (de), a ; Error ioi ld (de+), a ; Error ioi ld (de-), a ; Error ioi ld (hl), -128 ; Error ioi ld (hl), 127 ; Error ioi ld (hl), 255 ; Error ioi ld (hl), a ; Error ioi ld (hl), b ; Error ioi ld (hl), c ; Error ioi ld (hl), d ; Error ioi ld (hl), e ; Error ioi ld (hl), h ; Error ioi ld (hl), hl ; Error ioi ld (hl), l ; Error ioi ld (hl+), a ; Error ioi ld (hl+127), hl ; Error ioi ld (hl-), a ; Error ioi ld (hl-128), hl ; Error ioi ld (hld), a ; Error ioi ld (hli), a ; Error ioi ld (ix), -128 ; Error ioi ld (ix), 127 ; Error ioi ld (ix), 255 ; Error ioi ld (ix), a ; Error ioi ld (ix), b ; Error ioi ld (ix), c ; Error ioi ld (ix), d ; Error ioi ld (ix), e ; Error ioi ld (ix), h ; Error ioi ld (ix), hl ; Error ioi ld (ix), l ; Error ioi ld (ix+127), -128 ; Error ioi ld (ix+127), 127 ; Error ioi ld (ix+127), 255 ; Error ioi ld (ix+127), a ; Error ioi ld (ix+127), b ; Error ioi ld (ix+127), c ; Error ioi ld (ix+127), d ; Error ioi ld (ix+127), e ; Error ioi ld (ix+127), h ; Error ioi ld (ix+127), hl ; Error ioi ld (ix+127), l ; Error ioi ld (ix-128), -128 ; Error ioi ld (ix-128), 127 ; Error ioi ld (ix-128), 255 ; Error ioi ld (ix-128), a ; Error ioi ld (ix-128), b ; Error ioi ld (ix-128), c ; Error ioi ld (ix-128), d ; Error ioi ld (ix-128), e ; Error ioi ld (ix-128), h ; Error ioi ld (ix-128), hl ; Error ioi ld (ix-128), l ; Error ioi ld (iy), -128 ; Error ioi ld (iy), 127 ; Error ioi ld (iy), 255 ; Error ioi ld (iy), a ; Error ioi ld (iy), b ; Error ioi ld (iy), c ; Error ioi ld (iy), d ; Error ioi ld (iy), e ; Error ioi ld (iy), h ; Error ioi ld (iy), hl ; Error ioi ld (iy), l ; Error ioi ld (iy+127), -128 ; Error ioi ld (iy+127), 127 ; Error ioi ld (iy+127), 255 ; Error ioi ld (iy+127), a ; Error ioi ld (iy+127), b ; Error ioi ld (iy+127), c ; Error ioi ld (iy+127), d ; Error ioi ld (iy+127), e ; Error ioi ld (iy+127), h ; Error ioi ld (iy+127), hl ; Error ioi ld (iy+127), l ; Error ioi ld (iy-128), -128 ; Error ioi ld (iy-128), 127 ; Error ioi ld (iy-128), 255 ; Error ioi ld (iy-128), a ; Error ioi ld (iy-128), b ; Error ioi ld (iy-128), c ; Error ioi ld (iy-128), d ; Error ioi ld (iy-128), e ; Error ioi ld (iy-128), h ; Error ioi ld (iy-128), hl ; Error ioi ld (iy-128), l ; Error ioi ld a', (-32768) ; Error ioi ld a', (32767) ; Error ioi ld a', (65535) ; Error ioi ld a', (bc) ; Error ioi ld a', (bc+) ; Error ioi ld a', (bc-) ; Error ioi ld a', (de) ; Error ioi ld a', (de+) ; Error ioi ld a', (de-) ; Error ioi ld a', (hl) ; Error ioi ld a', (hl+) ; Error ioi ld a', (hl-) ; Error ioi ld a', (hld) ; Error ioi ld a', (hli) ; Error ioi ld a', (ix) ; Error ioi ld a', (ix+127) ; Error ioi ld a', (ix-128) ; Error ioi ld a', (iy) ; Error ioi ld a', (iy+127) ; Error ioi ld a', (iy-128) ; Error ioi ld a, (-32768) ; Error ioi ld a, (32767) ; Error ioi ld a, (65535) ; Error ioi ld a, (bc) ; Error ioi ld a, (bc+) ; Error ioi ld a, (bc-) ; Error ioi ld a, (de) ; Error ioi ld a, (de+) ; Error ioi ld a, (de-) ; Error ioi ld a, (hl) ; Error ioi ld a, (hl+) ; Error ioi ld a, (hl-) ; Error ioi ld a, (hld) ; Error ioi ld a, (hli) ; Error ioi ld a, (ix) ; Error ioi ld a, (ix+127) ; Error ioi ld a, (ix-128) ; Error ioi ld a, (iy) ; Error ioi ld a, (iy+127) ; Error ioi ld a, (iy-128) ; Error ioi ld b', (hl) ; Error ioi ld b', (ix) ; Error ioi ld b', (ix+127) ; Error ioi ld b', (ix-128) ; Error ioi ld b', (iy) ; Error ioi ld b', (iy+127) ; Error ioi ld b', (iy-128) ; Error ioi ld b, (hl) ; Error ioi ld b, (ix) ; Error ioi ld b, (ix+127) ; Error ioi ld b, (ix-128) ; Error ioi ld b, (iy) ; Error ioi ld b, (iy+127) ; Error ioi ld b, (iy-128) ; Error ioi ld bc', (-32768) ; Error ioi ld bc', (32767) ; Error ioi ld bc', (65535) ; Error ioi ld bc, (-32768) ; Error ioi ld bc, (32767) ; Error ioi ld bc, (65535) ; Error ioi ld c', (hl) ; Error ioi ld c', (ix) ; Error ioi ld c', (ix+127) ; Error ioi ld c', (ix-128) ; Error ioi ld c', (iy) ; Error ioi ld c', (iy+127) ; Error ioi ld c', (iy-128) ; Error ioi ld c, (hl) ; Error ioi ld c, (ix) ; Error ioi ld c, (ix+127) ; Error ioi ld c, (ix-128) ; Error ioi ld c, (iy) ; Error ioi ld c, (iy+127) ; Error ioi ld c, (iy-128) ; Error ioi ld d', (hl) ; Error ioi ld d', (ix) ; Error ioi ld d', (ix+127) ; Error ioi ld d', (ix-128) ; Error ioi ld d', (iy) ; Error ioi ld d', (iy+127) ; Error ioi ld d', (iy-128) ; Error ioi ld d, (hl) ; Error ioi ld d, (ix) ; Error ioi ld d, (ix+127) ; Error ioi ld d, (ix-128) ; Error ioi ld d, (iy) ; Error ioi ld d, (iy+127) ; Error ioi ld d, (iy-128) ; Error ioi ld de', (-32768) ; Error ioi ld de', (32767) ; Error ioi ld de', (65535) ; Error ioi ld de, (-32768) ; Error ioi ld de, (32767) ; Error ioi ld de, (65535) ; Error ioi ld e', (hl) ; Error ioi ld e', (ix) ; Error ioi ld e', (ix+127) ; Error ioi ld e', (ix-128) ; Error ioi ld e', (iy) ; Error ioi ld e', (iy+127) ; Error ioi ld e', (iy-128) ; Error ioi ld e, (hl) ; Error ioi ld e, (ix) ; Error ioi ld e, (ix+127) ; Error ioi ld e, (ix-128) ; Error ioi ld e, (iy) ; Error ioi ld e, (iy+127) ; Error ioi ld e, (iy-128) ; Error ioi ld h', (hl) ; Error ioi ld h', (ix) ; Error ioi ld h', (ix+127) ; Error ioi ld h', (ix-128) ; Error ioi ld h', (iy) ; Error ioi ld h', (iy+127) ; Error ioi ld h', (iy-128) ; Error ioi ld h, (hl) ; Error ioi ld h, (ix) ; Error ioi ld h, (ix+127) ; Error ioi ld h, (ix-128) ; Error ioi ld h, (iy) ; Error ioi ld h, (iy+127) ; Error ioi ld h, (iy-128) ; Error ioi ld hl', (-32768) ; Error ioi ld hl', (32767) ; Error ioi ld hl', (65535) ; Error ioi ld hl', (hl) ; Error ioi ld hl', (hl+127) ; Error ioi ld hl', (hl-128) ; Error ioi ld hl', (ix) ; Error ioi ld hl', (ix+127) ; Error ioi ld hl', (ix-128) ; Error ioi ld hl', (iy) ; Error ioi ld hl', (iy+127) ; Error ioi ld hl', (iy-128) ; Error ioi ld hl, (-32768) ; Error ioi ld hl, (32767) ; Error ioi ld hl, (65535) ; Error ioi ld hl, (hl) ; Error ioi ld hl, (hl+127) ; Error ioi ld hl, (hl-128) ; Error ioi ld hl, (ix) ; Error ioi ld hl, (ix+127) ; Error ioi ld hl, (ix-128) ; Error ioi ld hl, (iy) ; Error ioi ld hl, (iy+127) ; Error ioi ld hl, (iy-128) ; Error ioi ld ix, (-32768) ; Error ioi ld ix, (32767) ; Error ioi ld ix, (65535) ; Error ioi ld iy, (-32768) ; Error ioi ld iy, (32767) ; Error ioi ld iy, (65535) ; Error ioi ld l', (hl) ; Error ioi ld l', (ix) ; Error ioi ld l', (ix+127) ; Error ioi ld l', (ix-128) ; Error ioi ld l', (iy) ; Error ioi ld l', (iy+127) ; Error ioi ld l', (iy-128) ; Error ioi ld l, (hl) ; Error ioi ld l, (ix) ; Error ioi ld l, (ix+127) ; Error ioi ld l, (ix-128) ; Error ioi ld l, (iy) ; Error ioi ld l, (iy+127) ; Error ioi ld l, (iy-128) ; Error ioi ld sp, (-32768) ; Error ioi ld sp, (32767) ; Error ioi ld sp, (65535) ; Error ioi ldd ; Error ioi ldd (bc), a ; Error ioi ldd (de), a ; Error ioi ldd (hl), a ; Error ioi ldd a, (bc) ; Error ioi ldd a, (de) ; Error ioi ldd a, (hl) ; Error ioi lddr ; Error ioi lddsr ; Error ioi ldi ; Error ioi ldi (bc), a ; Error ioi ldi (de), a ; Error ioi ldi (hl), a ; Error ioi ldi a, (bc) ; Error ioi ldi a, (de) ; Error ioi ldi a, (hl) ; Error ioi ldir ; Error ioi ldisr ; Error ioi lsddr ; Error ioi lsdr ; Error ioi lsidr ; Error ioi lsir ; Error ioi or (hl) ; Error ioi or (ix) ; Error ioi or (ix+127) ; Error ioi or (ix-128) ; Error ioi or (iy) ; Error ioi or (iy+127) ; Error ioi or (iy-128) ; Error ioi or a', (hl) ; Error ioi or a', (ix) ; Error ioi or a', (ix+127) ; Error ioi or a', (ix-128) ; Error ioi or a', (iy) ; Error ioi or a', (iy+127) ; Error ioi or a', (iy-128) ; Error ioi or a, (hl) ; Error ioi or a, (ix) ; Error ioi or a, (ix+127) ; Error ioi or a, (ix-128) ; Error ioi or a, (iy) ; Error ioi or a, (iy+127) ; Error ioi or a, (iy-128) ; Error ioi res -1, (hl) ; Error ioi res -1, (hl) ; Error ioi res -1, (ix) ; Error ioi res -1, (ix) ; Error ioi res -1, (ix+127) ; Error ioi res -1, (ix+127) ; Error ioi res -1, (ix-128) ; Error ioi res -1, (ix-128) ; Error ioi res -1, (iy) ; Error ioi res -1, (iy) ; Error ioi res -1, (iy+127) ; Error ioi res -1, (iy+127) ; Error ioi res -1, (iy-128) ; Error ioi res -1, (iy-128) ; Error ioi res 0, (hl) ; Error ioi res 0, (ix) ; Error ioi res 0, (ix+127) ; Error ioi res 0, (ix-128) ; Error ioi res 0, (iy) ; Error ioi res 0, (iy+127) ; Error ioi res 0, (iy-128) ; Error ioi res 1, (hl) ; Error ioi res 1, (ix) ; Error ioi res 1, (ix+127) ; Error ioi res 1, (ix-128) ; Error ioi res 1, (iy) ; Error ioi res 1, (iy+127) ; Error ioi res 1, (iy-128) ; Error ioi res 2, (hl) ; Error ioi res 2, (ix) ; Error ioi res 2, (ix+127) ; Error ioi res 2, (ix-128) ; Error ioi res 2, (iy) ; Error ioi res 2, (iy+127) ; Error ioi res 2, (iy-128) ; Error ioi res 3, (hl) ; Error ioi res 3, (ix) ; Error ioi res 3, (ix+127) ; Error ioi res 3, (ix-128) ; Error ioi res 3, (iy) ; Error ioi res 3, (iy+127) ; Error ioi res 3, (iy-128) ; Error ioi res 4, (hl) ; Error ioi res 4, (ix) ; Error ioi res 4, (ix+127) ; Error ioi res 4, (ix-128) ; Error ioi res 4, (iy) ; Error ioi res 4, (iy+127) ; Error ioi res 4, (iy-128) ; Error ioi res 5, (hl) ; Error ioi res 5, (ix) ; Error ioi res 5, (ix+127) ; Error ioi res 5, (ix-128) ; Error ioi res 5, (iy) ; Error ioi res 5, (iy+127) ; Error ioi res 5, (iy-128) ; Error ioi res 6, (hl) ; Error ioi res 6, (ix) ; Error ioi res 6, (ix+127) ; Error ioi res 6, (ix-128) ; Error ioi res 6, (iy) ; Error ioi res 6, (iy+127) ; Error ioi res 6, (iy-128) ; Error ioi res 7, (hl) ; Error ioi res 7, (ix) ; Error ioi res 7, (ix+127) ; Error ioi res 7, (ix-128) ; Error ioi res 7, (iy) ; Error ioi res 7, (iy+127) ; Error ioi res 7, (iy-128) ; Error ioi res 8, (hl) ; Error ioi res 8, (hl) ; Error ioi res 8, (ix) ; Error ioi res 8, (ix) ; Error ioi res 8, (ix+127) ; Error ioi res 8, (ix+127) ; Error ioi res 8, (ix-128) ; Error ioi res 8, (ix-128) ; Error ioi res 8, (iy) ; Error ioi res 8, (iy) ; Error ioi res 8, (iy+127) ; Error ioi res 8, (iy+127) ; Error ioi res 8, (iy-128) ; Error ioi res 8, (iy-128) ; Error ioi res.a -1, (hl) ; Error ioi res.a -1, (hl) ; Error ioi res.a -1, (ix) ; Error ioi res.a -1, (ix) ; Error ioi res.a -1, (ix+127) ; Error ioi res.a -1, (ix+127) ; Error ioi res.a -1, (ix-128) ; Error ioi res.a -1, (ix-128) ; Error ioi res.a -1, (iy) ; Error ioi res.a -1, (iy) ; Error ioi res.a -1, (iy+127) ; Error ioi res.a -1, (iy+127) ; Error ioi res.a -1, (iy-128) ; Error ioi res.a -1, (iy-128) ; Error ioi res.a 0, (hl) ; Error ioi res.a 0, (ix) ; Error ioi res.a 0, (ix+127) ; Error ioi res.a 0, (ix-128) ; Error ioi res.a 0, (iy) ; Error ioi res.a 0, (iy+127) ; Error ioi res.a 0, (iy-128) ; Error ioi res.a 1, (hl) ; Error ioi res.a 1, (ix) ; Error ioi res.a 1, (ix+127) ; Error ioi res.a 1, (ix-128) ; Error ioi res.a 1, (iy) ; Error ioi res.a 1, (iy+127) ; Error ioi res.a 1, (iy-128) ; Error ioi res.a 2, (hl) ; Error ioi res.a 2, (ix) ; Error ioi res.a 2, (ix+127) ; Error ioi res.a 2, (ix-128) ; Error ioi res.a 2, (iy) ; Error ioi res.a 2, (iy+127) ; Error ioi res.a 2, (iy-128) ; Error ioi res.a 3, (hl) ; Error ioi res.a 3, (ix) ; Error ioi res.a 3, (ix+127) ; Error ioi res.a 3, (ix-128) ; Error ioi res.a 3, (iy) ; Error ioi res.a 3, (iy+127) ; Error ioi res.a 3, (iy-128) ; Error ioi res.a 4, (hl) ; Error ioi res.a 4, (ix) ; Error ioi res.a 4, (ix+127) ; Error ioi res.a 4, (ix-128) ; Error ioi res.a 4, (iy) ; Error ioi res.a 4, (iy+127) ; Error ioi res.a 4, (iy-128) ; Error ioi res.a 5, (hl) ; Error ioi res.a 5, (ix) ; Error ioi res.a 5, (ix+127) ; Error ioi res.a 5, (ix-128) ; Error ioi res.a 5, (iy) ; Error ioi res.a 5, (iy+127) ; Error ioi res.a 5, (iy-128) ; Error ioi res.a 6, (hl) ; Error ioi res.a 6, (ix) ; Error ioi res.a 6, (ix+127) ; Error ioi res.a 6, (ix-128) ; Error ioi res.a 6, (iy) ; Error ioi res.a 6, (iy+127) ; Error ioi res.a 6, (iy-128) ; Error ioi res.a 7, (hl) ; Error ioi res.a 7, (ix) ; Error ioi res.a 7, (ix+127) ; Error ioi res.a 7, (ix-128) ; Error ioi res.a 7, (iy) ; Error ioi res.a 7, (iy+127) ; Error ioi res.a 7, (iy-128) ; Error ioi res.a 8, (hl) ; Error ioi res.a 8, (hl) ; Error ioi res.a 8, (ix) ; Error ioi res.a 8, (ix) ; Error ioi res.a 8, (ix+127) ; Error ioi res.a 8, (ix+127) ; Error ioi res.a 8, (ix-128) ; Error ioi res.a 8, (ix-128) ; Error ioi res.a 8, (iy) ; Error ioi res.a 8, (iy) ; Error ioi res.a 8, (iy+127) ; Error ioi res.a 8, (iy+127) ; Error ioi res.a 8, (iy-128) ; Error ioi res.a 8, (iy-128) ; Error ioi rl (hl) ; Error ioi rl (ix) ; Error ioi rl (ix+127) ; Error ioi rl (ix-128) ; Error ioi rl (iy) ; Error ioi rl (iy+127) ; Error ioi rl (iy-128) ; Error ioi rlc (hl) ; Error ioi rlc (ix) ; Error ioi rlc (ix+127) ; Error ioi rlc (ix-128) ; Error ioi rlc (iy) ; Error ioi rlc (iy+127) ; Error ioi rlc (iy-128) ; Error ioi rr (hl) ; Error ioi rr (ix) ; Error ioi rr (ix+127) ; Error ioi rr (ix-128) ; Error ioi rr (iy) ; Error ioi rr (iy+127) ; Error ioi rr (iy-128) ; Error ioi rrc (hl) ; Error ioi rrc (ix) ; Error ioi rrc (ix+127) ; Error ioi rrc (ix-128) ; Error ioi rrc (iy) ; Error ioi rrc (iy+127) ; Error ioi rrc (iy-128) ; Error ioi sbc (hl) ; Error ioi sbc (ix) ; Error ioi sbc (ix+127) ; Error ioi sbc (ix-128) ; Error ioi sbc (iy) ; Error ioi sbc (iy+127) ; Error ioi sbc (iy-128) ; Error ioi sbc a', (hl) ; Error ioi sbc a', (ix) ; Error ioi sbc a', (ix+127) ; Error ioi sbc a', (ix-128) ; Error ioi sbc a', (iy) ; Error ioi sbc a', (iy+127) ; Error ioi sbc a', (iy-128) ; Error ioi sbc a, (hl) ; Error ioi sbc a, (ix) ; Error ioi sbc a, (ix+127) ; Error ioi sbc a, (ix-128) ; Error ioi sbc a, (iy) ; Error ioi sbc a, (iy+127) ; Error ioi sbc a, (iy-128) ; Error ioi set -1, (hl) ; Error ioi set -1, (hl) ; Error ioi set -1, (ix) ; Error ioi set -1, (ix) ; Error ioi set -1, (ix+127) ; Error ioi set -1, (ix+127) ; Error ioi set -1, (ix-128) ; Error ioi set -1, (ix-128) ; Error ioi set -1, (iy) ; Error ioi set -1, (iy) ; Error ioi set -1, (iy+127) ; Error ioi set -1, (iy+127) ; Error ioi set -1, (iy-128) ; Error ioi set -1, (iy-128) ; Error ioi set 0, (hl) ; Error ioi set 0, (ix) ; Error ioi set 0, (ix+127) ; Error ioi set 0, (ix-128) ; Error ioi set 0, (iy) ; Error ioi set 0, (iy+127) ; Error ioi set 0, (iy-128) ; Error ioi set 1, (hl) ; Error ioi set 1, (ix) ; Error ioi set 1, (ix+127) ; Error ioi set 1, (ix-128) ; Error ioi set 1, (iy) ; Error ioi set 1, (iy+127) ; Error ioi set 1, (iy-128) ; Error ioi set 2, (hl) ; Error ioi set 2, (ix) ; Error ioi set 2, (ix+127) ; Error ioi set 2, (ix-128) ; Error ioi set 2, (iy) ; Error ioi set 2, (iy+127) ; Error ioi set 2, (iy-128) ; Error ioi set 3, (hl) ; Error ioi set 3, (ix) ; Error ioi set 3, (ix+127) ; Error ioi set 3, (ix-128) ; Error ioi set 3, (iy) ; Error ioi set 3, (iy+127) ; Error ioi set 3, (iy-128) ; Error ioi set 4, (hl) ; Error ioi set 4, (ix) ; Error ioi set 4, (ix+127) ; Error ioi set 4, (ix-128) ; Error ioi set 4, (iy) ; Error ioi set 4, (iy+127) ; Error ioi set 4, (iy-128) ; Error ioi set 5, (hl) ; Error ioi set 5, (ix) ; Error ioi set 5, (ix+127) ; Error ioi set 5, (ix-128) ; Error ioi set 5, (iy) ; Error ioi set 5, (iy+127) ; Error ioi set 5, (iy-128) ; Error ioi set 6, (hl) ; Error ioi set 6, (ix) ; Error ioi set 6, (ix+127) ; Error ioi set 6, (ix-128) ; Error ioi set 6, (iy) ; Error ioi set 6, (iy+127) ; Error ioi set 6, (iy-128) ; Error ioi set 7, (hl) ; Error ioi set 7, (ix) ; Error ioi set 7, (ix+127) ; Error ioi set 7, (ix-128) ; Error ioi set 7, (iy) ; Error ioi set 7, (iy+127) ; Error ioi set 7, (iy-128) ; Error ioi set 8, (hl) ; Error ioi set 8, (hl) ; Error ioi set 8, (ix) ; Error ioi set 8, (ix) ; Error ioi set 8, (ix+127) ; Error ioi set 8, (ix+127) ; Error ioi set 8, (ix-128) ; Error ioi set 8, (ix-128) ; Error ioi set 8, (iy) ; Error ioi set 8, (iy) ; Error ioi set 8, (iy+127) ; Error ioi set 8, (iy+127) ; Error ioi set 8, (iy-128) ; Error ioi set 8, (iy-128) ; Error ioi set.a -1, (hl) ; Error ioi set.a -1, (hl) ; Error ioi set.a -1, (ix) ; Error ioi set.a -1, (ix) ; Error ioi set.a -1, (ix+127) ; Error ioi set.a -1, (ix+127) ; Error ioi set.a -1, (ix-128) ; Error ioi set.a -1, (ix-128) ; Error ioi set.a -1, (iy) ; Error ioi set.a -1, (iy) ; Error ioi set.a -1, (iy+127) ; Error ioi set.a -1, (iy+127) ; Error ioi set.a -1, (iy-128) ; Error ioi set.a -1, (iy-128) ; Error ioi set.a 0, (hl) ; Error ioi set.a 0, (ix) ; Error ioi set.a 0, (ix+127) ; Error ioi set.a 0, (ix-128) ; Error ioi set.a 0, (iy) ; Error ioi set.a 0, (iy+127) ; Error ioi set.a 0, (iy-128) ; Error ioi set.a 1, (hl) ; Error ioi set.a 1, (ix) ; Error ioi set.a 1, (ix+127) ; Error ioi set.a 1, (ix-128) ; Error ioi set.a 1, (iy) ; Error ioi set.a 1, (iy+127) ; Error ioi set.a 1, (iy-128) ; Error ioi set.a 2, (hl) ; Error ioi set.a 2, (ix) ; Error ioi set.a 2, (ix+127) ; Error ioi set.a 2, (ix-128) ; Error ioi set.a 2, (iy) ; Error ioi set.a 2, (iy+127) ; Error ioi set.a 2, (iy-128) ; Error ioi set.a 3, (hl) ; Error ioi set.a 3, (ix) ; Error ioi set.a 3, (ix+127) ; Error ioi set.a 3, (ix-128) ; Error ioi set.a 3, (iy) ; Error ioi set.a 3, (iy+127) ; Error ioi set.a 3, (iy-128) ; Error ioi set.a 4, (hl) ; Error ioi set.a 4, (ix) ; Error ioi set.a 4, (ix+127) ; Error ioi set.a 4, (ix-128) ; Error ioi set.a 4, (iy) ; Error ioi set.a 4, (iy+127) ; Error ioi set.a 4, (iy-128) ; Error ioi set.a 5, (hl) ; Error ioi set.a 5, (ix) ; Error ioi set.a 5, (ix+127) ; Error ioi set.a 5, (ix-128) ; Error ioi set.a 5, (iy) ; Error ioi set.a 5, (iy+127) ; Error ioi set.a 5, (iy-128) ; Error ioi set.a 6, (hl) ; Error ioi set.a 6, (ix) ; Error ioi set.a 6, (ix+127) ; Error ioi set.a 6, (ix-128) ; Error ioi set.a 6, (iy) ; Error ioi set.a 6, (iy+127) ; Error ioi set.a 6, (iy-128) ; Error ioi set.a 7, (hl) ; Error ioi set.a 7, (ix) ; Error ioi set.a 7, (ix+127) ; Error ioi set.a 7, (ix-128) ; Error ioi set.a 7, (iy) ; Error ioi set.a 7, (iy+127) ; Error ioi set.a 7, (iy-128) ; Error ioi set.a 8, (hl) ; Error ioi set.a 8, (hl) ; Error ioi set.a 8, (ix) ; Error ioi set.a 8, (ix) ; Error ioi set.a 8, (ix+127) ; Error ioi set.a 8, (ix+127) ; Error ioi set.a 8, (ix-128) ; Error ioi set.a 8, (ix-128) ; Error ioi set.a 8, (iy) ; Error ioi set.a 8, (iy) ; Error ioi set.a 8, (iy+127) ; Error ioi set.a 8, (iy+127) ; Error ioi set.a 8, (iy-128) ; Error ioi set.a 8, (iy-128) ; Error ioi sla (hl) ; Error ioi sla (ix) ; Error ioi sla (ix+127) ; Error ioi sla (ix-128) ; Error ioi sla (iy) ; Error ioi sla (iy+127) ; Error ioi sla (iy-128) ; Error ioi sra (hl) ; Error ioi sra (ix) ; Error ioi sra (ix+127) ; Error ioi sra (ix-128) ; Error ioi sra (iy) ; Error ioi sra (iy+127) ; Error ioi sra (iy-128) ; Error ioi srl (hl) ; Error ioi srl (ix) ; Error ioi srl (ix+127) ; Error ioi srl (ix-128) ; Error ioi srl (iy) ; Error ioi srl (iy+127) ; Error ioi srl (iy-128) ; Error ioi sub (hl) ; Error ioi sub (ix) ; Error ioi sub (ix+127) ; Error ioi sub (ix-128) ; Error ioi sub (iy) ; Error ioi sub (iy+127) ; Error ioi sub (iy-128) ; Error ioi sub a', (hl) ; Error ioi sub a', (ix) ; Error ioi sub a', (ix+127) ; Error ioi sub a', (ix-128) ; Error ioi sub a', (iy) ; Error ioi sub a', (iy+127) ; Error ioi sub a', (iy-128) ; Error ioi sub a, (hl) ; Error ioi sub a, (ix) ; Error ioi sub a, (ix+127) ; Error ioi sub a, (ix-128) ; Error ioi sub a, (iy) ; Error ioi sub a, (iy+127) ; Error ioi sub a, (iy-128) ; Error ioi xor (hl) ; Error ioi xor (ix) ; Error ioi xor (ix+127) ; Error ioi xor (ix-128) ; Error ioi xor (iy) ; Error ioi xor (iy+127) ; Error ioi xor (iy-128) ; Error ioi xor a', (hl) ; Error ioi xor a', (ix) ; Error ioi xor a', (ix+127) ; Error ioi xor a', (ix-128) ; Error ioi xor a', (iy) ; Error ioi xor a', (iy+127) ; Error ioi xor a', (iy-128) ; Error ioi xor a, (hl) ; Error ioi xor a, (ix) ; Error ioi xor a, (ix+127) ; Error ioi xor a, (ix-128) ; Error ioi xor a, (iy) ; Error ioi xor a, (iy+127) ; Error ioi xor a, (iy-128) ; Error ipres ; Error ipset -1 ; Error ipset -1 ; Error ipset 0 ; Error ipset 1 ; Error ipset 2 ; Error ipset 3 ; Error ipset 4 ; Error ipset 4 ; Error jk -32768 ; Error jk 32767 ; Error jk 65535 ; Error jlo -32768 ; Error jlo 32767 ; Error jlo 65535 ; Error jlz -32768 ; Error jlz 32767 ; Error jlz 65535 ; Error jnk -32768 ; Error jnk 32767 ; Error jnk 65535 ; Error jnx5 -32768 ; Error jnx5 32767 ; Error jnx5 65535 ; Error jp (c) ; Error jp lo, -32768 ; Error jp lo, 32767 ; Error jp lo, 65535 ; Error jp lz, -32768 ; Error jp lz, 32767 ; Error jp lz, 65535 ; Error jx5 -32768 ; Error jx5 32767 ; Error jx5 65535 ; Error ld (c), a ; Error ld (de), hl ; Error ld (hl), hl ; Error ld (hl+127), hl ; Error ld (hl-128), hl ; Error ld (ix), hl ; Error ld (ix+127), hl ; Error ld (ix-128), hl ; Error ld (iy), hl ; Error ld (iy+127), hl ; Error ld (iy-128), hl ; Error ld (sp), hl ; Error ld (sp), ix ; Error ld (sp), iy ; Error ld (sp+0), hl ; Error ld (sp+0), ix ; Error ld (sp+0), iy ; Error ld (sp+255), hl ; Error ld (sp+255), ix ; Error ld (sp+255), iy ; Error ld a', (-32768) ; Error ld a', (32767) ; Error ld a', (65535) ; Error ld a', (bc) ; Error ld a', (bc+) ; Error ld a', (bc-) ; Error ld a', (de) ; Error ld a', (de+) ; Error ld a', (de-) ; Error ld a', (hl) ; Error ld a', (hl+) ; Error ld a', (hl-) ; Error ld a', (hld) ; Error ld a', (hli) ; Error ld a', (ix) ; Error ld a', (ix+127) ; Error ld a', (ix-128) ; Error ld a', (iy) ; Error ld a', (iy+127) ; Error ld a', (iy-128) ; Error ld a', -128 ; Error ld a', 127 ; Error ld a', 255 ; Error ld a', a ; Error ld a', b ; Error ld a', c ; Error ld a', d ; Error ld a', e ; Error ld a', eir ; Error ld a', h ; Error ld a', iir ; Error ld a', l ; Error ld a', xpc ; Error ld a, (c) ; Error ld a, eir ; Error ld a, iir ; Error ld a, xpc ; Error ld b', (hl) ; Error ld b', (ix) ; Error ld b', (ix+127) ; Error ld b', (ix-128) ; Error ld b', (iy) ; Error ld b', (iy+127) ; Error ld b', (iy-128) ; Error ld b', -128 ; Error ld b', 127 ; Error ld b', 255 ; Error ld b', a ; Error ld b', b ; Error ld b', c ; Error ld b', d ; Error ld b', e ; Error ld b', h ; Error ld b', l ; Error ld bc', (-32768) ; Error ld bc', (32767) ; Error ld bc', (65535) ; Error ld bc', -32768 ; Error ld bc', 32767 ; Error ld bc', 65535 ; Error ld bc', bc ; Error ld bc', de ; Error ld c', (hl) ; Error ld c', (ix) ; Error ld c', (ix+127) ; Error ld c', (ix-128) ; Error ld c', (iy) ; Error ld c', (iy+127) ; Error ld c', (iy-128) ; Error ld c', -128 ; Error ld c', 127 ; Error ld c', 255 ; Error ld c', a ; Error ld c', b ; Error ld c', c ; Error ld c', d ; Error ld c', e ; Error ld c', h ; Error ld c', l ; Error ld d', (hl) ; Error ld d', (ix) ; Error ld d', (ix+127) ; Error ld d', (ix-128) ; Error ld d', (iy) ; Error ld d', (iy+127) ; Error ld d', (iy-128) ; Error ld d', -128 ; Error ld d', 127 ; Error ld d', 255 ; Error ld d', a ; Error ld d', b ; Error ld d', c ; Error ld d', d ; Error ld d', e ; Error ld d', h ; Error ld d', l ; Error ld de', (-32768) ; Error ld de', (32767) ; Error ld de', (65535) ; Error ld de', -32768 ; Error ld de', 32767 ; Error ld de', 65535 ; Error ld de', bc ; Error ld de', de ; Error ld de, hl+0 ; Error ld de, hl+255 ; Error ld e', (hl) ; Error ld e', (ix) ; Error ld e', (ix+127) ; Error ld e', (ix-128) ; Error ld e', (iy) ; Error ld e', (iy+127) ; Error ld e', (iy-128) ; Error ld e', -128 ; Error ld e', 127 ; Error ld e', 255 ; Error ld e', a ; Error ld e', b ; Error ld e', c ; Error ld e', d ; Error ld e', e ; Error ld e', h ; Error ld e', l ; Error ld eir, a ; Error ld h', (hl) ; Error ld h', (ix) ; Error ld h', (ix+127) ; Error ld h', (ix-128) ; Error ld h', (iy) ; Error ld h', (iy+127) ; Error ld h', (iy-128) ; Error ld h', -128 ; Error ld h', 127 ; Error ld h', 255 ; Error ld h', a ; Error ld h', b ; Error ld h', c ; Error ld h', d ; Error ld h', e ; Error ld h', h ; Error ld h', l ; Error ld hl', (-32768) ; Error ld hl', (32767) ; Error ld hl', (65535) ; Error ld hl', (hl) ; Error ld hl', (hl+127) ; Error ld hl', (hl-128) ; Error ld hl', (ix) ; Error ld hl', (ix+127) ; Error ld hl', (ix-128) ; Error ld hl', (iy) ; Error ld hl', (iy+127) ; Error ld hl', (iy-128) ; Error ld hl', (sp) ; Error ld hl', (sp+0) ; Error ld hl', (sp+255) ; Error ld hl', -32768 ; Error ld hl', 32767 ; Error ld hl', 65535 ; Error ld hl', bc ; Error ld hl', de ; Error ld hl', ix ; Error ld hl', iy ; Error ld hl, (de) ; Error ld hl, (hl) ; Error ld hl, (hl+127) ; Error ld hl, (hl-128) ; Error ld hl, (ix) ; Error ld hl, (ix+127) ; Error ld hl, (ix-128) ; Error ld hl, (iy) ; Error ld hl, (iy+127) ; Error ld hl, (iy-128) ; Error ld hl, (sp) ; Error ld hl, (sp+0) ; Error ld hl, (sp+255) ; Error ld iir, a ; Error ld ix, (sp) ; Error ld ix, (sp+0) ; Error ld ix, (sp+255) ; Error ld iy, (sp) ; Error ld iy, (sp+0) ; Error ld iy, (sp+255) ; Error ld l', (hl) ; Error ld l', (ix) ; Error ld l', (ix+127) ; Error ld l', (ix-128) ; Error ld l', (iy) ; Error ld l', (iy+127) ; Error ld l', (iy-128) ; Error ld l', -128 ; Error ld l', 127 ; Error ld l', 255 ; Error ld l', a ; Error ld l', b ; Error ld l', c ; Error ld l', d ; Error ld l', e ; Error ld l', h ; Error ld l', l ; Error ld xpc, a ; Error lddrx ; Error lddsr ; Error lddx ; Error ldh (-128), a ; Error ldh (127), a ; Error ldh (255), a ; Error ldh (c), a ; Error ldh a, (-128) ; Error ldh a, (127) ; Error ldh a, (255) ; Error ldh a, (c) ; Error ldhi -128 ; Error ldhi 127 ; Error ldhi 255 ; Error ldhl sp, -128 ; Error ldhl sp, 127 ; Error ldirx ; Error ldisr ; Error ldix ; Error ldp (-32768), hl ; Error ldp (-32768), ix ; Error ldp (-32768), iy ; Error ldp (32767), hl ; Error ldp (32767), ix ; Error ldp (32767), iy ; Error ldp (65535), hl ; Error ldp (65535), ix ; Error ldp (65535), iy ; Error ldp (hl), hl ; Error ldp (ix), hl ; Error ldp (iy), hl ; Error ldp hl, (-32768) ; Error ldp hl, (32767) ; Error ldp hl, (65535) ; Error ldp hl, (hl) ; Error ldp hl, (ix) ; Error ldp hl, (iy) ; Error ldp ix, (-32768) ; Error ldp ix, (32767) ; Error ldp ix, (65535) ; Error ldp iy, (-32768) ; Error ldp iy, (32767) ; Error ldp iy, (65535) ; Error ldpirx ; Error ldsi -128 ; Error ldsi 127 ; Error ldsi 255 ; Error ldws ; Error lhlde ; Error lhlx ; Error lsddr ; Error lsdr ; Error lsidr ; Error lsir ; Error mirror a ; Error mlt bc ; Error mlt de ; Error mlt hl ; Error mlt sp ; Error mmu -1, -128 ; Error mmu -1, -128 ; Error mmu -1, 127 ; Error mmu -1, 127 ; Error mmu -1, 255 ; Error mmu -1, 255 ; Error mmu -1, a ; Error mmu -1, a ; Error mmu 0, -128 ; Error mmu 0, 127 ; Error mmu 0, 255 ; Error mmu 0, a ; Error mmu 1, -128 ; Error mmu 1, 127 ; Error mmu 1, 255 ; Error mmu 1, a ; Error mmu 2, -128 ; Error mmu 2, 127 ; Error mmu 2, 255 ; Error mmu 2, a ; Error mmu 3, -128 ; Error mmu 3, 127 ; Error mmu 3, 255 ; Error mmu 3, a ; Error mmu 4, -128 ; Error mmu 4, 127 ; Error mmu 4, 255 ; Error mmu 4, a ; Error mmu 5, -128 ; Error mmu 5, 127 ; Error mmu 5, 255 ; Error mmu 5, a ; Error mmu 6, -128 ; Error mmu 6, 127 ; Error mmu 6, 255 ; Error mmu 6, a ; Error mmu 7, -128 ; Error mmu 7, 127 ; Error mmu 7, 255 ; Error mmu 7, a ; Error mmu 8, -128 ; Error mmu 8, -128 ; Error mmu 8, 127 ; Error mmu 8, 127 ; Error mmu 8, 255 ; Error mmu 8, 255 ; Error mmu 8, a ; Error mmu 8, a ; Error mmu0 -128 ; Error mmu0 127 ; Error mmu0 255 ; Error mmu0 a ; Error mmu1 -128 ; Error mmu1 127 ; Error mmu1 255 ; Error mmu1 a ; Error mmu2 -128 ; Error mmu2 127 ; Error mmu2 255 ; Error mmu2 a ; Error mmu3 -128 ; Error mmu3 127 ; Error mmu3 255 ; Error mmu3 a ; Error mmu4 -128 ; Error mmu4 127 ; Error mmu4 255 ; Error mmu4 a ; Error mmu5 -128 ; Error mmu5 127 ; Error mmu5 255 ; Error mmu5 a ; Error mmu6 -128 ; Error mmu6 127 ; Error mmu6 255 ; Error mmu6 a ; Error mmu7 -128 ; Error mmu7 127 ; Error mmu7 255 ; Error mmu7 a ; Error mul ; Error mul d, e ; Error mul de ; Error neg a' ; Error nextreg -128, -128 ; Error nextreg -128, a ; Error nextreg 127, 127 ; Error nextreg 127, a ; Error nextreg 255, 255 ; Error nextreg 255, a ; Error or a', (hl) ; Error or a', (ix) ; Error or a', (ix+127) ; Error or a', (ix-128) ; Error or a', (iy) ; Error or a', (iy+127) ; Error or a', (iy-128) ; Error or a', -128 ; Error or a', 127 ; Error or a', 255 ; Error or a', a ; Error or a', b ; Error or a', c ; Error or a', d ; Error or a', e ; Error or a', h ; Error or a', l ; Error or hl', de ; Error or hl, de ; Error or ix, de ; Error or iy, de ; Error otdm ; Error otdmr ; Error otim ; Error otimr ; Error out (c), -1 ; Error out (c), -1 ; Error out (c), 1 ; Error out (c), 1 ; Error out0 (-128), a ; Error out0 (-128), b ; Error out0 (-128), c ; Error out0 (-128), d ; Error out0 (-128), e ; Error out0 (-128), h ; Error out0 (-128), l ; Error out0 (127), a ; Error out0 (127), b ; Error out0 (127), c ; Error out0 (127), d ; Error out0 (127), e ; Error out0 (127), h ; Error out0 (127), l ; Error out0 (255), a ; Error out0 (255), b ; Error out0 (255), c ; Error out0 (255), d ; Error out0 (255), e ; Error out0 (255), h ; Error out0 (255), l ; Error outinb ; Error ovrst8 ; Error pixelad ; Error pixeldn ; Error pop af' ; Error pop b' ; Error pop bc' ; Error pop d' ; Error pop de' ; Error pop h' ; Error pop hl' ; Error pop ip ; Error pop su ; Error push -32768 ; Error push 32767 ; Error push 65535 ; Error push ip ; Error push su ; Error rdmode ; Error res -1, (hl) ; Error res -1, (hl) ; Error res -1, (ix) ; Error res -1, (ix) ; Error res -1, (ix+127) ; Error res -1, (ix+127) ; Error res -1, (ix-128) ; Error res -1, (ix-128) ; Error res -1, (iy) ; Error res -1, (iy) ; Error res -1, (iy+127) ; Error res -1, (iy+127) ; Error res -1, (iy-128) ; Error res -1, (iy-128) ; Error res -1, a ; Error res -1, a ; Error res -1, a' ; Error res -1, a' ; Error res -1, b ; Error res -1, b ; Error res -1, b' ; Error res -1, b' ; Error res -1, c ; Error res -1, c ; Error res -1, c' ; Error res -1, c' ; Error res -1, d ; Error res -1, d ; Error res -1, d' ; Error res -1, d' ; Error res -1, e ; Error res -1, e ; Error res -1, e' ; Error res -1, e' ; Error res -1, h ; Error res -1, h ; Error res -1, h' ; Error res -1, h' ; Error res -1, l ; Error res -1, l ; Error res -1, l' ; Error res -1, l' ; Error res 0, a' ; Error res 0, b' ; Error res 0, c' ; Error res 0, d' ; Error res 0, e' ; Error res 0, h' ; Error res 0, l' ; Error res 1, a' ; Error res 1, b' ; Error res 1, c' ; Error res 1, d' ; Error res 1, e' ; Error res 1, h' ; Error res 1, l' ; Error res 2, a' ; Error res 2, b' ; Error res 2, c' ; Error res 2, d' ; Error res 2, e' ; Error res 2, h' ; Error res 2, l' ; Error res 3, a' ; Error res 3, b' ; Error res 3, c' ; Error res 3, d' ; Error res 3, e' ; Error res 3, h' ; Error res 3, l' ; Error res 4, a' ; Error res 4, b' ; Error res 4, c' ; Error res 4, d' ; Error res 4, e' ; Error res 4, h' ; Error res 4, l' ; Error res 5, a' ; Error res 5, b' ; Error res 5, c' ; Error res 5, d' ; Error res 5, e' ; Error res 5, h' ; Error res 5, l' ; Error res 6, a' ; Error res 6, b' ; Error res 6, c' ; Error res 6, d' ; Error res 6, e' ; Error res 6, h' ; Error res 6, l' ; Error res 7, a' ; Error res 7, b' ; Error res 7, c' ; Error res 7, d' ; Error res 7, e' ; Error res 7, h' ; Error res 7, l' ; Error res 8, (hl) ; Error res 8, (hl) ; Error res 8, (ix) ; Error res 8, (ix) ; Error res 8, (ix+127) ; Error res 8, (ix+127) ; Error res 8, (ix-128) ; Error res 8, (ix-128) ; Error res 8, (iy) ; Error res 8, (iy) ; Error res 8, (iy+127) ; Error res 8, (iy+127) ; Error res 8, (iy-128) ; Error res 8, (iy-128) ; Error res 8, a ; Error res 8, a ; Error res 8, a' ; Error res 8, a' ; Error res 8, b ; Error res 8, b ; Error res 8, b' ; Error res 8, b' ; Error res 8, c ; Error res 8, c ; Error res 8, c' ; Error res 8, c' ; Error res 8, d ; Error res 8, d ; Error res 8, d' ; Error res 8, d' ; Error res 8, e ; Error res 8, e ; Error res 8, e' ; Error res 8, e' ; Error res 8, h ; Error res 8, h ; Error res 8, h' ; Error res 8, h' ; Error res 8, l ; Error res 8, l ; Error res 8, l' ; Error res 8, l' ; Error res.a -1, (hl) ; Error res.a -1, (hl) ; Error res.a -1, (ix) ; Error res.a -1, (ix) ; Error res.a -1, (ix+127) ; Error res.a -1, (ix+127) ; Error res.a -1, (ix-128) ; Error res.a -1, (ix-128) ; Error res.a -1, (iy) ; Error res.a -1, (iy) ; Error res.a -1, (iy+127) ; Error res.a -1, (iy+127) ; Error res.a -1, (iy-128) ; Error res.a -1, (iy-128) ; Error res.a -1, a ; Error res.a -1, a ; Error res.a -1, b ; Error res.a -1, b ; Error res.a -1, c ; Error res.a -1, c ; Error res.a -1, d ; Error res.a -1, d ; Error res.a -1, e ; Error res.a -1, e ; Error res.a -1, h ; Error res.a -1, h ; Error res.a -1, l ; Error res.a -1, l ; Error res.a 8, (hl) ; Error res.a 8, (hl) ; Error res.a 8, (ix) ; Error res.a 8, (ix) ; Error res.a 8, (ix+127) ; Error res.a 8, (ix+127) ; Error res.a 8, (ix-128) ; Error res.a 8, (ix-128) ; Error res.a 8, (iy) ; Error res.a 8, (iy) ; Error res.a 8, (iy+127) ; Error res.a 8, (iy+127) ; Error res.a 8, (iy-128) ; Error res.a 8, (iy-128) ; Error res.a 8, a ; Error res.a 8, a ; Error res.a 8, b ; Error res.a 8, b ; Error res.a 8, c ; Error res.a 8, c ; Error res.a 8, d ; Error res.a 8, d ; Error res.a 8, e ; Error res.a 8, e ; Error res.a 8, h ; Error res.a 8, h ; Error res.a 8, l ; Error res.a 8, l ; Error ret lo ; Error ret lz ; Error rim ; Error rl a' ; Error rl b' ; Error rl c' ; Error rl d' ; Error rl de' ; Error rl e' ; Error rl h' ; Error rl l' ; Error rla' ; Error rlc a' ; Error rlc b' ; Error rlc c' ; Error rlc d' ; Error rlc e' ; Error rlc h' ; Error rlc l' ; Error rlca' ; Error rlo ; Error rlz ; Error rr a' ; Error rr b' ; Error rr c' ; Error rr d' ; Error rr de' ; Error rr e' ; Error rr h' ; Error rr hl' ; Error rr ix ; Error rr iy ; Error rr l' ; Error rra' ; Error rrc a' ; Error rrc b' ; Error rrc c' ; Error rrc d' ; Error rrc e' ; Error rrc h' ; Error rrc l' ; Error rrca' ; Error rst -1 ; Error rst -1 ; Error rst 10 ; Error rst 10 ; Error rst 11 ; Error rst 11 ; Error rst 12 ; Error rst 12 ; Error rst 13 ; Error rst 13 ; Error rst 14 ; Error rst 14 ; Error rst 15 ; Error rst 15 ; Error rst 17 ; Error rst 17 ; Error rst 18 ; Error rst 18 ; Error rst 19 ; Error rst 19 ; Error rst 20 ; Error rst 20 ; Error rst 21 ; Error rst 21 ; Error rst 22 ; Error rst 22 ; Error rst 23 ; Error rst 23 ; Error rst 25 ; Error rst 25 ; Error rst 26 ; Error rst 26 ; Error rst 27 ; Error rst 27 ; Error rst 28 ; Error rst 28 ; Error rst 29 ; Error rst 29 ; Error rst 30 ; Error rst 30 ; Error rst 31 ; Error rst 31 ; Error rst 33 ; Error rst 33 ; Error rst 34 ; Error rst 34 ; Error rst 35 ; Error rst 35 ; Error rst 36 ; Error rst 36 ; Error rst 37 ; Error rst 37 ; Error rst 38 ; Error rst 38 ; Error rst 39 ; Error rst 39 ; Error rst 41 ; Error rst 41 ; Error rst 42 ; Error rst 42 ; Error rst 43 ; Error rst 43 ; Error rst 44 ; Error rst 44 ; Error rst 45 ; Error rst 45 ; Error rst 46 ; Error rst 46 ; Error rst 47 ; Error rst 47 ; Error rst 49 ; Error rst 49 ; Error rst 50 ; Error rst 50 ; Error rst 51 ; Error rst 51 ; Error rst 52 ; Error rst 52 ; Error rst 53 ; Error rst 53 ; Error rst 54 ; Error rst 54 ; Error rst 55 ; Error rst 55 ; Error rst 57 ; Error rst 57 ; Error rst 58 ; Error rst 58 ; Error rst 59 ; Error rst 59 ; Error rst 60 ; Error rst 60 ; Error rst 61 ; Error rst 61 ; Error rst 62 ; Error rst 62 ; Error rst 63 ; Error rst 63 ; Error rst 64 ; Error rst 64 ; Error rst 9 ; Error rst 9 ; Error rstv ; Error sbc a', (hl) ; Error sbc a', (ix) ; Error sbc a', (ix+127) ; Error sbc a', (ix-128) ; Error sbc a', (iy) ; Error sbc a', (iy+127) ; Error sbc a', (iy-128) ; Error sbc a', -128 ; Error sbc a', 127 ; Error sbc a', 255 ; Error sbc a', a ; Error sbc a', b ; Error sbc a', c ; Error sbc a', d ; Error sbc a', e ; Error sbc a', h ; Error sbc a', l ; Error sbc hl', bc ; Error sbc hl', de ; Error sbc hl', hl ; Error sbc hl', sp ; Error scf' ; Error set -1, (hl) ; Error set -1, (hl) ; Error set -1, (ix) ; Error set -1, (ix) ; Error set -1, (ix+127) ; Error set -1, (ix+127) ; Error set -1, (ix-128) ; Error set -1, (ix-128) ; Error set -1, (iy) ; Error set -1, (iy) ; Error set -1, (iy+127) ; Error set -1, (iy+127) ; Error set -1, (iy-128) ; Error set -1, (iy-128) ; Error set -1, a ; Error set -1, a ; Error set -1, a' ; Error set -1, a' ; Error set -1, b ; Error set -1, b ; Error set -1, b' ; Error set -1, b' ; Error set -1, c ; Error set -1, c ; Error set -1, c' ; Error set -1, c' ; Error set -1, d ; Error set -1, d ; Error set -1, d' ; Error set -1, d' ; Error set -1, e ; Error set -1, e ; Error set -1, e' ; Error set -1, e' ; Error set -1, h ; Error set -1, h ; Error set -1, h' ; Error set -1, h' ; Error set -1, l ; Error set -1, l ; Error set -1, l' ; Error set -1, l' ; Error set 0, a' ; Error set 0, b' ; Error set 0, c' ; Error set 0, d' ; Error set 0, e' ; Error set 0, h' ; Error set 0, l' ; Error set 1, a' ; Error set 1, b' ; Error set 1, c' ; Error set 1, d' ; Error set 1, e' ; Error set 1, h' ; Error set 1, l' ; Error set 2, a' ; Error set 2, b' ; Error set 2, c' ; Error set 2, d' ; Error set 2, e' ; Error set 2, h' ; Error set 2, l' ; Error set 3, a' ; Error set 3, b' ; Error set 3, c' ; Error set 3, d' ; Error set 3, e' ; Error set 3, h' ; Error set 3, l' ; Error set 4, a' ; Error set 4, b' ; Error set 4, c' ; Error set 4, d' ; Error set 4, e' ; Error set 4, h' ; Error set 4, l' ; Error set 5, a' ; Error set 5, b' ; Error set 5, c' ; Error set 5, d' ; Error set 5, e' ; Error set 5, h' ; Error set 5, l' ; Error set 6, a' ; Error set 6, b' ; Error set 6, c' ; Error set 6, d' ; Error set 6, e' ; Error set 6, h' ; Error set 6, l' ; Error set 7, a' ; Error set 7, b' ; Error set 7, c' ; Error set 7, d' ; Error set 7, e' ; Error set 7, h' ; Error set 7, l' ; Error set 8, (hl) ; Error set 8, (hl) ; Error set 8, (ix) ; Error set 8, (ix) ; Error set 8, (ix+127) ; Error set 8, (ix+127) ; Error set 8, (ix-128) ; Error set 8, (ix-128) ; Error set 8, (iy) ; Error set 8, (iy) ; Error set 8, (iy+127) ; Error set 8, (iy+127) ; Error set 8, (iy-128) ; Error set 8, (iy-128) ; Error set 8, a ; Error set 8, a ; Error set 8, a' ; Error set 8, a' ; Error set 8, b ; Error set 8, b ; Error set 8, b' ; Error set 8, b' ; Error set 8, c ; Error set 8, c ; Error set 8, c' ; Error set 8, c' ; Error set 8, d ; Error set 8, d ; Error set 8, d' ; Error set 8, d' ; Error set 8, e ; Error set 8, e ; Error set 8, e' ; Error set 8, e' ; Error set 8, h ; Error set 8, h ; Error set 8, h' ; Error set 8, h' ; Error set 8, l ; Error set 8, l ; Error set 8, l' ; Error set 8, l' ; Error set.a -1, (hl) ; Error set.a -1, (hl) ; Error set.a -1, (ix) ; Error set.a -1, (ix) ; Error set.a -1, (ix+127) ; Error set.a -1, (ix+127) ; Error set.a -1, (ix-128) ; Error set.a -1, (ix-128) ; Error set.a -1, (iy) ; Error set.a -1, (iy) ; Error set.a -1, (iy+127) ; Error set.a -1, (iy+127) ; Error set.a -1, (iy-128) ; Error set.a -1, (iy-128) ; Error set.a -1, a ; Error set.a -1, a ; Error set.a -1, b ; Error set.a -1, b ; Error set.a -1, c ; Error set.a -1, c ; Error set.a -1, d ; Error set.a -1, d ; Error set.a -1, e ; Error set.a -1, e ; Error set.a -1, h ; Error set.a -1, h ; Error set.a -1, l ; Error set.a -1, l ; Error set.a 8, (hl) ; Error set.a 8, (hl) ; Error set.a 8, (ix) ; Error set.a 8, (ix) ; Error set.a 8, (ix+127) ; Error set.a 8, (ix+127) ; Error set.a 8, (ix-128) ; Error set.a 8, (ix-128) ; Error set.a 8, (iy) ; Error set.a 8, (iy) ; Error set.a 8, (iy+127) ; Error set.a 8, (iy+127) ; Error set.a 8, (iy-128) ; Error set.a 8, (iy-128) ; Error set.a 8, a ; Error set.a 8, a ; Error set.a 8, b ; Error set.a 8, b ; Error set.a 8, c ; Error set.a 8, c ; Error set.a 8, d ; Error set.a 8, d ; Error set.a 8, e ; Error set.a 8, e ; Error set.a 8, h ; Error set.a 8, h ; Error set.a 8, l ; Error set.a 8, l ; Error setae ; Error setusr ; Error shlde ; Error shlx ; Error sim ; Error sla a' ; Error sla b' ; Error sla c' ; Error sla d' ; Error sla e' ; Error sla h' ; Error sla l' ; Error slp ; Error sra a' ; Error sra b' ; Error sra c' ; Error sra d' ; Error sra e' ; Error sra h' ; Error sra l' ; Error srl a' ; Error srl b' ; Error srl c' ; Error srl d' ; Error srl e' ; Error srl h' ; Error srl l' ; Error stop ; Error sub a', (hl) ; Error sub a', (ix) ; Error sub a', (ix+127) ; Error sub a', (ix-128) ; Error sub a', (iy) ; Error sub a', (iy+127) ; Error sub a', (iy-128) ; Error sub a', -128 ; Error sub a', 127 ; Error sub a', 255 ; Error sub a', a ; Error sub a', b ; Error sub a', c ; Error sub a', d ; Error sub a', e ; Error sub a', h ; Error sub a', l ; Error sures ; Error swap (hl) ; Error swap a ; Error swap b ; Error swap c ; Error swap d ; Error swap e ; Error swap h ; Error swap l ; Error swapnib ; Error syscall ; Error test (hl) ; Error test (ix) ; Error test (ix+127) ; Error test (ix-128) ; Error test (iy) ; Error test (iy+127) ; Error test (iy-128) ; Error test -128 ; Error test 127 ; Error test 255 ; Error test a ; Error test a, (hl) ; Error test a, (ix) ; Error test a, (ix+127) ; Error test a, (ix-128) ; Error test a, (iy) ; Error test a, (iy+127) ; Error test a, (iy-128) ; Error test a, -128 ; Error test a, 127 ; Error test a, 255 ; Error test a, a ; Error test a, b ; Error test a, c ; Error test a, d ; Error test a, e ; Error test a, h ; Error test a, l ; Error test b ; Error test c ; Error test d ; Error test e ; Error test h ; Error test l ; Error tst (hl) ; Error tst (ix) ; Error tst (ix+127) ; Error tst (ix-128) ; Error tst (iy) ; Error tst (iy+127) ; Error tst (iy-128) ; Error tst -128 ; Error tst 127 ; Error tst 255 ; Error tst a ; Error tst a, (hl) ; Error tst a, (ix) ; Error tst a, (ix+127) ; Error tst a, (ix-128) ; Error tst a, (iy) ; Error tst a, (iy+127) ; Error tst a, (iy-128) ; Error tst a, -128 ; Error tst a, 127 ; Error tst a, 255 ; Error tst a, a ; Error tst a, b ; Error tst a, c ; Error tst a, d ; Error tst a, e ; Error tst a, h ; Error tst a, l ; Error tst b ; Error tst c ; Error tst d ; Error tst e ; Error tst h ; Error tst l ; Error tstio -128 ; Error tstio 127 ; Error tstio 255 ; Error uma ; Error ums ; Error xor a', (hl) ; Error xor a', (ix) ; Error xor a', (ix+127) ; Error xor a', (ix-128) ; Error xor a', (iy) ; Error xor a', (iy+127) ; Error xor a', (iy-128) ; Error xor a', -128 ; Error xor a', 127 ; Error xor a', 255 ; Error xor a', a ; Error xor a', b ; Error xor a', c ; Error xor a', d ; Error xor a', e ; Error xor a', h ; Error xor a', l ; Error
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "application-bell-settings/ApplicationBellSettings.hpp" #include "BellSettingsAlarmSettingsMenuWindow.hpp" #include "BellSettingsAlarmSettingsWindow.hpp" #include "BellSettingsStyle.hpp" #include <common/windows/BellFinishedWindow.hpp> #include <apps-common/options/OptionStyle.hpp> #include <module-gui/gui/input/InputEvent.hpp> #include <module-gui/gui/widgets/SideListView.hpp> namespace gui { BellSettingsAlarmSettingsWindow::BellSettingsAlarmSettingsWindow( app::ApplicationCommon *app, std::unique_ptr<app::bell_settings::AlarmSettingsWindowContract::Presenter> presenter) : AppWindow(app, name), presenter{std::move(presenter)} { this->presenter->attach(this); buildInterface(); } void BellSettingsAlarmSettingsWindow::rebuild() { erase(); buildInterface(); } void BellSettingsAlarmSettingsWindow::buildInterface() { AppWindow::buildInterface(); statusBar->setVisible(false); header->setTitleVisibility(false); navBar->setVisible(false); sidelistview = new SideListView( this, 0U, 0U, this->getWidth(), this->getHeight(), presenter->getPagesProvider(), PageBarType::None); sidelistview->setEdges(RectangleEdge::None); sidelistview->rebuildList(listview::RebuildType::Full); presenter->loadData(); setFocusItem(sidelistview); } bool BellSettingsAlarmSettingsWindow::onInput(const gui::InputEvent &inputEvent) { if (sidelistview->onInput(inputEvent)) { return true; } if (inputEvent.isShortRelease(KeyCode::KEY_ENTER)) { exit(); return true; } if (inputEvent.isShortRelease(KeyCode::KEY_RF)) { presenter->exitWithoutSave(); } return AppWindow::onInput(inputEvent); } void BellSettingsAlarmSettingsWindow::exit() { presenter->saveData(); application->switchWindow( window::bell_finished::defaultName, BellFinishedWindowData::Factory::create("circle_success_big", BellSettingsAlarmSettingsMenuWindow::name)); } void BellSettingsAlarmSettingsWindow::onClose(CloseReason reason) { presenter->eraseProviderData(); } } /* namespace gui */
Name: ys_w57.asm Type: file Size: 16159 Last-Modified: '2016-05-13T04:50:34Z' SHA-1: EBD2817E8EEF19D2AF467ECBC8C640D9FAD51709 Description: null
Map_360DD0: dc.w Frame_360DD8-Map_360DD0 dc.w Frame_360DEC-Map_360DD0 dc.w Frame_360E00-Map_360DD0 dc.w Frame_360E08-Map_360DD0 Frame_360DD8: dc.w 3 dc.b $F4, 5, 0, $A,$FF,$E8 dc.b $F4, 9, 0, 0,$FF,$F8 dc.b 4, $C, 0, 6,$FF,$F0 Frame_360DEC: dc.w 3 dc.b $F4, 5, 0, $E,$FF,$E8 dc.b $F4, 9, 0, 0,$FF,$F8 dc.b 4, $C, 0, 6,$FF,$F0 Frame_360E00: dc.w 1 dc.b $FC, 0, 0,$12,$FF,$FC Frame_360E08: dc.w 1 dc.b $FC, 0, 0,$13,$FF,$FC
; --------------------------------------------------------------------------- ; Animation script - Burrobot enemy ; --------------------------------------------------------------------------- dc.w byte_AE4C-Ani_obj2D dc.w byte_AE50-Ani_obj2D dc.w byte_AE54-Ani_obj2D dc.w byte_AE58-Ani_obj2D byte_AE4C: dc.b 3, 0, 6, $FF byte_AE50: dc.b 3, 0, 1, $FF byte_AE54: dc.b 3, 2, 3, $FF byte_AE58: dc.b 3, 4, $FF even
#include "stone/Driver/Driver.h" #include "stone/Driver/ToolChain.h" using namespace stone; using namespace stone::driver; DarwinToolChain::DarwinToolChain( const Driver &driver, const llvm::Triple &triple, const llvm::Optional<llvm::Triple> &targetVariant) : ToolChain(driver, triple), targetVariant(targetVariant) {} bool DarwinToolChain::BuildClangTool() { return true; } bool DarwinToolChain::BuildAssembleTool() { return true; } bool DarwinToolChain::BuildLLDLinkTool() { return true; } bool DarwinToolChain::BuildLDLinkTool() { return true; } bool DarwinToolChain::BuildGCCTool() { // gccTool = std::make_unique<GCCTool>("test", "test", *this); return true; } bool DarwinToolChain::BuildStoneTool() { // Get the path for the tool on your the respective system stoneTool = std::make_unique<StoneTool>("stone", "test", *this); return true; } Tool *DarwinToolChain::PickTool(JobType jobType) const { return ToolChain::PickTool(jobType); }
format ELF public main include 'ccall.inc' section '.text' executable align 16 main: mov ecx,[esp+4] mov [argc],ecx mov ebx,[esp+8] mov [argv],ebx mov [display_handle],1 call get_params jnc make_listing mov esi,_usage call display_string ccall exit,2 make_listing: call listing ccall exit,0 error: mov [display_handle],2 mov esi,_error_prefix call display_string pop esi call display_string mov esi,_error_suffix call display_string ccall exit,0 get_params: mov ecx,[argc] mov ebx,[argv] add ebx,4 dec ecx jz bad_params get_param: mov esi,[ebx] mov al,[esi] cmp al,'-' je option_param cmp [input_file],0 jne get_output_file mov [input_file],esi jmp next_param get_output_file: cmp [output_file],0 jne bad_params mov [output_file],esi jmp next_param option_param: inc esi lodsb cmp al,'a' je addresses_option cmp al,'A' je addresses_option cmp al,'b' je bytes_per_line_option cmp al,'B' je bytes_per_line_option bad_params: stc ret addresses_option: cmp byte [esi],0 jne bad_params mov [show_addresses],1 jmp next_param bytes_per_line_option: cmp byte [esi],0 jne get_bytes_per_line_setting dec ecx jz bad_params add ebx,4 mov esi,[ebx] get_bytes_per_line_setting: call get_option_value or edx,edx jz bad_params cmp edx,1000 ja bad_params mov [code_bytes_per_line],edx next_param: add ebx,4 dec ecx jnz get_param cmp [input_file],0 je bad_params cmp [output_file],0 je bad_params clc ret get_option_value: xor eax,eax mov edx,eax get_option_digit: lodsb cmp al,20h je option_value_ok cmp al,0Dh je option_value_ok or al,al jz option_value_ok sub al,30h jc invalid_option_value cmp al,9 ja invalid_option_value imul edx,10 jo invalid_option_value add edx,eax jc invalid_option_value jmp get_option_digit option_value_ok: dec esi clc ret invalid_option_value: stc ret include 'system.inc' include '..\listing.inc' section '.data' writeable align 4 input_file dd 0 output_file dd 0 code_bytes_per_line dd 16 show_addresses db 0 line_break db 0Dh,0Ah _usage db 'listing generator for flat assembler',0Dh,0Ah db 'usage: listing <input> <output>',0Dh,0Ah db 'optional settings:',0Dh,0Ah db ' -a show target addresses for assembled code',0Dh,0Ah db ' -b <number> set the amount of bytes listed per line',0Dh,0Ah db 0 _error_prefix db 'error: ',0 _error_suffix db '.',0Dh,0Ah,0 section '.bss' writeable align 4 argc dd ? argv dd ? input dd ? assembled_code dd ? assembled_code_length dd ? code_end dd ? code_offset dd ? code_length dd ? output_handle dd ? output_buffer dd ? current_source_file dd ? current_source_line dd ? source dd ? source_length dd ? maximum_address_length dd ? address_start dd ? last_listed_address dd ? display_handle dd ? character db ? params rb 1000h characters rb 100h buffer rb 1000h
db 0 ; 376 DEX NO db 80, 135, 130, 70, 95, 90 ; hp atk def spd sat sdf db STEEL, PSYCHIC ; type db 3 ; catch rate db 210 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_UNKNOWN ; gender ratio db 100 ; unknown 1 db 40 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/hoenn/metagross/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_SLOW ; growth rate dn EGG_MINERAL, EGG_MINERAL ; egg groups ; tm/hm learnset tmhm ; end
// // main.cpp // CMakeGTestExample // // Created by John Kaniarz on 4/29/20. // Copyright © 2020 John Kaniarz. All rights reserved. // #include "code.hpp" #include <iostream> int main(int argc, const char * argv[]) { std::cout << "3 + 4 = " << add(3,4) << std::endl; return 0; }
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %rax push %rbx push %rcx lea addresses_UC_ht+0x9062, %rax nop nop nop nop nop sub %r12, %r12 mov $0x6162636465666768, %r14 movq %r14, %xmm6 and $0xffffffffffffffc0, %rax movntdq %xmm6, (%rax) add $39308, %rbx lea addresses_UC_ht+0x17852, %r14 nop nop sub $43218, %r12 movl $0x61626364, (%r14) nop nop and $42003, %rbx pop %rcx pop %rbx pop %rax pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r15 push %rcx push %rdi push %rdx // Store lea addresses_normal+0x1c622, %r10 nop nop nop nop xor %rcx, %rcx movl $0x51525354, (%r10) nop nop nop nop xor $49167, %r14 // Store lea addresses_A+0xf8e2, %r13 nop nop xor $45504, %rdx movb $0x51, (%r13) nop nop nop nop add $46218, %r13 // Store lea addresses_RW+0x777f, %r10 inc %rdi movl $0x51525354, (%r10) nop nop nop nop cmp %r15, %r15 // Store lea addresses_normal+0x140e2, %rdi nop nop nop nop xor $15002, %rdx mov $0x5152535455565758, %r13 movq %r13, (%rdi) nop sub $18158, %rdx // Store lea addresses_D+0x12e2, %r13 nop nop nop nop nop and %r10, %r10 mov $0x5152535455565758, %r14 movq %r14, %xmm4 vmovups %ymm4, (%r13) nop nop nop xor %r13, %r13 // Faulty Load lea addresses_normal+0x140e2, %rdi nop nop nop nop nop add $53105, %r14 movb (%rdi), %cl lea oracles, %r14 and $0xff, %rcx shlq $12, %rcx mov (%r14,%rcx,1), %rcx pop %rdx pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': True, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 7, 'size': 16, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}} {'58': 14} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
/*****************************************************************************/ // Copyright 2008 Adobe Systems Incorporated // All Rights Reserved. // // NOTICE: Adobe permits you to use, modify, and distribute this file in // accordance with the terms of the Adobe license agreement accompanying it. /*****************************************************************************/ /* $Id: //mondo/dng_sdk_1_4/dng_sdk/source/dng_opcodes.cpp#1 $ */ /* $DateTime: 2012/05/30 13:28:51 $ */ /* $Change: 832332 $ */ /* $Author: tknoll $ */ /*****************************************************************************/ #include "dng_opcodes.h" #include "dng_bottlenecks.h" #include "dng_exceptions.h" #include "dng_filter_task.h" #include "dng_globals.h" #include "dng_host.h" #include "dng_image.h" #include "dng_negative.h" #include "dng_parse_utils.h" #include "dng_stream.h" #include "dng_tag_values.h" /*****************************************************************************/ dng_opcode::dng_opcode (uint32 opcodeID, uint32 minVersion, uint32 flags) : fOpcodeID (opcodeID) , fMinVersion (minVersion) , fFlags (flags) , fWasReadFromStream (false) , fStage (0) { } /*****************************************************************************/ dng_opcode::dng_opcode (uint32 opcodeID, dng_stream &stream, const char *name) : fOpcodeID (opcodeID) , fMinVersion (0) , fFlags (0) , fWasReadFromStream (true) , fStage (0) { fMinVersion = stream.Get_uint32 (); fFlags = stream.Get_uint32 (); #if qDNGValidate if (gVerbose) { printf ("\nOpcode: "); if (name) { printf ("%s", name); } else { printf ("Unknown (%u)", (unsigned) opcodeID); } printf (", minVersion = %u.%u.%u.%u", (unsigned) ((fMinVersion >> 24) & 0x0FF), (unsigned) ((fMinVersion >> 16) & 0x0FF), (unsigned) ((fMinVersion >> 8) & 0x0FF), (unsigned) ((fMinVersion ) & 0x0FF)); printf (", flags = %u\n", (unsigned) fFlags); } #else (void) name; #endif } /*****************************************************************************/ dng_opcode::~dng_opcode () { } /*****************************************************************************/ void dng_opcode::PutData (dng_stream &stream) const { // No data by default stream.Put_uint32 (0); } /*****************************************************************************/ bool dng_opcode::AboutToApply (dng_host &host, dng_negative &negative) { if (SkipIfPreview () && host.ForPreview ()) { negative.SetIsPreview (true); } else if (MinVersion () > dngVersion_Current && WasReadFromStream ()) { if (!Optional ()) { // Somebody screwed up computing the DNGBackwardVersion... ThrowBadFormat (); } } else if (!IsValidForNegative (negative)) { ThrowBadFormat (); } else if (!IsNOP ()) { return true; } return false; } /*****************************************************************************/ dng_opcode_Unknown::dng_opcode_Unknown (dng_host &host, uint32 opcodeID, dng_stream &stream) : dng_opcode (opcodeID, stream, NULL) , fData () { uint32 size = stream.Get_uint32 (); if (size) { fData.Reset (host.Allocate (size)); stream.Get (fData->Buffer (), fData->LogicalSize ()); #if qDNGValidate if (gVerbose) { DumpHexAscii (fData->Buffer_uint8 (), fData->LogicalSize ()); } #endif } } /*****************************************************************************/ void dng_opcode_Unknown::PutData (dng_stream &stream) const { if (fData.Get ()) { stream.Put_uint32 (fData->LogicalSize ()); stream.Put (fData->Buffer (), fData->LogicalSize ()); } else { stream.Put_uint32 (0); } } /*****************************************************************************/ void dng_opcode_Unknown::Apply (dng_host & /* host */, dng_negative & /* negative */, AutoPtr<dng_image> & /* image */) { // We should never need to apply an unknown opcode. if (!Optional ()) { ThrowBadFormat (); } } /*****************************************************************************/ class dng_filter_opcode_task: public dng_filter_task { private: dng_filter_opcode &fOpcode; dng_negative &fNegative; public: dng_filter_opcode_task (dng_filter_opcode &opcode, dng_negative &negative, const dng_image &srcImage, dng_image &dstImage) : dng_filter_task (srcImage, dstImage) , fOpcode (opcode) , fNegative (negative) { fSrcPixelType = fOpcode.BufferPixelType (srcImage.PixelType ()); fDstPixelType = fSrcPixelType; fSrcRepeat = opcode.SrcRepeat (); } virtual dng_rect SrcArea (const dng_rect &dstArea) { return fOpcode.SrcArea (dstArea, fDstImage.Bounds ()); } virtual dng_point SrcTileSize (const dng_point &dstTileSize) { return fOpcode.SrcTileSize (dstTileSize, fDstImage.Bounds ()); } virtual void ProcessArea (uint32 threadIndex, dng_pixel_buffer &srcBuffer, dng_pixel_buffer &dstBuffer) { fOpcode.ProcessArea (fNegative, threadIndex, srcBuffer, dstBuffer, dstBuffer.Area (), fDstImage.Bounds ()); } virtual void Start (uint32 threadCount, const dng_point &tileSize, dng_memory_allocator *allocator, dng_abort_sniffer *sniffer) { dng_filter_task::Start (threadCount, tileSize, allocator, sniffer); fOpcode.Prepare (fNegative, threadCount, tileSize, fDstImage.Bounds (), fDstImage.Planes (), fDstPixelType, *allocator); } }; /*****************************************************************************/ dng_filter_opcode::dng_filter_opcode (uint32 opcodeID, uint32 minVersion, uint32 flags) : dng_opcode (opcodeID, minVersion, flags) { } /*****************************************************************************/ dng_filter_opcode::dng_filter_opcode (uint32 opcodeID, dng_stream &stream, const char *name) : dng_opcode (opcodeID, stream, name) { } /*****************************************************************************/ void dng_filter_opcode::Apply (dng_host &host, dng_negative &negative, AutoPtr<dng_image> &image) { dng_rect modifiedBounds = ModifiedBounds (image->Bounds ()); if (modifiedBounds.NotEmpty ()) { // Allocate destination image. AutoPtr<dng_image> dstImage; // If we are processing the entire image, allocate an // undefined image. if (modifiedBounds == image->Bounds ()) { dstImage.Reset (host.Make_dng_image (image->Bounds (), image->Planes (), image->PixelType ())); } // Else start with a clone of the existing image. else { dstImage.Reset (image->Clone ()); } // Filter the image. dng_filter_opcode_task task (*this, negative, *image, *dstImage); host.PerformAreaTask (task, modifiedBounds); // Return the new image. image.Reset (dstImage.Release ()); } } /*****************************************************************************/ class dng_inplace_opcode_task: public dng_area_task { private: dng_inplace_opcode &fOpcode; dng_negative &fNegative; dng_image &fImage; uint32 fPixelType; AutoPtr<dng_memory_block> fBuffer [kMaxMPThreads]; public: dng_inplace_opcode_task (dng_inplace_opcode &opcode, dng_negative &negative, dng_image &image) : dng_area_task () , fOpcode (opcode) , fNegative (negative) , fImage (image) , fPixelType (opcode.BufferPixelType (image.PixelType ())) { } virtual void Start (uint32 threadCount, const dng_point &tileSize, dng_memory_allocator *allocator, dng_abort_sniffer * /* sniffer */) { uint32 bufferSize = ComputeBufferSize(fPixelType, tileSize, fImage.Planes(), pad16Bytes); for (uint32 threadIndex = 0; threadIndex < threadCount; threadIndex++) { fBuffer [threadIndex] . Reset (allocator->Allocate (bufferSize)); } fOpcode.Prepare (fNegative, threadCount, tileSize, fImage.Bounds (), fImage.Planes (), fPixelType, *allocator); } virtual void Process (uint32 threadIndex, const dng_rect &tile, dng_abort_sniffer * /* sniffer */) { // Setup buffer. dng_pixel_buffer buffer(tile, 0, fImage.Planes (), fPixelType, pcRowInterleavedAlign16, fBuffer [threadIndex]->Buffer ()); // Get source pixels. fImage.Get (buffer); // Process area. fOpcode.ProcessArea (fNegative, threadIndex, buffer, tile, fImage.Bounds ()); // Save result pixels. fImage.Put (buffer); } }; /*****************************************************************************/ dng_inplace_opcode::dng_inplace_opcode (uint32 opcodeID, uint32 minVersion, uint32 flags) : dng_opcode (opcodeID, minVersion, flags) { } /*****************************************************************************/ dng_inplace_opcode::dng_inplace_opcode (uint32 opcodeID, dng_stream &stream, const char *name) : dng_opcode (opcodeID, stream, name) { } /*****************************************************************************/ void dng_inplace_opcode::Apply (dng_host &host, dng_negative &negative, AutoPtr<dng_image> &image) { dng_rect modifiedBounds = ModifiedBounds (image->Bounds ()); if (modifiedBounds.NotEmpty ()) { dng_inplace_opcode_task task (*this, negative, *image); host.PerformAreaTask (task, modifiedBounds); } } /*****************************************************************************/
; A256135: a(n) = 5^A000120(n). ; 1,5,5,25,5,25,25,125,5,25,25,125,25,125,125,625,5,25,25,125,25,125,125,625,25,125,125,625,125,625,625,3125,5,25,25,125,25,125,125,625,25,125,125,625,125,625,625,3125,25,125,125,625,125,625,625,3125,125,625,625,3125,625,3125,3125,15625 mov $1,$0 lpb $1 div $0,2 sub $1,$0 lpe mov $0,5 pow $0,$1
; A049086: Number of tilings of 4 X 3n rectangle by 1 X 3 rectangles. Rotations and reflections are considered distinct tilings. ; 1,3,13,57,249,1087,4745,20713,90417,394691,1722917,7520929,32830585,143313055,625594449,2730863665,11920848033,52037243619,227154537661,991581805481,4328482658041,18894822411423,82480245888473,360045244866137,1571680309076689,6860746056673507,29948734601003605,130733115144074193,570680117974033657,2491149979038949311,10874442656416719777,47469443462940784609,207215039324492713025,904541308890057931075,3948530869939752300909,17236245462353080424345,75240176010836203150073 mov $1,1 lpb $0 sub $0,1 add $2,$1 add $3,$1 add $1,$3 add $1,$3 add $3,$2 lpe mov $0,$1
/* * Copyright (c) 2020, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @file reader_impl.hpp * @brief cuDF-IO JSON reader class implementation header */ #pragma once #include "json.h" #include "json_gpu.h" #include <io/utilities/column_buffer.hpp> #include <hash/concurrent_unordered_map.cuh> #include <cudf/io/datasource.hpp> #include <cudf/io/detail/json.hpp> #include <cudf/io/json.hpp> #include <rmm/cuda_stream_view.hpp> #include <rmm/device_buffer.hpp> #include <thrust/device_vector.h> namespace cudf { namespace io { namespace detail { namespace json { using namespace cudf::io::json; using namespace cudf::io; using col_map_type = cudf::io::json::gpu::col_map_type; using col_map_ptr_type = std::unique_ptr<col_map_type, std::function<void(col_map_type *)>>; /** * @brief Class used to parse Json input and convert it into gdf columns. */ class reader::impl { public: private: const json_reader_options options_{}; rmm::mr::device_memory_resource *mr_ = nullptr; std::unique_ptr<datasource> source_; std::string filepath_; std::unique_ptr<datasource::buffer> buffer_; const char *uncomp_data_ = nullptr; size_t uncomp_size_ = 0; // Used when the input data is compressed, to ensure the allocated uncompressed data is freed std::vector<char> uncomp_data_owner_; rmm::device_buffer data_; rmm::device_vector<uint64_t> rec_starts_; size_t byte_range_offset_ = 0; size_t byte_range_size_ = 0; bool load_whole_file_ = true; table_metadata metadata_; std::vector<data_type> dtypes_; // the map is only used for files with rows in object format; initialize to a dummy value so the // map object can be passed to the kernel in any case col_map_ptr_type key_to_col_idx_map_; std::unique_ptr<rmm::device_scalar<col_map_type>> d_key_col_map_; // parsing options const bool allow_newlines_in_strings_ = false; parse_options opts_{',', '\n', '\"', '.'}; /** * @brief Sets the column map data member and makes a device copy to be used as a kernel * parameter. */ void set_column_map(col_map_ptr_type &&map) { key_to_col_idx_map_ = std::move(map); d_key_col_map_ = std::make_unique<rmm::device_scalar<col_map_type>>(*key_to_col_idx_map_); } /** * @brief Gets the pointer to the column hash map in the device memory. * * Returns `nullptr` if the map is not created. */ auto get_column_map_device_ptr() { return key_to_col_idx_map_ ? d_key_col_map_->data() : nullptr; } /** * @brief Ingest input JSON file/buffer, without decompression * * Sets the source_, byte_range_offset_, and byte_range_size_ data members * * @param[in] range_offset Number of bytes offset from the start * @param[in] range_size Bytes to read; use `0` for all remaining data */ void ingest_raw_input(size_t range_offset, size_t range_size); /** * @brief Extract the JSON objects keys from the input file with object rows. * * @return Array of keys and a map that maps their hash values to column indices */ std::pair<std::vector<std::string>, col_map_ptr_type> get_json_object_keys_hashes( rmm::cuda_stream_view stream); /** * @brief Decompress the input data, if needed * * Sets the uncomp_data_ and uncomp_size_ data members */ void decompress_input(rmm::cuda_stream_view stream); /** * @brief Finds all record starts in the file and stores them in rec_starts_ * * Does not upload the entire file to the GPU * * @param[in] stream CUDA stream used for device memory operations and kernel launches. */ void set_record_starts(rmm::cuda_stream_view stream); /** * @brief Uploads the relevant segment of the input json data onto the GPU. * * Sets the d_data_ data member. * Only rows that need to be parsed are copied, based on the byte range * Also updates the array of record starts to match the device data offset. */ void upload_data_to_device(rmm::cuda_stream_view stream); /** * @brief Parse the first row to set the column name * * Sets the column_names_ data member * * @param[in] stream CUDA stream used for device memory operations and kernel launches. */ void set_column_names(rmm::cuda_stream_view stream); /** * @brief Set the data type array data member * * If user does not pass the data types, deduces types from the file content * * @param[in] stream CUDA stream used for device memory operations and kernel launches. */ void set_data_types(rmm::cuda_stream_view stream); /** * @brief Parse the input data and store results a table * * @param[in] stream CUDA stream used for device memory operations and kernel launches. * * @return Table and its metadata */ table_with_metadata convert_data_to_table(rmm::cuda_stream_view stream); public: /** * @brief Constructor from a dataset source with reader options. */ explicit impl(std::unique_ptr<datasource> source, std::string filepath, json_reader_options const &options, rmm::mr::device_memory_resource *mr); /** * @brief Read an entire set or a subset of data from the source * * @param[in] options Settings for controlling reading behavior * @param[in] stream CUDA stream used for device memory operations and kernel launches. * * @return Table and its metadata */ table_with_metadata read(json_reader_options const &options, rmm::cuda_stream_view stream); }; } // namespace json } // namespace detail } // namespace io } // namespace cudf
; ; Mattel Aquarius routines ; by Stefano Bodrato, Fall 2013 ; ; int set_psg(int reg, int val); ; ; Play a sound by PSG ; ; ; $Id: psg_init.asm,v 1.2 2015/01/19 01:33:04 pauloscustodio Exp $ ; PUBLIC psg_init psg_init: ld e,@01010101 xor a ; R0: Channel A frequency low bits call outpsg ld e,a ld d,12 psg_iniloop: inc a ; R1-13: set all to 0 but 7 and 11 cp 7 jr z,skip ;cp 11 ;jr z,skip call outpsg skip: dec d jr nz,psg_iniloop ld e,@11111000 ; R7: Channel setting. Enable sound channels ABC and input on ports A and B ld a,7 call outpsg ld e,@00001011 ; R11: Envelope ld a,11 outpsg: LD BC,$F7 OUT (C),A ld a,e dec c OUT (C),A ret
; ; Copyright (c) 2016, Alliance for Open Media. All rights reserved ; ; This source code is subject to the terms of the BSD 2 Clause License and ; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License ; was not distributed with this source code in the LICENSE file, you can ; obtain it at www.aomedia.org/license/software. If the Alliance for Open ; Media Patent License 1.0 was not distributed with this source code in the ; PATENTS file, you can obtain it at www.aomedia.org/license/patent. ; ; %include "third_party/x86inc/x86inc.asm" SECTION_RODATA pw_64: times 8 dw 64 even_byte_mask: times 8 dw 0x00ff ; %define USE_PMULHRSW ; NOTE: pmulhrsw has a latency of 5 cycles. Tests showed a performance loss ; when using this instruction. ; ; The add order below (based on ffav1) must be followed to prevent outranges. ; x = k0k1 + k4k5 ; y = k2k3 + k6k7 ; z = signed SAT(x + y) SECTION .text %define LOCAL_VARS_SIZE 16*6 %macro SETUP_LOCAL_VARS 0 ; TODO(slavarnway): using xmm registers for these on ARCH_X86_64 + ; pmaddubsw has a higher latency on some platforms, this might be eased by ; interleaving the instructions. %define k0k1 [rsp + 16*0] %define k2k3 [rsp + 16*1] %define k4k5 [rsp + 16*2] %define k6k7 [rsp + 16*3] packsswb m4, m4 ; TODO(slavarnway): multiple pshufb instructions had a higher latency on ; some platforms. pshuflw m0, m4, 0b ;k0_k1 pshuflw m1, m4, 01010101b ;k2_k3 pshuflw m2, m4, 10101010b ;k4_k5 pshuflw m3, m4, 11111111b ;k6_k7 punpcklqdq m0, m0 punpcklqdq m1, m1 punpcklqdq m2, m2 punpcklqdq m3, m3 mova k0k1, m0 mova k2k3, m1 mova k4k5, m2 mova k6k7, m3 %if ARCH_X86_64 %define krd m12 %define tmp0 [rsp + 16*4] %define tmp1 [rsp + 16*5] mova krd, [GLOBAL(pw_64)] %else %define krd [rsp + 16*4] %if CONFIG_PIC=0 mova m6, [GLOBAL(pw_64)] %else ; build constants without accessing global memory pcmpeqb m6, m6 ;all ones psrlw m6, 15 psllw m6, 6 ;aka pw_64 %endif mova krd, m6 %endif %endm ;------------------------------------------------------------------------------- %if ARCH_X86_64 %define LOCAL_VARS_SIZE_H4 0 %else %define LOCAL_VARS_SIZE_H4 16*4 %endif %macro SUBPIX_HFILTER4 1 cglobal filter_block1d4_%1, 6, 6, 11, LOCAL_VARS_SIZE_H4, \ src, sstride, dst, dstride, height, filter mova m4, [filterq] packsswb m4, m4 %if ARCH_X86_64 %define k0k1k4k5 m8 %define k2k3k6k7 m9 %define krd m10 mova krd, [GLOBAL(pw_64)] pshuflw k0k1k4k5, m4, 0b ;k0_k1 pshufhw k0k1k4k5, k0k1k4k5, 10101010b ;k0_k1_k4_k5 pshuflw k2k3k6k7, m4, 01010101b ;k2_k3 pshufhw k2k3k6k7, k2k3k6k7, 11111111b ;k2_k3_k6_k7 %else %define k0k1k4k5 [rsp + 16*0] %define k2k3k6k7 [rsp + 16*1] %define krd [rsp + 16*2] pshuflw m6, m4, 0b ;k0_k1 pshufhw m6, m6, 10101010b ;k0_k1_k4_k5 pshuflw m7, m4, 01010101b ;k2_k3 pshufhw m7, m7, 11111111b ;k2_k3_k6_k7 %if CONFIG_PIC=0 mova m1, [GLOBAL(pw_64)] %else ; build constants without accessing global memory pcmpeqb m1, m1 ;all ones psrlw m1, 15 psllw m1, 6 ;aka pw_64 %endif mova k0k1k4k5, m6 mova k2k3k6k7, m7 mova krd, m1 %endif dec heightd .loop: ;Do two rows at once movu m4, [srcq - 3] movu m5, [srcq + sstrideq - 3] punpckhbw m1, m4, m4 punpcklbw m4, m4 punpckhbw m3, m5, m5 punpcklbw m5, m5 palignr m0, m1, m4, 1 pmaddubsw m0, k0k1k4k5 palignr m1, m4, 5 pmaddubsw m1, k2k3k6k7 palignr m2, m3, m5, 1 pmaddubsw m2, k0k1k4k5 palignr m3, m5, 5 pmaddubsw m3, k2k3k6k7 punpckhqdq m4, m0, m2 punpcklqdq m0, m2 punpckhqdq m5, m1, m3 punpcklqdq m1, m3 paddsw m0, m4 paddsw m1, m5 %ifidn %1, h8_avg movd m4, [dstq] movd m5, [dstq + dstrideq] %endif paddsw m0, m1 paddsw m0, krd psraw m0, 7 %ifidn %1, h8_add_src pxor m3, m3 movu m4, [srcq] movu m5, [srcq + sstrideq] punpckldq m4, m5 ; Bytes 0,1,2,3 from row 0, then 0,1,2,3 from row 2 punpcklbw m4, m3 paddsw m0, m4 %endif packuswb m0, m0 psrldq m1, m0, 4 %ifidn %1, h8_avg pavgb m0, m4 pavgb m1, m5 %endif movd [dstq], m0 movd [dstq + dstrideq], m1 lea srcq, [srcq + sstrideq ] prefetcht0 [srcq + 4 * sstrideq - 3] lea srcq, [srcq + sstrideq ] lea dstq, [dstq + 2 * dstrideq ] prefetcht0 [srcq + 2 * sstrideq - 3] sub heightd, 2 jg .loop ; Do last row if output_height is odd jne .done movu m4, [srcq - 3] punpckhbw m1, m4, m4 punpcklbw m4, m4 palignr m0, m1, m4, 1 palignr m1, m4, 5 pmaddubsw m0, k0k1k4k5 pmaddubsw m1, k2k3k6k7 psrldq m2, m0, 8 psrldq m3, m1, 8 paddsw m0, m2 paddsw m1, m3 paddsw m0, m1 paddsw m0, krd psraw m0, 7 %ifidn %1, h8_add_src pxor m3, m3 movu m4, [srcq] punpcklbw m4, m3 paddsw m0, m4 %endif packuswb m0, m0 %ifidn %1, h8_avg movd m4, [dstq] pavgb m0, m4 %endif movd [dstq], m0 .done: REP_RET %endm ;------------------------------------------------------------------------------- %macro SUBPIX_HFILTER8 1 cglobal filter_block1d8_%1, 6, 6, 14, LOCAL_VARS_SIZE, \ src, sstride, dst, dstride, height, filter mova m4, [filterq] SETUP_LOCAL_VARS dec heightd .loop: ;Do two rows at once movu m0, [srcq - 3] movu m4, [srcq + sstrideq - 3] punpckhbw m1, m0, m0 punpcklbw m0, m0 palignr m5, m1, m0, 13 pmaddubsw m5, k6k7 palignr m2, m1, m0, 5 palignr m3, m1, m0, 9 palignr m1, m0, 1 pmaddubsw m1, k0k1 punpckhbw m6, m4, m4 punpcklbw m4, m4 pmaddubsw m2, k2k3 pmaddubsw m3, k4k5 palignr m7, m6, m4, 13 palignr m0, m6, m4, 5 pmaddubsw m7, k6k7 paddsw m1, m3 paddsw m2, m5 paddsw m1, m2 %ifidn %1, h8_avg movh m2, [dstq] movhps m2, [dstq + dstrideq] %endif palignr m5, m6, m4, 9 palignr m6, m4, 1 pmaddubsw m0, k2k3 pmaddubsw m6, k0k1 paddsw m1, krd pmaddubsw m5, k4k5 psraw m1, 7 paddsw m0, m7 paddsw m6, m5 paddsw m6, m0 paddsw m6, krd psraw m6, 7 %ifidn %1, h8_add_src pxor m3, m3 movu m4, [srcq] movu m5, [srcq + sstrideq] punpcklbw m4, m3 punpcklbw m5, m3 paddsw m1, m4 paddsw m6, m5 %endif packuswb m1, m6 %ifidn %1, h8_avg pavgb m1, m2 %endif movh [dstq], m1 movhps [dstq + dstrideq], m1 lea srcq, [srcq + sstrideq ] prefetcht0 [srcq + 4 * sstrideq - 3] lea srcq, [srcq + sstrideq ] lea dstq, [dstq + 2 * dstrideq ] prefetcht0 [srcq + 2 * sstrideq - 3] sub heightd, 2 jg .loop ; Do last row if output_height is odd jne .done movu m0, [srcq - 3] punpckhbw m3, m0, m0 punpcklbw m0, m0 palignr m1, m3, m0, 1 palignr m2, m3, m0, 5 palignr m4, m3, m0, 13 palignr m3, m0, 9 pmaddubsw m1, k0k1 pmaddubsw m2, k2k3 pmaddubsw m3, k4k5 pmaddubsw m4, k6k7 paddsw m1, m3 paddsw m4, m2 paddsw m1, m4 paddsw m1, krd psraw m1, 7 %ifidn %1, h8_add_src pxor m6, m6 movu m5, [srcq] punpcklbw m5, m6 paddsw m1, m5 %endif packuswb m1, m1 %ifidn %1, h8_avg movh m0, [dstq] pavgb m1, m0 %endif movh [dstq], m1 .done: REP_RET %endm ;------------------------------------------------------------------------------- %macro SUBPIX_HFILTER16 1 cglobal filter_block1d16_%1, 6, 6, 14, LOCAL_VARS_SIZE, \ src, sstride, dst, dstride, height, filter mova m4, [filterq] SETUP_LOCAL_VARS .loop: prefetcht0 [srcq + 2 * sstrideq -3] movu m0, [srcq - 3] movu m4, [srcq - 2] pmaddubsw m0, k0k1 pmaddubsw m4, k0k1 movu m1, [srcq - 1] movu m5, [srcq + 0] pmaddubsw m1, k2k3 pmaddubsw m5, k2k3 movu m2, [srcq + 1] movu m6, [srcq + 2] pmaddubsw m2, k4k5 pmaddubsw m6, k4k5 movu m3, [srcq + 3] movu m7, [srcq + 4] pmaddubsw m3, k6k7 pmaddubsw m7, k6k7 paddsw m0, m2 paddsw m1, m3 paddsw m0, m1 paddsw m4, m6 paddsw m5, m7 paddsw m4, m5 paddsw m0, krd paddsw m4, krd psraw m0, 7 psraw m4, 7 %ifidn %1, h8_add_src movu m5, [srcq] mova m7, m5 pand m5, [even_byte_mask] psrlw m7, 8 paddsw m0, m5 paddsw m4, m7 %endif packuswb m0, m0 packuswb m4, m4 punpcklbw m0, m4 %ifidn %1, h8_avg pavgb m0, [dstq] %endif lea srcq, [srcq + sstrideq] mova [dstq], m0 lea dstq, [dstq + dstrideq] dec heightd jnz .loop REP_RET %endm INIT_XMM ssse3 SUBPIX_HFILTER16 h8 SUBPIX_HFILTER16 h8_avg SUBPIX_HFILTER8 h8 SUBPIX_HFILTER8 h8_avg SUBPIX_HFILTER4 h8 SUBPIX_HFILTER4 h8_avg %if CONFIG_LOOP_RESTORATION SUBPIX_HFILTER16 h8_add_src SUBPIX_HFILTER8 h8_add_src SUBPIX_HFILTER4 h8_add_src %endif ;------------------------------------------------------------------------------- ; TODO(Linfeng): Detect cpu type and choose the code with better performance. %define X86_SUBPIX_VFILTER_PREFER_SLOW_CELERON 1 %if ARCH_X86_64 && X86_SUBPIX_VFILTER_PREFER_SLOW_CELERON %define NUM_GENERAL_REG_USED 9 %else %define NUM_GENERAL_REG_USED 6 %endif %macro SUBPIX_VFILTER 2 cglobal filter_block1d%2_%1, 6, NUM_GENERAL_REG_USED, 15, LOCAL_VARS_SIZE, \ src, sstride, dst, dstride, height, filter mova m4, [filterq] SETUP_LOCAL_VARS %ifidn %2, 8 %define movx movh %else %define movx movd %endif dec heightd %if ARCH_X86 || X86_SUBPIX_VFILTER_PREFER_SLOW_CELERON %if ARCH_X86_64 %define src1q r7 %define sstride6q r8 %define dst_stride dstrideq %else %define src1q filterq %define sstride6q dstrideq %define dst_stride dstridemp %endif mov src1q, srcq add src1q, sstrideq lea sstride6q, [sstrideq + sstrideq * 4] add sstride6q, sstrideq ;pitch * 6 .loop: ;Do two rows at once movx m0, [srcq ] ;A movx m1, [src1q ] ;B punpcklbw m0, m1 ;A B movx m2, [srcq + sstrideq * 2 ] ;C pmaddubsw m0, k0k1 mova m6, m2 movx m3, [src1q + sstrideq * 2] ;D punpcklbw m2, m3 ;C D pmaddubsw m2, k2k3 movx m4, [srcq + sstrideq * 4 ] ;E mova m7, m4 movx m5, [src1q + sstrideq * 4] ;F punpcklbw m4, m5 ;E F pmaddubsw m4, k4k5 punpcklbw m1, m6 ;A B next iter movx m6, [srcq + sstride6q ] ;G punpcklbw m5, m6 ;E F next iter punpcklbw m3, m7 ;C D next iter pmaddubsw m5, k4k5 movx m7, [src1q + sstride6q ] ;H punpcklbw m6, m7 ;G H pmaddubsw m6, k6k7 pmaddubsw m3, k2k3 pmaddubsw m1, k0k1 paddsw m0, m4 paddsw m2, m6 movx m6, [srcq + sstrideq * 8 ] ;H next iter punpcklbw m7, m6 pmaddubsw m7, k6k7 paddsw m0, m2 paddsw m0, krd psraw m0, 7 paddsw m1, m5 %ifidn %1, v8_add_src pxor m6, m6 movu m4, [srcq] punpcklbw m4, m6 paddsw m0, m4 %endif packuswb m0, m0 paddsw m3, m7 paddsw m1, m3 paddsw m1, krd psraw m1, 7 %ifidn %1, v8_add_src movu m4, [src1q] punpcklbw m4, m6 paddsw m1, m4 %endif lea srcq, [srcq + sstrideq * 2 ] lea src1q, [src1q + sstrideq * 2] packuswb m1, m1 %ifidn %1, v8_avg movx m2, [dstq] pavgb m0, m2 %endif movx [dstq], m0 add dstq, dst_stride %ifidn %1, v8_avg movx m3, [dstq] pavgb m1, m3 %endif movx [dstq], m1 add dstq, dst_stride sub heightd, 2 jg .loop ; Do last row if output_height is odd jne .done movx m0, [srcq ] ;A movx m1, [srcq + sstrideq ] ;B movx m6, [srcq + sstride6q ] ;G punpcklbw m0, m1 ;A B movx m7, [src1q + sstride6q ] ;H pmaddubsw m0, k0k1 movx m2, [srcq + sstrideq * 2 ] ;C punpcklbw m6, m7 ;G H movx m3, [src1q + sstrideq * 2] ;D pmaddubsw m6, k6k7 movx m4, [srcq + sstrideq * 4 ] ;E punpcklbw m2, m3 ;C D movx m5, [src1q + sstrideq * 4] ;F punpcklbw m4, m5 ;E F pmaddubsw m2, k2k3 pmaddubsw m4, k4k5 paddsw m2, m6 paddsw m0, m4 paddsw m0, m2 paddsw m0, krd psraw m0, 7 %ifidn %1, v8_add_src pxor m6, m6 movu m4, [srcq] punpcklbw m4, m6 paddsw m0, m4 %endif packuswb m0, m0 %ifidn %1, v8_avg movx m1, [dstq] pavgb m0, m1 %endif movx [dstq], m0 %else ; ARCH_X86_64 movx m0, [srcq ] ;A movx m1, [srcq + sstrideq ] ;B lea srcq, [srcq + sstrideq * 2 ] movx m2, [srcq] ;C movx m3, [srcq + sstrideq] ;D lea srcq, [srcq + sstrideq * 2 ] movx m4, [srcq] ;E movx m5, [srcq + sstrideq] ;F lea srcq, [srcq + sstrideq * 2 ] movx m6, [srcq] ;G punpcklbw m0, m1 ;A B punpcklbw m1, m2 ;A B next iter punpcklbw m2, m3 ;C D punpcklbw m3, m4 ;C D next iter punpcklbw m4, m5 ;E F punpcklbw m5, m6 ;E F next iter .loop: ;Do two rows at once movx m7, [srcq + sstrideq] ;H lea srcq, [srcq + sstrideq * 2 ] movx m14, [srcq] ;H next iter punpcklbw m6, m7 ;G H punpcklbw m7, m14 ;G H next iter pmaddubsw m8, m0, k0k1 pmaddubsw m9, m1, k0k1 mova m0, m2 mova m1, m3 pmaddubsw m10, m2, k2k3 pmaddubsw m11, m3, k2k3 mova m2, m4 mova m3, m5 pmaddubsw m4, k4k5 pmaddubsw m5, k4k5 paddsw m8, m4 paddsw m9, m5 mova m4, m6 mova m5, m7 pmaddubsw m6, k6k7 pmaddubsw m7, k6k7 paddsw m10, m6 paddsw m11, m7 paddsw m8, m10 paddsw m9, m11 mova m6, m14 paddsw m8, krd paddsw m9, krd psraw m8, 7 psraw m9, 7 %ifidn %2, 4 packuswb m8, m8 packuswb m9, m9 %else packuswb m8, m9 %endif %ifidn %1, v8_avg movx m7, [dstq] %ifidn %2, 4 movx m10, [dstq + dstrideq] pavgb m9, m10 %else movhpd m7, [dstq + dstrideq] %endif pavgb m8, m7 %endif movx [dstq], m8 %ifidn %2, 4 movx [dstq + dstrideq], m9 %else movhpd [dstq + dstrideq], m8 %endif lea dstq, [dstq + dstrideq * 2 ] sub heightd, 2 jg .loop ; Do last row if output_height is odd jne .done movx m7, [srcq + sstrideq] ;H punpcklbw m6, m7 ;G H pmaddubsw m0, k0k1 pmaddubsw m2, k2k3 pmaddubsw m4, k4k5 pmaddubsw m6, k6k7 paddsw m0, m4 paddsw m2, m6 paddsw m0, m2 paddsw m0, krd psraw m0, 7 packuswb m0, m0 %ifidn %1, v8_avg movx m1, [dstq] pavgb m0, m1 %endif movx [dstq], m0 %endif ; ARCH_X86_64 .done: REP_RET %endm ;------------------------------------------------------------------------------- %macro SUBPIX_VFILTER16 1 cglobal filter_block1d16_%1, 6, NUM_GENERAL_REG_USED, 16, LOCAL_VARS_SIZE, \ src, sstride, dst, dstride, height, filter mova m4, [filterq] SETUP_LOCAL_VARS %if ARCH_X86 || X86_SUBPIX_VFILTER_PREFER_SLOW_CELERON %if ARCH_X86_64 %define src1q r7 %define sstride6q r8 %define dst_stride dstrideq %else %define src1q filterq %define sstride6q dstrideq %define dst_stride dstridemp %endif lea src1q, [srcq + sstrideq] lea sstride6q, [sstrideq + sstrideq * 4] add sstride6q, sstrideq ;pitch * 6 .loop: movh m0, [srcq ] ;A movh m1, [src1q ] ;B movh m2, [srcq + sstrideq * 2 ] ;C movh m3, [src1q + sstrideq * 2] ;D movh m4, [srcq + sstrideq * 4 ] ;E movh m5, [src1q + sstrideq * 4] ;F punpcklbw m0, m1 ;A B movh m6, [srcq + sstride6q] ;G punpcklbw m2, m3 ;C D movh m7, [src1q + sstride6q] ;H punpcklbw m4, m5 ;E F pmaddubsw m0, k0k1 movh m3, [srcq + 8] ;A pmaddubsw m2, k2k3 punpcklbw m6, m7 ;G H movh m5, [srcq + sstrideq + 8] ;B pmaddubsw m4, k4k5 punpcklbw m3, m5 ;A B movh m7, [srcq + sstrideq * 2 + 8] ;C pmaddubsw m6, k6k7 movh m5, [src1q + sstrideq * 2 + 8] ;D punpcklbw m7, m5 ;C D paddsw m2, m6 pmaddubsw m3, k0k1 movh m1, [srcq + sstrideq * 4 + 8] ;E paddsw m0, m4 pmaddubsw m7, k2k3 movh m6, [src1q + sstrideq * 4 + 8] ;F punpcklbw m1, m6 ;E F paddsw m0, m2 paddsw m0, krd movh m2, [srcq + sstride6q + 8] ;G pmaddubsw m1, k4k5 movh m5, [src1q + sstride6q + 8] ;H psraw m0, 7 punpcklbw m2, m5 ;G H pmaddubsw m2, k6k7 paddsw m7, m2 paddsw m3, m1 paddsw m3, m7 paddsw m3, krd psraw m3, 7 %ifidn %1, v8_add_src pxor m6, m6 movu m4, [src1q + 2 * sstrideq] ; Fetch from 3 rows down mova m5, m4 punpcklbw m4, m6 punpckhbw m5, m6 paddsw m0, m4 paddsw m3, m5 %endif packuswb m0, m3 add srcq, sstrideq add src1q, sstrideq %ifidn %1, v8_avg pavgb m0, [dstq] %endif mova [dstq], m0 add dstq, dst_stride dec heightd jnz .loop REP_RET %else ; ARCH_X86_64 dec heightd movu m1, [srcq ] ;A movu m3, [srcq + sstrideq ] ;B lea srcq, [srcq + sstrideq * 2] punpcklbw m0, m1, m3 ;A B punpckhbw m1, m3 ;A B movu m5, [srcq] ;C punpcklbw m2, m3, m5 ;A B next iter punpckhbw m3, m5 ;A B next iter mova tmp0, m2 ;store to stack mova tmp1, m3 ;store to stack movu m7, [srcq + sstrideq] ;D lea srcq, [srcq + sstrideq * 2] punpcklbw m4, m5, m7 ;C D punpckhbw m5, m7 ;C D movu m9, [srcq] ;E punpcklbw m6, m7, m9 ;C D next iter punpckhbw m7, m9 ;C D next iter movu m11, [srcq + sstrideq] ;F lea srcq, [srcq + sstrideq * 2] punpcklbw m8, m9, m11 ;E F punpckhbw m9, m11 ;E F movu m2, [srcq] ;G punpcklbw m10, m11, m2 ;E F next iter punpckhbw m11, m2 ;E F next iter .loop: ;Do two rows at once pmaddubsw m13, m0, k0k1 mova m0, m4 pmaddubsw m14, m8, k4k5 pmaddubsw m15, m4, k2k3 mova m4, m8 paddsw m13, m14 movu m3, [srcq + sstrideq] ;H lea srcq, [srcq + sstrideq * 2] punpcklbw m14, m2, m3 ;G H mova m8, m14 pmaddubsw m14, k6k7 paddsw m15, m14 paddsw m13, m15 paddsw m13, krd psraw m13, 7 pmaddubsw m14, m1, k0k1 pmaddubsw m1, m9, k4k5 pmaddubsw m15, m5, k2k3 paddsw m14, m1 mova m1, m5 mova m5, m9 punpckhbw m2, m3 ;G H mova m9, m2 pmaddubsw m2, k6k7 paddsw m15, m2 paddsw m14, m15 paddsw m14, krd psraw m14, 7 packuswb m13, m14 %ifidn %1, v8_avg pavgb m13, [dstq] %endif mova [dstq], m13 ; next iter pmaddubsw m15, tmp0, k0k1 pmaddubsw m14, m10, k4k5 pmaddubsw m13, m6, k2k3 paddsw m15, m14 mova tmp0, m6 mova m6, m10 movu m2, [srcq] ;G next iter punpcklbw m14, m3, m2 ;G H next iter mova m10, m14 pmaddubsw m14, k6k7 paddsw m13, m14 paddsw m15, m13 paddsw m15, krd psraw m15, 7 pmaddubsw m14, tmp1, k0k1 mova tmp1, m7 pmaddubsw m13, m7, k2k3 mova m7, m11 pmaddubsw m11, k4k5 paddsw m14, m11 punpckhbw m3, m2 ;G H next iter mova m11, m3 pmaddubsw m3, k6k7 paddsw m13, m3 paddsw m14, m13 paddsw m14, krd psraw m14, 7 packuswb m15, m14 %ifidn %1, v8_avg pavgb m15, [dstq + dstrideq] %endif mova [dstq + dstrideq], m15 lea dstq, [dstq + dstrideq * 2] sub heightd, 2 jg .loop ; Do last row if output_height is odd jne .done movu m3, [srcq + sstrideq] ;H punpcklbw m6, m2, m3 ;G H punpckhbw m2, m3 ;G H pmaddubsw m0, k0k1 pmaddubsw m1, k0k1 pmaddubsw m4, k2k3 pmaddubsw m5, k2k3 pmaddubsw m8, k4k5 pmaddubsw m9, k4k5 pmaddubsw m6, k6k7 pmaddubsw m2, k6k7 paddsw m0, m8 paddsw m1, m9 paddsw m4, m6 paddsw m5, m2 paddsw m0, m4 paddsw m1, m5 paddsw m0, krd paddsw m1, krd psraw m0, 7 psraw m1, 7 packuswb m0, m1 %ifidn %1, v8_avg pavgb m0, [dstq] %endif mova [dstq], m0 .done: REP_RET %endif ; ARCH_X86_64 %endm INIT_XMM ssse3 SUBPIX_VFILTER16 v8 SUBPIX_VFILTER16 v8_avg SUBPIX_VFILTER v8, 8 SUBPIX_VFILTER v8_avg, 8 SUBPIX_VFILTER v8, 4 SUBPIX_VFILTER v8_avg, 4 %if (ARCH_X86 || X86_SUBPIX_VFILTER_PREFER_SLOW_CELERON) && \ CONFIG_LOOP_RESTORATION SUBPIX_VFILTER16 v8_add_src SUBPIX_VFILTER v8_add_src, 8 SUBPIX_VFILTER v8_add_src, 4 %endif
global extended_add extended_add: mov rax, rdi add rax, rsi add rax, rdx add rax, rcx ret
; Small C+ Z88 Support Library ; ; Increment long by 1 ; ; djm 21/2/99 ; Rewritten so that I know it works properly! SECTION code_crt0_sccz80 PUBLIC l_inclong .l_inclong inc l ret nz inc h ret nz inc de ret ; inc hl ; ld a,h ; or l ; ret nz ; inc de ; ret IF ARCHAIC .l_inclong ld bc,1 add hl,bc ret nc inc de ret ENDIF