I have been learning 8086 assembly using TASM. I am trying to make a jmp but for some reason it gives me the following errors:
Error tarea.ASM(42) Near jump or call to different CS
Error tarea.ASM(46) Near jump or call to different CS
Error tarea.ASM(50) Near jump or call to different CS
Error tarea.ASM(52) Symbol already different kind: SALIR
I'm using several macros (not sure that's their name but that's what my teacher calls them) eg. ImprimeM, but the error isn't in any of the lines with macros.
The code in question would be:
include macs.pbl
Pila Segment
Pila ends
Datos Segment
var db 1
var1 db 1
igualesM DB "Los numeros son iguales$"
MI1 db "Deme el primer numero$"
MI2 db "Deme el segundo numero$"
M1 db "El primero es mayor$"
M2 db "El segundo es mayor$"
salir db "Presione s para salir$"
Datos ends
Codigo Segment
Assume cs:Codigo , ds:Datos
Inicio:
xor ax,ax
mov ax,datos
mov ds,ax
vuelta:
ImprimeM MI1
RecibirN
mov ah,var;lo muevo para poder reutilizar la macro manteniendo el primer numero recibido
ImprimeM MI2
RecibirN
mov al,ah ; lo regreso para poder hacer cmp
cmp al,var
jz iguales
jns mayor1
js mayor2
iguales:
ImprimeM igualesM
jmp short salir
mayor2:
ImprimeM MI2
jmp short salir
mayor1:
ImprimeM MI1
jmp short salir
salir:
mov ah,4ch
int 21h
Terminar
ends ;aqui termina el programa
End inicio
Any help is appreciated