root
/
Engineering technology
/
Computer
/
Code interpreter
/
AS
/
sdas8051 笔记
Date: | 2022-05-30 16:00:00 |
Description: | sdas8051 笔记。 |
Keywords: | sdas8051, SDCC, Keil, ASM |
Tag: | sdas8051 |
Link: | https://www.diewuxi.com/blog/article/64.html |
Table of contents
^ 1 Changelog
* 2023-04-26
* Add Keil to ASXXXX convertion
* 2022-05-30
* Done.
^ 2 Convert guide
Convert from ASM51(Intel MCS-51 Macro Assembler) to sdas8051
^ 2.1 Directive
--------------------------------------------------------------------------------
ASM51 sdas8051 note
------------------------- ----------------------- --------------------
ORG {addr} .ORG {addr} must in ABS area
{symbol} EQU {expr} .EQU {symbol}, {expr}
DB {byte}, ... .DB {byte}, ...
DB '{string}', ... .STR /{string}/
$ .
END .END
--------------------------------------------------------------------------------
^ 2.2 Number
--------------------------------------------------------------------------------
ASM51 sdas8051
------------------------- ----------------------- --------------------
**H 0x**
**B 0b**
--------------------------------------------------------------------------------
^ 2.3 Other
sdas8051 builtin 8051 and 8052 SFR definitions, and DO NOT allow redefine.
sdas8051 dot need .END in some situations.
^ 2.4 Convertion procedure
head
ret
ORG
END
EQU
DB
$
hex value
binary value
Last modified: 2023-04-26
Viewed (55)
Liked (0)
Comments [0]
There is no comments now.
Add comment(* is necessary, and email is not shown to public)