📄 traffic_lights.asm
字号:
#MAKE_BIN#
#CS = 500#
#IP = 0#
; This is a sample of OUT instruction.
; It writes values to virtual I/O port
; of Traffic Lights Intersection, by
; setting bits we can turn off/on
; the lights. Your task will be to
; to improve it, and make it work just
; like real Traffic Lights System :)
MOV AX, 1
next_situation:
OUT 4, AX
ROL AX, 1 ; rotate bit.
JMP next_situation
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -