Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Brandon Warner
z80asm
Commits
4e4a040c
Commit
4e4a040c
authored
Dec 04, 2017
by
Brandon Warner
Browse files
missed reset ins
parent
017e2403
Pipeline
#441
passed with stage
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
z80asm.py
View file @
4e4a040c
...
...
@@ -226,7 +226,7 @@ INSTS = [
{
"inst"
:
"call"
,
"size"
:
3
,
"arg_re"
:
re
.
compile
(
"nz, *([^
\\
s]*)"
),
"bytecode"
:
0xC4
,
"out"
:
struct
.
Struct
(
'<BH'
)},
# call nz, **
{
"inst"
:
"push"
,
"size"
:
1
,
"arg_re"
:
re
.
compile
(
"bc"
),
"bytecode"
:
0xC5
,
"out"
:
struct
.
Struct
(
'<B'
)},
# push bc
{
"inst"
:
"add"
,
"size"
:
2
,
"arg_re"
:
re
.
compile
(
"a, *([^
\\
s]*)"
),
"bytecode"
:
0xC6
,
"out"
:
struct
.
Struct
(
'<BB'
)},
# add a, *
{
"inst"
:
"
o
r"
,
"size"
:
1
,
"arg_re"
:
re
.
compile
(
"00h"
),
"bytecode"
:
0xC7
,
"out"
:
struct
.
Struct
(
'<B'
)},
# rst 00h
{
"inst"
:
"r
st
"
,
"size"
:
1
,
"arg_re"
:
re
.
compile
(
"00h"
),
"bytecode"
:
0xC7
,
"out"
:
struct
.
Struct
(
'<B'
)},
# rst 00h
{
"inst"
:
"ret"
,
"size"
:
1
,
"arg_re"
:
re
.
compile
(
"z"
),
"bytecode"
:
0xC8
,
"out"
:
struct
.
Struct
(
'<B'
)},
# ret z
{
"inst"
:
"ret"
,
"size"
:
1
,
"arg_re"
:
None
,
"bytecode"
:
0xC9
,
"out"
:
struct
.
Struct
(
'<B'
)},
# ret
{
"inst"
:
"jp"
,
"size"
:
3
,
"arg_re"
:
re
.
compile
(
"z, *([^
\\
s]*)"
),
"bytecode"
:
0xCA
,
"out"
:
struct
.
Struct
(
'<BH'
)},
# jp z, **
...
...
@@ -234,7 +234,7 @@ INSTS = [
{
"inst"
:
"call"
,
"size"
:
3
,
"arg_re"
:
re
.
compile
(
"z, *([^
\\
s]*)"
),
"bytecode"
:
0xCC
,
"out"
:
struct
.
Struct
(
'<BH'
)},
# call z, **
{
"inst"
:
"call"
,
"size"
:
3
,
"arg_re"
:
re
.
compile
(
"([^
\\
s]*)"
),
"bytecode"
:
0xCD
,
"out"
:
struct
.
Struct
(
'<BH'
)},
# call **
{
"inst"
:
"adc"
,
"size"
:
2
,
"arg_re"
:
re
.
compile
(
"a, *([^
\\
s]*)"
),
"bytecode"
:
0xCE
,
"out"
:
struct
.
Struct
(
'<BB'
)},
# adc a, *
{
"inst"
:
"
cp
"
,
"size"
:
1
,
"arg_re"
:
re
.
compile
(
"08h"
),
"bytecode"
:
0xCF
,
"out"
:
struct
.
Struct
(
'<B'
)},
# rst 08h
{
"inst"
:
"
rst
"
,
"size"
:
1
,
"arg_re"
:
re
.
compile
(
"08h"
),
"bytecode"
:
0xCF
,
"out"
:
struct
.
Struct
(
'<B'
)},
# rst 08h
]
HEX_RE
=
re
.
compile
(
"0x[A-Fa-f0-9]+"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment