traffic_lights.asm

来自「介绍用Java解析网络数据的三种特殊方法」· 汇编 代码 · 共 22 行

ASM
22
字号
#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 + =
减小字号Ctrl + -
显示快捷键?