開啟MCU 8051 IDE

Project => New

一個空專案

main.s
.org 0h
jmp _start
.org 100h
_start:
mov p0, #0ffh
mov p0, #00h
jmp _start
按Ctrl+S並且加入Project

按F11編譯

Virtual HW => LED Panel,指定每顆LED的Port後,記得選擇ON

按F2進入Debug狀態

按F8單步

按F8單步