Diewuxi

Belive tomorrow will be better, love science and technology, support communication and understanding, always ready for thought turn.

Blog / engineering_technology / computer / code_interpreter / sdas8051 笔记

Blog


Article^ Parent

sdas8051 笔记


Date: 2022-05-30 16:00:00
Description: sdas8051 笔记。
Keywords: sdas8051, SDCC, Keil, ASM
Category: engineering_technology/computer/code_interpreter
Tag: sdas8051
Link: https://www.diewuxi.com/blog/article/64.html

Changelog

* 2023-04-26
    * Add Keil to ASXXXX convertion
* 2022-05-30
    * Done.
                        

Convert guide

Convert from ASM51(Intel MCS-51 Macro Assembler) to sdas8051

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
--------------------------------------------------------------------------------
                        

Number

--------------------------------------------------------------------------------
ASM51                       sdas8051
-------------------------   -----------------------         --------------------
**H                         0x**
**B                         0b**
--------------------------------------------------------------------------------
                        

Other

sdas8051 builtin 8051 and 8052 SFR definitions, and DO NOT allow redefine.
sdas8051 dot need .END in some situations.
                        

Convertion procedure

head
ret
ORG
END
EQU
DB
$
hex value
binary value
                        

Last modified: 2023-04-26

Comments [0]

There is no comments now.

Write comment(* is necessary, and email is not shown to public)


Diewuxi 2017--2024