mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
dd52f386b9
Kind of embarrassing... I had not implemented the FRED instruction, despite personally being one of the architects of FRED ;) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
35 lines
292 B
NASM
35 lines
292 B
NASM
bits 64
|
|
default rel
|
|
|
|
section .text
|
|
|
|
erets:
|
|
erets
|
|
eretu:
|
|
eretu
|
|
|
|
%macro lgs 1
|
|
mov gs,%1
|
|
lkgs %1
|
|
%endmacro
|
|
|
|
lkgs:
|
|
lgs [foo]
|
|
lgs ax
|
|
lgs word [foo]
|
|
lgs eax
|
|
%ifdef ERROR
|
|
lgs dword [foo]
|
|
%endif
|
|
lgs rax
|
|
%ifdef ERROR
|
|
lgs qword [foo]
|
|
%endif
|
|
|
|
align 8
|
|
|
|
section .data
|
|
alignb 8
|
|
foo:
|
|
dq 0
|