advanced_io.asm
来自「介绍用Java解析网络数据的三种特殊方法」· 汇编 代码 · 共 40 行
ASM
40 行
; This sample shows how to access
; virtual ports (00000Fh to 0FFFFh).
; These ports are emulated in
; "EmuPort.io" file (saved in
; Windows "Temp" folder).
;
; This new technology allows
; to make external add-on devices
; for Emu8086, such as led displays,
; thermostat, stepper-motor, etc...
; "DEVICES" folder contains sample
; device that works with this sample.
; (with Visual Basic source code).
; Start "LED_Display.exe" before
; running this sample (from "Virtual
; Devices" menu of the emulator).
#make_COM#
ORG 100h
mov ax, 1234
out 199, ax
mov ax, -5678
out 199, ax
; Eternal loop to write
; values to port:
mov ax, 0
x1:
out 199, ax
inc ax
jmp x1
ret
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?