Blinkinlabs / ch554_sdcc

CH554 software development kit for SDCC
295 stars 70 forks source link

change db and hex number to sdcc format #27

Closed DeqingSun closed 3 years ago

DeqingSun commented 3 years ago

The SDCC assembler's syntax is a little different to Keil's. The proposed change has been tested in inline assembler.

Referring to http://svn.code.sf.net/p/sdcc/code/trunk/sdcc/sdas/doc/asmlnk.txt

$$,   0h, 0H, 0x, 0X    Hexadecimal radix operator.

                .byte   exp             ;Stores the binary value
                .db     exp             ;of the expression in the
                .fcb    exp             ;next byte.