⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.asm

📁 使用CPLD仿真8088核,内有源程序和说明
💻 ASM
字号:
; http://gforge.openchip.org/projects/a86
;
; First Program being assembled and executed on a86 (FPGA implementation)
; (earlier it was only either simulation run or machine code programs)
;
; Increment AX, Write to Port (0x00FF)
; Delay some NOPs, repeat
; The effect is visible flashing on LEDs at higher Port pins
;
;
	CPU 8086

	NOP
	MOV AX,0ff00h
	SAHF
	NOP
	MOV AX,[BX+0h]
	MOV AX,[BP]
	MOV AX,[SI]
	MOV AX,[DI]

	NOP
lab1:
	OR ax,2345h

	NOP
	NOP
	AND ax,00ffh

	NOP
	NOP

	AND dx,0
	OR dx,1234h

	INC ax
	INC bx
	INC cx
	INC dx

	MOV cx,3	

lab2:
	NOP
	LOOP lab2

lab3:
	NOP
	JMP lab3

	NOP	
	NOP	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -