pushpop.h

来自「简单的虚拟机」· C头文件 代码 · 共 18 行

H
18
字号
#define handle_push16(operand) \	cpu.greg.sp-=2, \	*((word*)(cpu.ram+(cpu.sreg.ss<<4)+cpu.greg.sp)) = (operand)	#define handle_pop16(operand) \	(operand) = *((word*)(cpu.ram+(cpu.sreg.ss<<4)+cpu.greg.sp)), \	cpu.greg.sp+=2	#define handle_push8(operand) \	cpu.greg.sp--, \	*(cpu.ram+(cpu.sreg.ss<<4)+cpu.greg.sp) = (byte)(operand)	#define handle_pop8(operand) \	(operand) = *(cpu.ram+(cpu.sreg.ss<<4)+cpu.greg.sp), \	cpu.greg.sp++	

⌨️ 快捷键说明

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