z80_disassembler 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/z80_disassembler.rb +3 -3
- data/lib/z80_disassembler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e59d1cbc765de69aad6442c4f0bd64e1748f662a891252bc0eab7258d968381e
|
4
|
+
data.tar.gz: 193ab3d2c21c123031d93d332fb3a047b8f0fa3207949829f8a06964dbd28d7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be876acbc2a186a464eac57fe8bc76219efebc82135e45f944d2672e363861a4be54704871761bc6cb892e067ead7a935bafae8fbc61609b05817965d51944b3
|
7
|
+
data.tar.gz: ca92e84d316959a3a32f4c841f27f77b7f0aa243ced8a5e1605913c5a4ec67cfa9956eebc36f156be4a25427925ed1770a2a16ca820c64f6c996946913efba9f
|
data/lib/z80_disassembler.rb
CHANGED
@@ -152,7 +152,7 @@ module Z80Disassembler
|
|
152
152
|
def command_from_byte(byte)
|
153
153
|
case @prefix
|
154
154
|
when 'cb' then @prefix = nil; cb_prefix
|
155
|
-
when 'ed' then @prefix = nil; ed_prefix
|
155
|
+
when 'ed' then @prefix = nil; ed_prefix(byte)
|
156
156
|
when 'dd' then @xx = 'IX'; xx_prefix(byte)
|
157
157
|
when 'fd' then @xx = 'IY'; xx_prefix(byte)
|
158
158
|
when 'xx' then temp = @temp; @temp = nil; displacement(byte, temp)
|
@@ -297,7 +297,7 @@ module Z80Disassembler
|
|
297
297
|
["#{T_ROT[@y]} ", "BIT #{@y},", "RES #{@y},", "SET #{@y},"][@x] + T_R[@z]
|
298
298
|
end
|
299
299
|
|
300
|
-
def ed_prefix
|
300
|
+
def ed_prefix(byte)
|
301
301
|
if @x == 1
|
302
302
|
case @z
|
303
303
|
when 0 then "IN #{"#{T_R[@y]}," if @y != 6}(C)"
|
@@ -312,7 +312,7 @@ module Z80Disassembler
|
|
312
312
|
elsif @x == 2 && @z <= 3 && @y >= 4
|
313
313
|
[['LDI','CPI','INI','OUTI'],['LDD','CPD','IND','OUTD'],['LDIR','CPIR','INIR','OTIR'],['LDDR','CPDR','INDR','OTDR']][@y - 4][@z]
|
314
314
|
else
|
315
|
-
'
|
315
|
+
"#{'DB #ED'}, ##{byte.to_s(16).rjust(2, '0').upcase}"
|
316
316
|
end
|
317
317
|
end
|
318
318
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: z80_disassembler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dvitvitskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|