CodePudding user response:
You need to what platform based on single chip microcomputer? Different platforms microcontroller is different, there is 2000 h and 3000 h is RAM or the address of FlashROM area? Problem description is not clear,CodePudding user response:
This is done is microcomputer principle of no other description of the bookCodePudding user response:
Ha ha microcomputer principle, that is, 8086, 16 bits CPU; Looking for a 8086 c compiler, with c implementation first, and then the disassemblyCodePudding user response:
C programming in the compiler with the disassembly of the tool, the disassembly is the assembly codeCodePudding user response:
Mov si, 0 x2000Mov di, $0 x3000
Mov cl, $0 x0
Mov dl, $0 x0
Loop: mov bx, si
Inc si
CMPB $0 x0, [bx]
Jge next
Inc cl
Next: inc dl
CMP $0 xa, dl
Jl loop
Mov cl, al
Mov al, di