Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
snes9x2002
Commits
f19e6fb3
Commit
f19e6fb3
authored
Nov 10, 2015
by
aliaspider
Browse files
seriously ?!
-DASMCPU can be used now.
parent
741516b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/os9x_65c816_common.s
View file @
f19e6fb3
...
...
@@ -797,46 +797,46 @@ reg_cpu_var .req R14
.
macro
S9xSetWord
regValue
@
in
:
regValue
(
0
xhhll0000
)
@
in
:
rscratch
=
address
(
0x00
hhmmll
)
STMFD
R13
!,
{PC}
@
Push
return
address
MOV
R1
,
\
regValue
,
LSR
#
16
B
asmS9xSetWord
STMFD
R13
!,
{PC}
@
Push
return
address
B
asmS9xSetWord
MOV
R0
,
R0
.
endm
.
macro
S9xSetWordZero
@
in
:
rscratch
=
address
(
0x00
hhmmll
)
STMFD
R13
!,
{PC}
@
Push
return
address
MOV
R1
,#
0
STMFD
R13
!,
{PC}
@
Push
return
address
B
asmS9xSetWord
MOV
R0
,
R0
.
endm
.
macro
S9xSetWordLow
regValue
@
in
:
regValue
(
0x0000
hhll
)
@
in
:
rscratch
=
address
(
0x00
hhmmll
)
STMFD
R13
!,
{PC}
@
Push
return
address
MOV
R1
,
\
regValue
STMFD
R13
!,
{PC}
@
Push
return
address
B
asmS9xSetWord
MOV
R0
,
R0
.
endm
.
macro
S9xSetByte
regValue
@
in
:
regValue
(
0
xll000000
)
@
in
:
rscratch
=
address
(
0x00
hhmmll
)
STMFD
R13
!,
{PC}
@
Push
return
address
MOV
R1
,
\
regValue
,
LSR
#
24
STMFD
R13
!,
{PC}
@
Push
return
address
B
asmS9xSetByte
MOV
R0
,
R0
.
endm
.
macro
S9xSetByteZero
@
in
:
rscratch
=
address
(
0x00
hhmmll
)
STMFD
R13
!,
{PC}
@
Push
return
address
MOV
R1
,#
0
STMFD
R13
!,
{PC}
@
Push
return
address
B
asmS9xSetByte
MOV
R0
,
R0
.
endm
.
macro
S9xSetByteLow
regValue
@
in
:
regValue
(
0x000000
ll
)
@
in
:
rscratch
=
address
(
0x00
hhmmll
)
STMFD
R13
!,
{PC}
@
Push
return
address
MOV
R1
,
\
regValue
STMFD
R13
!,
{PC}
@
Push
return
address
B
asmS9xSetByte
MOV
R0
,
R0
.
endm
...
...
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