简体   繁体   English

如何在 8086 汇编语言中将 AX 寄存器的内容移动到 CS 寄存器

[英]How do i move the contents of AX register to CS register in 8086 Assembly Language

The questions that i have seen suggests that i have to use a JMP or a CALL but how.我看到的问题表明我必须使用 JMP 或 CALL 但如何使用。 I want to replace the instruction MOV CS, AX with a valid 8086 instruction(instructions) to resolve the error CS cannot be modified directly (use far JMP or CALL)我想用有效的 8086 指令(指令)替换指令MOV CS, AX以解决错误 CS 无法直接修改(使用远 JMP 或 CALL)

Here are a couple of examples:这里有几个例子:

        mov     ax,segment_value
        mov     bx,offset_value
        push    ax
        push    bx
        retf

;       ...

        DB      0EAh                ;far jump
        DW      offset_value
        DW      segment_value

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 汇编寄存器比较(8086) - Assembly register compares (8086) 我如何在寄存器中重写特定位? (汇编语言) - How do i over write a specific bit in a register? (assembly language) 如何打印emu8086中寄存器的内容? - How to print the contents of a register in emu8086? 如何在两个 16 位寄存器相乘后从 DX:AX 中提取内容以进行进一步计算? 8086汇编代码 - how to extract content from DX:AX after multiplication of two 16 bits register for further calculation? 8086 assembly code 汇编语言-LD寄存器到寄存器 - Assembly Language - LD register into register 如何将x86程序集中的寄存器内容打印到控制台? 我正在运行Linux - How do I print the contents of a register in x86 assembly to the console? I'm running Linux 如何将字符串存储在寄存器中? 有可能吗?组装x8086 - How do you store a string in a register? is it possible?Assembly x8086 汇编语言:如何打印 ax 命令行的值? - Assembly Language: How do I print the value of ax command line? 如何在寄存器中加载负值-汇编语言 - How can i load negative values in a register - assembly language 汇编-为什么在写操作期间我们需要将某些值从寄存器移动到另一个寄存器(例如,mov si,ax)? - Assembly - why do we need to move certain values from register to another register (f.ex., mov si, ax) during a write operation?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM