id stringlengths 22 129 | text stringlengths 60 19.5k | arch stringclasses 9
values | syntax stringclasses 5
values | kind stringclasses 4
values | repo stringclasses 32
values | path stringlengths 7 108 | license stringclasses 10
values | commit stringlengths 40 40 | source_host stringclasses 1
value | category stringclasses 15
values | source_url stringlengths 85 192 | line_start int64 1 5.48k | line_end int64 4 5.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Terraspace/UASM:regress/src/linux64/Lin64_4.asm:3 | .endif
.while(1)
mov addrLen,sizeof(client_addr)
invoke accept, listenfd, ADDR client_addr, ADDR addrLen
.if(sdword ptr eax == -1)
invoke __errno_location
mov r10d,[rax]
invoke printf, CStr("Faild to accept client connection on socket: %d error: %d",10), listenfd, r10d
ret
.endif
mov clientfd,ea... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/linux64/Lin64_4.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/linux64/Lin64_4.asm | 81 | 140 |
Terraspace/UASM:regress/src/linux64/Lin64_4.asm:4 | invoke printf, "Reading from socket fd: %d\n", _clientfd
invoke recv, _clientfd, ADDR recvBuffer, 8, 0
.if(sdword ptr eax == -1)
invoke __errno_location
mov r10d,[rax]
invoke printf, "Error reading socket: %d\n",r10d
.else
invoke printf, "%s ...\n", ADDR recvBuffer
.endif
invoke close, _clientfd
lea rdi... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/linux64/Lin64_4.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/linux64/Lin64_4.asm | 121 | 157 |
Terraspace/UASM:regress/src/linux64/elf641.asm:2 | mov rax,a5
mov rax,a6
ret
p8 endp
pf proc a1:REAL8, a2:REAL8, a3:REAL8, a4:REAL8, a5:REAL8, a6:REAL8
movups xmm0,a1
movups xmm1,a2
movups xmm2,a3
movups xmm3,a4
movups xmm4,a5
movups xmm5,a6
ret
pf endp
pp proc a1:ptr
local b:dword
mov b,eax
mov rax,a1
ret
pp e... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/linux64/elf641.asm | Apache-2.0 | 66844a85dc41c45a5ec7b9471ec12f27c08797e1 | github | assembler | https://github.com/Terraspace/UASM/blob/66844a85dc41c45a5ec7b9471ec12f27c08797e1/regress/src/linux64/elf641.asm | 41 | 86 |
Terraspace/UASM:regress/src/linux64/libc.inc:1 | ; Declare GLIBC prototypes (with output format -elf64 SYSTEMV ABI is assumed as the default).
;********************************************************************************************
malloc PROTO memSize:QWORD
free PROTO memPtr:QWORD
printf PROTO pString:PTR, args:VARARG
exit PROTO exitcode:DWORD
close PROTO... | x86_64 | gas-like | handwritten | Terraspace/UASM | regress/src/linux64/libc.inc | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/linux64/libc.inc | 1 | 23 |
Terraspace/UASM:regress/src/linux64/linux64_sys.inc:1 | ; http://nullprogram.com/blog/2015/05/15/
; http://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/
; sys/syscall.h
SYS_write = 1
SYS_mmap = 9
SYS_munmap = 11
SYS_clone = 56
SYS_exit = 60
; unistd.h
STDIN = 0
STDOUT = 1
STDERR = 2
; sched.h
CLONE_VM = 0x00000100
CLONE_FS = 0x00000200
CLONE_FILES = ... | x86_64 | intel-like | handwritten | Terraspace/UASM | regress/src/linux64/linux64_sys.inc | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/linux64/linux64_sys.inc | 1 | 60 |
Terraspace/UASM:regress/src/linux64/linux64_sys.inc:2 | PROT_WRITE = 0x2
PROT_EXEC = 0x4
PROT_NONE = 0x0
THREAD_FLAGS = CLONE_VM OR CLONE_FS OR CLONE_FILES OR CLONE_SIGHAND OR CLONE_PARENT OR CLONE_THREAD OR CLONE_IO
STACK_SIZE = (4096 * 1024)
.code
; void puts(char *)
puts:
mov rsi, rdi
mov rdx, -1
pcount: inc rdx
cmp byte ptr [rsi + rdx], 0
jne pcount
mov r... | x86_64 | intel-like | handwritten | Terraspace/UASM | regress/src/linux64/linux64_sys.inc | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/linux64/linux64_sys.inc | 41 | 84 |
Terraspace/UASM:regress/src/linux64/socket.inc:1 | AF_INET equ 2
SOCK_STREAM equ 1
INADDR_ANY equ 0
in_addr STRUCT
s_addr dd ?
in_addr ENDS
sockaddr STRUCT
sa_family dw ?
sa_data db 14 DUP (?)
sockaddr ENDS
sockaddr_in STRUCT
sin_family dw ? ;eg AF_INET
sin_port dw ? ;eg htons(3490)
sin_addr in_addr <?>
sin_zero db 8 DUP(... | x86_64 | gas-like | handwritten | Terraspace/UASM | regress/src/linux64/socket.inc | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/linux64/socket.inc | 1 | 33 |
Terraspace/UASM:regress/src/linux64/xmmtypes.inc:1 | ; MM128 = yes
; HFA = no
; HVA = no
__m128b struct
b0 BYTE ?
b1 BYTE ?
b2 BYTE ?
b3 BYTE ?
b4 BYTE ?
b5 BYTE ?
b6 BYTE ?
b7 BYTE ?
b8 BYTE ?
b9 BYTE ?
b10 BYTE ?
b11 BYTE ?
b12 BYTE ?
b13 BYTE ?
b14 BYTE ?
b15 BYTE ?
__m128b ends
; MM128 = yes
; HFA = no
; HVA = no
__m128w struct
w0 WORD ?
w1... | x86_64 | gas-like | handwritten | Terraspace/UASM | regress/src/linux64/xmmtypes.inc | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/linux64/xmmtypes.inc | 1 | 60 |
Terraspace/UASM:regress/src/linux64/xmmtypes.inc:2 | i0 DWORD ?
i1 DWORD ?
i2 DWORD ?
i3 DWORD ?
__m128i ends
; MM128 = yes
; HFA = no
; HVA = no
__m128f struct
f0 real4 ?
f1 real4 ?
f2 real4 ?
f3 real4 ?
__m128f ends
; MM128 = yes
; HFA = no
; HVA = no
__m128d struct
d0 real8 ?
d1 real8 ?
__m128d ends
; MM128 = yes
; HFA = no
; HVA = no
__m128q s... | x86_64 | gas-like | handwritten | Terraspace/UASM | regress/src/linux64/xmmtypes.inc | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/linux64/xmmtypes.inc | 41 | 100 |
Terraspace/UASM:regress/src/linux64/xmmtypes.inc:3 | d64 __m128d <>
q64 __m128q <>
__m128 ends
; MM256 = yes
; HFA = no
; HVA = no
__m256b struct
b0 BYTE ?
b1 BYTE ?
b2 BYTE ?
b3 BYTE ?
b4 BYTE ?
b5 BYTE ?
b6 BYTE ?
b7 BYTE ?
b8 BYTE ?
b9 BYTE ?
b10 BYTE ?
b11 BYTE ?
b12 BYTE ?
b13 BYTE ?
b14 BYTE ?
b15 BYTE ?
b16 BYTE ?
b17 BYTE ?
b18 BYTE ?
b1... | x86_64 | gas-like | handwritten | Terraspace/UASM | regress/src/linux64/xmmtypes.inc | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/linux64/xmmtypes.inc | 81 | 140 |
Terraspace/UASM:regress/src/linux64/xmmtypes.inc:4 | __m256b ends
; MM256 = yes
; HFA = no
; HVA = no
__m256w struct
w0 WORD ?
w1 WORD ?
w2 WORD ?
w3 WORD ?
w4 WORD ?
w5 WORD ?
w6 WORD ?
w7 WORD ?
w8 WORD ?
w9 WORD ?
w10 WORD ?
w11 WORD ?
w12 WORD ?
w13 WORD ?
w14 WORD ?
w15 WORD ?
__m256w ends
; MM256 = yes
; HFA = no
; HVA = no
__m256i struct
... | x86_64 | gas-like | handwritten | Terraspace/UASM | regress/src/linux64/xmmtypes.inc | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/linux64/xmmtypes.inc | 121 | 180 |
Terraspace/UASM:regress/src/linux64/xmmtypes.inc:5 | ; HVA = no
__m256f struct
f0 real4 ?
f1 real4 ?
f2 real4 ?
f3 real4 ?
f4 real4 ?
f5 real4 ?
f6 real4 ?
f7 real4 ?
__m256f ends
; MM256 = yes
; HFA = no
; HVA = no
__m256d struct
d0 real8 ?
d1 real8 ?
d2 real8 ?
d3 real8 ?
__m256d ends
; MM256 = yes
; HFA = no
; HVA = no
__m256q struct
q0 QWORD ... | x86_64 | gas-like | handwritten | Terraspace/UASM | regress/src/linux64/xmmtypes.inc | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/linux64/xmmtypes.inc | 161 | 203 |
Terraspace/UASM:regress/src/literalerr/literr0.asm:1 | option casemap : none
option frame : auto; generate SEH - compatible prologues and epilogues
option win64 : 11; init shadow space, reserve stack at PROC level
option literals : ON
option evex:1
includelib msvcrt.lib
printf proto : vararg;
includelib kernel32.lib
includelib user32.lib
ExitProcess proto :dword
Messa... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/literalerr/literr0.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/literalerr/literr0.asm | 1 | 29 |
Terraspace/UASM:regress/src/literals/literals.asm:1 | option casemap : none
option frame : auto; generate SEH - compatible prologues and epilogues
option win64 : 11; init shadow space, reserve stack at PROC level
option literals : ON
option evex:1
includelib msvcrt.lib
printf proto : vararg;
includelib kernel32.lib
includelib user32.lib
ExitProcess proto : dword
Mess... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/literals/literals.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/literals/literals.asm | 1 | 60 |
Terraspace/UASM:regress/src/literals/literals.asm:2 | ;lea rax,mylab
;jmp QWORD PTR[rax+rdx*8]
invoke MessageBoxExA, 0, "This is a test", "heading", 0, 0
invoke MessageBoxExW, 0, L"У меня много денег", ADDR one, 0, 0
myadr1:
invoke MessageBoxExW, 0, L"لدي الكثير من المال", ADDR four, 0, 0
invoke MessageBoxExW, 0, L"Kuća", ADDR three, 0, 0
invoke... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/literals/literals.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/literals/literals.asm | 41 | 69 |
Terraspace/UASM:regress/src/literals_and_wchar/testu.asm:1 | .386
.MODEL FLAT, stdcall
option casemap:none
pushcontext listing ;suppress listing of includes
.nolist
.nocref
WIN32_LEAN_AND_MEAN equ 1 ;this is to reduce assembly time
include c:\jwasm\wininc\include\windows.inc
popcontext listing
includelib <kernel32.lib>
includelib <user32.lib>
... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/literals_and_wchar/testu.asm | Apache-2.0 | fc730df5eb83da45d753745914da0aa3823793b7 | github | assembler | https://github.com/Terraspace/UASM/blob/fc730df5eb83da45d753745914da0aa3823793b7/regress/src/literals_and_wchar/testu.asm | 1 | 50 |
Terraspace/UASM:regress/src/macho64/osx1.asm:1 | _printf proto systemv :PTR, :VARARG
.data
_str db "Hello world!",10,0
.code
_main:
push rbp
mov rbp,rsp
lea rdi,_str
xor al,al
call _printf
pop rbp
mov eax,0x2000001
syscall
end _main | x86_64 | nasm-like | handwritten | Terraspace/UASM | regress/src/macho64/osx1.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/macho64/osx1.asm | 1 | 19 |
Terraspace/UASM:regress/src/macho64/osx2.asm:1 | OPTION LITERALS:ON
_printf proto systemv :PTR, :VARARG
MyFunc proto
.code
_main:
sub rsp,8
invoke MyFunc
add rsp,8
mov eax,0x2000001
syscall
MyFunc PROC
invoke _printf, "Hello world!\n"
ret
MyFunc ENDP
end _main | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/macho64/osx2.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/macho64/osx2.asm | 1 | 20 |
Terraspace/UASM:regress/src/oo/oo1.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for th... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo1.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo1.asm:4 | invoke WriteConsole, rax, rbx, r10d, ADDR bWritten, NULL
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Set person name.
;---------------------------------------------------------------------------------------------------------------
M... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo1.asm | 121 | 180 |
Terraspace/UASM:regress/src/oo/oo1.asm:5 | ; Perform a calculation on two arguments.
;---------------------------------------------------------------------------------------------------------------
METHOD Person, DoAdd, <dword>, <USES rbx>, aValue:REAL4, bValue:REAL4
vmovss xmm0,aValue
vmovss xmm1,bValue
vaddss xmm0,xmm0,xmm1
vcvttss2si eax,xmm0
ret
ENDM... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo1.asm | 161 | 220 |
Terraspace/UASM:regress/src/oo/oo1.asm:6 | MainCRTStartup PROC FRAME
LOCAL person2:PTR Person
; A local variable to hold a reference to a Person type. (Note you can also use _DECLARE if the Object name includes <>).
invoke GetStdHandle,STD_OUTPUT_HANDLE
mov hOutput,rax
; Create two Person instances.
mov person1, _NEW(Person, 30, hOutp... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo1.asm | 201 | 260 |
Terraspace/UASM:regress/src/oo/oo1.asm:7 | xor eax,eax
.endif
; Using a register as an object pointer with c-style calls requires the type to specified after the pointer.
; The register must be doubley-indirect, in that it points to the pointer to the object, which allows for rapid iteration through lists of object pointers.
lea rsi,person1
[rsi].Perso... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo1.asm | 241 | 280 |
Terraspace/UASM:regress/src/oo/oo1.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for th... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 2fd5f0fea3c49a76121a51b744464ee8ccbf950c | github | assembler | https://github.com/Terraspace/UASM/blob/2fd5f0fea3c49a76121a51b744464ee8ccbf950c/regress/src/oo/oo1.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo1.asm:2 | ;---------------------------------------------------------------------------------------------------------------
; Define our Person class with 2 instance methods, 1 static method and 3 member fields.
;---------------------------------------------------------------------------------------------------------------
CLASS ... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 2fd5f0fea3c49a76121a51b744464ee8ccbf950c | github | assembler | https://github.com/Terraspace/UASM/blob/2fd5f0fea3c49a76121a51b744464ee8ccbf950c/regress/src/oo/oo1.asm | 41 | 100 |
Terraspace/UASM:regress/src/oo/oo1.asm:3 | mov (Person PTR [rcx]).human, 1 ; Alternative forms of reference.
mov [rcx].Person.human, 1 ; " "
mov isAlive,0
mov al,age
mov [rcx].age,al
.if( age < 100 )
mov isAlive,1
.endif
; The constructor MUST return it's this pointer in RAX.
mov rax,thisPtr
ret
ENDMETHOD
;------------------------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 2fd5f0fea3c49a76121a51b744464ee8ccbf950c | github | assembler | https://github.com/Terraspace/UASM/blob/2fd5f0fea3c49a76121a51b744464ee8ccbf950c/regress/src/oo/oo1.asm | 81 | 140 |
Terraspace/UASM:regress/src/oo/oo1.asm:4 | invoke WriteConsole, rax, rbx, r10d, ADDR bWritten, NULL
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Set person name.
;---------------------------------------------------------------------------------------------------------------
M... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 2fd5f0fea3c49a76121a51b744464ee8ccbf950c | github | assembler | https://github.com/Terraspace/UASM/blob/2fd5f0fea3c49a76121a51b744464ee8ccbf950c/regress/src/oo/oo1.asm | 121 | 180 |
Terraspace/UASM:regress/src/oo/oo1.asm:5 | ; Perform a calculation on two arguments.
;---------------------------------------------------------------------------------------------------------------
METHOD Person, DoAdd, <dword>, <USES rbx>, aValue:REAL4, bValue:REAL4
vmovss xmm0,aValue
vmovss xmm1,bValue
vaddss xmm0,xmm0,xmm1
vcvttss2si eax,xmm0
ret
ENDM... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 2fd5f0fea3c49a76121a51b744464ee8ccbf950c | github | assembler | https://github.com/Terraspace/UASM/blob/2fd5f0fea3c49a76121a51b744464ee8ccbf950c/regress/src/oo/oo1.asm | 161 | 220 |
Terraspace/UASM:regress/src/oo/oo1.asm:7 | xor eax,eax
.endif
; Using a register as an object pointer with c-style calls requires the type to specified after the pointer.
; The register must be doubley-indirect, in that it points to the pointer to the object, which allows for rapid iteration through lists of object pointers.
lea rsi,person1
[rsi].Perso... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 2fd5f0fea3c49a76121a51b744464ee8ccbf950c | github | assembler | https://github.com/Terraspace/UASM/blob/2fd5f0fea3c49a76121a51b744464ee8ccbf950c/regress/src/oo/oo1.asm | 241 | 280 |
Terraspace/UASM:regress/src/oo/oo1.asm:4 | invoke WriteConsole, rax, rbx, r10d, ADDR bWritten, NULL
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Set person name.
;---------------------------------------------------------------------------------------------------------------
M... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 5a41f9c8ce25132abc9c704764df22bd6dab13a0 | github | assembler | https://github.com/Terraspace/UASM/blob/5a41f9c8ce25132abc9c704764df22bd6dab13a0/regress/src/oo/oo1.asm | 121 | 180 |
Terraspace/UASM:regress/src/oo/oo1.asm:5 | ; Perform a calculation on two arguments.
;---------------------------------------------------------------------------------------------------------------
METHOD Person, DoAdd, <dword>, <USES rbx>, aValue:REAL4, bValue:REAL4
vmovss xmm0,aValue
vmovss xmm1,bValue
vaddss xmm0,xmm0,xmm1
vcvttss2si eax,xmm0
ret
ENDM... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 5a41f9c8ce25132abc9c704764df22bd6dab13a0 | github | assembler | https://github.com/Terraspace/UASM/blob/5a41f9c8ce25132abc9c704764df22bd6dab13a0/regress/src/oo/oo1.asm | 161 | 220 |
Terraspace/UASM:regress/src/oo/oo1.asm:7 | .endif
; Using a register as an object pointer with c-style calls requires the type to specified after the pointer.
; The register must be doubley-indirect, in that it points to the pointer to the object, which allows for rapid iteration through lists of object pointers.
lea rsi,person1
[rsi].Person->Calc(1.0)
... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 5a41f9c8ce25132abc9c704764df22bd6dab13a0 | github | assembler | https://github.com/Terraspace/UASM/blob/5a41f9c8ce25132abc9c704764df22bd6dab13a0/regress/src/oo/oo1.asm | 241 | 275 |
Terraspace/UASM:regress/src/oo/oo1.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for th... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 6df9d1c9f082dfa2da39614342e5016fb8b26216 | github | assembler | https://github.com/Terraspace/UASM/blob/6df9d1c9f082dfa2da39614342e5016fb8b26216/regress/src/oo/oo1.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo1.asm:3 | mov isAlive,0
mov al,age
mov [rcx].age,al
.if( age < 100 )
mov isAlive,1
.endif
; The constructor MUST return it's this pointer in RAX.
mov rax,thisPtr
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Destructor
; Takes no argu... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 6df9d1c9f082dfa2da39614342e5016fb8b26216 | github | assembler | https://github.com/Terraspace/UASM/blob/6df9d1c9f082dfa2da39614342e5016fb8b26216/regress/src/oo/oo1.asm | 81 | 140 |
Terraspace/UASM:regress/src/oo/oo1.asm:4 | ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Set person name.
;---------------------------------------------------------------------------------------------------------------
METHOD Person, SetName, <>, <USES rbx>, pNameStr:QWORD
mov... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 6df9d1c9f082dfa2da39614342e5016fb8b26216 | github | assembler | https://github.com/Terraspace/UASM/blob/6df9d1c9f082dfa2da39614342e5016fb8b26216/regress/src/oo/oo1.asm | 121 | 180 |
Terraspace/UASM:regress/src/oo/oo1.asm:5 | METHOD Person, DoAdd, <dword>, <USES rbx>, aValue:REAL4, bValue:REAL4
vmovss xmm0,aValue
vmovss xmm1,bValue
vaddss xmm0,xmm0,xmm1
vcvttss2si eax,xmm0
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Static method to check if a perso... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 6df9d1c9f082dfa2da39614342e5016fb8b26216 | github | assembler | https://github.com/Terraspace/UASM/blob/6df9d1c9f082dfa2da39614342e5016fb8b26216/regress/src/oo/oo1.asm | 161 | 220 |
Terraspace/UASM:regress/src/oo/oo1.asm:6 | ; A local variable to hold a reference to a Person type. (Note you can also use _DECLARE if the Object name includes <>).
invoke GetStdHandle,STD_OUTPUT_HANDLE
mov hOutput,rax
; Create two Person instances.
mov person1, _NEW(Person, 30, hOutput, CSTR("Jane Doe "))
mov person2, _NEW(Person, 40, hOu... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 6df9d1c9f082dfa2da39614342e5016fb8b26216 | github | assembler | https://github.com/Terraspace/UASM/blob/6df9d1c9f082dfa2da39614342e5016fb8b26216/regress/src/oo/oo1.asm | 201 | 260 |
Terraspace/UASM:regress/src/oo/oo1.asm:7 | ; Using a register as an object pointer with c-style calls requires the type to specified after the pointer.
; The register must be doubley-indirect, in that it points to the pointer to the object, which allows for rapid iteration through lists of object pointers.
lea rsi,person1
[rsi].Person->Calc(1.0)
.if( [rs... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 6df9d1c9f082dfa2da39614342e5016fb8b26216 | github | assembler | https://github.com/Terraspace/UASM/blob/6df9d1c9f082dfa2da39614342e5016fb8b26216/regress/src/oo/oo1.asm | 241 | 273 |
Terraspace/UASM:regress/src/oo/oo1.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for th... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 6abe8a7146de2318fe0ad92c86f591f3f6f967ad | github | assembler | https://github.com/Terraspace/UASM/blob/6abe8a7146de2318fe0ad92c86f591f3f6f967ad/regress/src/oo/oo1.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo1.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for th... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 89f771b543533e0c44e15abbc2e2e72e749407a3 | github | assembler | https://github.com/Terraspace/UASM/blob/89f771b543533e0c44e15abbc2e2e72e749407a3/regress/src/oo/oo1.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo1.asm:2 | CLASS Person
CMETHOD PrintName
CMETHOD SetName
CMETHOD Calc
CMETHOD Calc2
CSTATIC IsHuman
pName dq 0
age db 0
human db 0
handle dq 0
ENDCLASS
; A Pointer to Object type.
pPerson TYPEDEF PTR Person
;------------------------------------------------------------------------------------------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 89f771b543533e0c44e15abbc2e2e72e749407a3 | github | assembler | https://github.com/Terraspace/UASM/blob/89f771b543533e0c44e15abbc2e2e72e749407a3/regress/src/oo/oo1.asm | 41 | 100 |
Terraspace/UASM:regress/src/oo/oo1.asm:3 | mov [rcx].age,al
.if( age < 100 )
mov isAlive,1
.endif
; The constructor MUST return it's this pointer in RAX.
mov rax,thisPtr
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Destructor
; Takes no arguments.
;-------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 89f771b543533e0c44e15abbc2e2e72e749407a3 | github | assembler | https://github.com/Terraspace/UASM/blob/89f771b543533e0c44e15abbc2e2e72e749407a3/regress/src/oo/oo1.asm | 81 | 140 |
Terraspace/UASM:regress/src/oo/oo1.asm:4 | ;---------------------------------------------------------------------------------------------------------------
; Set person name.
;---------------------------------------------------------------------------------------------------------------
METHOD Person, SetName, <>, <USES rbx>, pNameStr:QWORD
mov rax,pNameStr
... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 89f771b543533e0c44e15abbc2e2e72e749407a3 | github | assembler | https://github.com/Terraspace/UASM/blob/89f771b543533e0c44e15abbc2e2e72e749407a3/regress/src/oo/oo1.asm | 121 | 180 |
Terraspace/UASM:regress/src/oo/oo1.asm:5 | mov al,(Person PTR [rax]).human
ret
ENDMETHOD
ENDIF
;=====================================================================================================================================================
; END OF PERSON CLASS
;==========================================================================================... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 89f771b543533e0c44e15abbc2e2e72e749407a3 | github | assembler | https://github.com/Terraspace/UASM/blob/89f771b543533e0c44e15abbc2e2e72e749407a3/regress/src/oo/oo1.asm | 161 | 220 |
Terraspace/UASM:regress/src/oo/oo1.asm:6 | _INVOKE Person, Calc2, person2, xmm4, xmm5 ; Vectorcall based method.
; Use return type information.
.if( _V(person1, Person, Calc, 1.0) == FP4(2.0) )
xor eax,eax
.endif
mov rax, _STATIC(Person, IsHuman, person1) ; Default return type from _STATIC is 64bit integer.
; Method invocation via... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 89f771b543533e0c44e15abbc2e2e72e749407a3 | github | assembler | https://github.com/Terraspace/UASM/blob/89f771b543533e0c44e15abbc2e2e72e749407a3/regress/src/oo/oo1.asm | 201 | 247 |
Terraspace/UASM:regress/src/oo/oo1.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for th... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 870a892c46abb105100056c46220f3c07f7bd351 | github | assembler | https://github.com/Terraspace/UASM/blob/870a892c46abb105100056c46220f3c07f7bd351/regress/src/oo/oo1.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo1.asm:2 | CMETHOD SetName
CMETHOD Calc
CMETHOD Calc2
CSTATIC IsHuman
pName dq 0
age db 0
human db 0
handle dq 0
ENDCLASS
; A Pointer to Object type.
pPerson TYPEDEF PTR Person
;---------------------------------------------------------------------------------------------------------------
; Constructor
; Can tak... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 870a892c46abb105100056c46220f3c07f7bd351 | github | assembler | https://github.com/Terraspace/UASM/blob/870a892c46abb105100056c46220f3c07f7bd351/regress/src/oo/oo1.asm | 41 | 100 |
Terraspace/UASM:regress/src/oo/oo1.asm:3 | .if( age < 100 )
mov isAlive,1
.endif
; The constructor MUST return it's this pointer in RAX.
mov rax,thisPtr
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Destructor
; Takes no arguments.
;--------------------------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 870a892c46abb105100056c46220f3c07f7bd351 | github | assembler | https://github.com/Terraspace/UASM/blob/870a892c46abb105100056c46220f3c07f7bd351/regress/src/oo/oo1.asm | 81 | 140 |
Terraspace/UASM:regress/src/oo/oo1.asm:4 | ;---------------------------------------------------------------------------------------------------------------
METHOD Person, SetName, <>, <USES rbx>, pNameStr:QWORD
mov rax,pNameStr
mov [rcx].pName,rax
ret
ENDMETHOD
;----------------------------------------------------------------------------------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 870a892c46abb105100056c46220f3c07f7bd351 | github | assembler | https://github.com/Terraspace/UASM/blob/870a892c46abb105100056c46220f3c07f7bd351/regress/src/oo/oo1.asm | 121 | 180 |
Terraspace/UASM:regress/src/oo/oo1.asm:5 | ret
ENDMETHOD
ENDIF
;=====================================================================================================================================================
; END OF PERSON CLASS
;============================================================================================================================... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 870a892c46abb105100056c46220f3c07f7bd351 | github | assembler | https://github.com/Terraspace/UASM/blob/870a892c46abb105100056c46220f3c07f7bd351/regress/src/oo/oo1.asm | 161 | 213 |
Terraspace/UASM:regress/src/oo/oo1.asm:6 | .endif
mov rax, _STATIC(Person, IsHuman, person1) ; Default return type from $STATIC is 64bit integer.
; Delete the objects.
_DELETE(person1)
_DELETE(person2)
ret
MainCRTStartup ENDP
END MainCRTStartup | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 870a892c46abb105100056c46220f3c07f7bd351 | github | assembler | https://github.com/Terraspace/UASM/blob/870a892c46abb105100056c46220f3c07f7bd351/regress/src/oo/oo1.asm | 201 | 213 |
Terraspace/UASM:regress/src/oo/oo1.asm:1 | ; OO Testcase
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo1.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for the ... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 97430bcb3f235bcf89eb12cff124551079c046b0 | github | assembler | https://github.com/Terraspace/UASM/blob/97430bcb3f235bcf89eb12cff124551079c046b0/regress/src/oo/oo1.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo1.asm:2 | CMETHOD SetName
CSTATIC IsHuman
pName dq 0
age db 0
human db 0
handle dq 0
ENDCLASS
; A Pointer to Object type.
pPerson TYPEDEF PTR Person
;---------------------------------------------------------------------------------------------------------------
; Constructor
; Can take optional arguments.
;------... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 97430bcb3f235bcf89eb12cff124551079c046b0 | github | assembler | https://github.com/Terraspace/UASM/blob/97430bcb3f235bcf89eb12cff124551079c046b0/regress/src/oo/oo1.asm | 41 | 100 |
Terraspace/UASM:regress/src/oo/oo1.asm:3 | .endif
; The constructor MUST return it's this pointer in RAX.
mov rax,thisPtr
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Destructor
; Takes no arguments.
;------------------------------------------------------------------------... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 97430bcb3f235bcf89eb12cff124551079c046b0 | github | assembler | https://github.com/Terraspace/UASM/blob/97430bcb3f235bcf89eb12cff124551079c046b0/regress/src/oo/oo1.asm | 81 | 140 |
Terraspace/UASM:regress/src/oo/oo1.asm:4 | mov rax,pNameStr
mov [rcx].pName,rax
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Static method to check if a person is a human.
;------------------------------------------------------------------------------------------------------... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 97430bcb3f235bcf89eb12cff124551079c046b0 | github | assembler | https://github.com/Terraspace/UASM/blob/97430bcb3f235bcf89eb12cff124551079c046b0/regress/src/oo/oo1.asm | 121 | 180 |
Terraspace/UASM:regress/src/oo/oo1.asm:5 | ; Create two Person instances.
mov person1, _NEW(Person, 30, hOutput, CSTR("Jane Doe "))
mov person2, _NEW(Person, 40, hOutput, CSTR("Peter Smith "))
_INVOKE Person, PrintName, person1 ; Direct call (Type, Method, arguments)
_VINVOKE person2, Person, PrintName ; Vtable call (instance, Type, Method)
... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo1.asm | Apache-2.0 | 97430bcb3f235bcf89eb12cff124551079c046b0 | github | assembler | https://github.com/Terraspace/UASM/blob/97430bcb3f235bcf89eb12cff124551079c046b0/regress/src/oo/oo1.asm | 161 | 181 |
Terraspace/UASM:regress/src/oo/oo2.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for th... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo2.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo2.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo2.asm:3 | mov (Person PTR [rcx]).human, 1 ; Alternative forms of reference.
mov [rcx].Person.human, 1 ; " "
mov isAlive,0
mov al,age
mov [rcx].age,al
.if( age < 100 )
mov isAlive,1
.endif
; The constructor MUST return it's this pointer in RAX.
mov rax,thisPtr
ret
ENDMETHOD
;------------------------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo2.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo2.asm | 81 | 140 |
Terraspace/UASM:regress/src/oo/oo2.asm:4 | invoke WriteConsole, rax, rbx, r10d, ADDR bWritten, NULL
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Set person name.
;---------------------------------------------------------------------------------------------------------------
M... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo2.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo2.asm | 121 | 180 |
Terraspace/UASM:regress/src/oo/oo2.asm:5 | ; Perform a calculation on two arguments.
;---------------------------------------------------------------------------------------------------------------
METHOD Person, DoAdd, <dword>, <USES rbx>, aValue:REAL4, bValue:REAL4
vmovss xmm0,aValue
vmovss xmm1,bValue
vaddss xmm0,xmm0,xmm1
vcvttss2si eax,xmm0
ret
ENDM... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo2.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo2.asm | 161 | 220 |
Terraspace/UASM:regress/src/oo/oo2.asm:6 | LOCAL person2:PTR Person
; A local variable to hold a reference to a Person type. (Note you can also use _DECLARE if the Object name includes <>).
invoke GetStdHandle,STD_OUTPUT_HANDLE
mov hOutput,rax
; Create two Person instances.
mov person1, _NEW(Person, 30, hOutput, CSTR("Jane Doe "))
mov ... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo2.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo2.asm | 201 | 260 |
Terraspace/UASM:regress/src/oo/oo2.asm:7 | .endif
; Using a register as an object pointer with c-style calls requires the type to specified after the pointer.
; The register must be doubley-indirect, in that it points to the pointer to the object, which allows for rapid iteration through lists of object pointers.
lea rsi,person1
[rsi].Person->Calc(1.0)
... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo2.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo2.asm | 241 | 275 |
Terraspace/UASM:regress/src/oo/oo2.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for th... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo2.asm | Apache-2.0 | 5a41f9c8ce25132abc9c704764df22bd6dab13a0 | github | assembler | https://github.com/Terraspace/UASM/blob/5a41f9c8ce25132abc9c704764df22bd6dab13a0/regress/src/oo/oo2.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo2.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for th... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo2.asm | Apache-2.0 | 6df9d1c9f082dfa2da39614342e5016fb8b26216 | github | assembler | https://github.com/Terraspace/UASM/blob/6df9d1c9f082dfa2da39614342e5016fb8b26216/regress/src/oo/oo2.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo2.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for th... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo2.asm | Apache-2.0 | 6abe8a7146de2318fe0ad92c86f591f3f6f967ad | github | assembler | https://github.com/Terraspace/UASM/blob/6abe8a7146de2318fe0ad92c86f591f3f6f967ad/regress/src/oo/oo2.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo3.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for the... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo3.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo3.asm:2 | ;---------------------------------------------------------------------------------------------------------------
; Define our Person class with 2 instance methods, 1 static method and 3 member fields.
;---------------------------------------------------------------------------------------------------------------
CLASS ... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo3.asm | 41 | 100 |
Terraspace/UASM:regress/src/oo/oo3.asm:3 | mov (Person PTR [rcx]).human, 1 ; Alternative forms of reference.
mov [rcx].Person.human, 1 ; " "
mov isAlive,0
mov al,age
mov [rcx].age,al
.if( age < 100 )
mov isAlive,1
.endif
; The constructor MUST return it's this pointer in RAX.
mov rax,thisPtr
ret
ENDMETHOD
;------------------------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo3.asm | 81 | 140 |
Terraspace/UASM:regress/src/oo/oo3.asm:4 | METHOD Person, PrintName, <VOIDARG>, <USES rbx>
LOCAL bWritten:DWORD
mov rsi,thisPtr
assume rsi:PTR Person
mov rax,lstrlen([rcx].pName)
__imp_WriteConsoleA( [rsi].handle, [rsi].pName, eax, ADDR bWritten, NULL )
assume rsi:NOTHING
; calls to other instance methods with pointer syntax.
; -> Because the METHO... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo3.asm | 121 | 180 |
Terraspace/UASM:regress/src/oo/oo3.asm:5 | vaddss xmm0,xmm0,FP4(1.0)
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Perform a calculation on 2 vectors via vectorcall abi.
;----------------------------------------------------------------------------------------------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo3.asm | 161 | 220 |
Terraspace/UASM:regress/src/oo/oo3.asm:6 | ENDIF
;=====================================================================================================================================================
; END OF PERSON CLASS
;===========================================================================================================================================... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo3.asm | 201 | 260 |
Terraspace/UASM:regress/src/oo/oo3.asm:7 | xor eax,eax
.endif
mov rax, _STATIC(Person, IsHuman, person1) ; Default return type from _STATIC is 64bit integer.
; Method invocation via register pointer.
lea rsi, person1
_INVOKE Person, Calc, [rsi], 1.0
_VINVOKE [rsi], Person, Calc, 1.0
.if( _V([rsi], Person, Calc, 1.0) == FP4(2.0) )
... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo3.asm | 241 | 293 |
Terraspace/UASM:regress/src/oo/oo3.asm:8 | ; Delete the objects.
_DELETE(person1)
_DELETE(person2)
ret
MainCRTStartup ENDP
NormalProc PROC (real4) FRAME a:real4
LOADSS xmm0,1.0
ret
NormalProc ENDP
END MainCRTStartup | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/oo/oo3.asm | 281 | 293 |
Terraspace/UASM:regress/src/oo/oo3.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for the... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | 5a41f9c8ce25132abc9c704764df22bd6dab13a0 | github | assembler | https://github.com/Terraspace/UASM/blob/5a41f9c8ce25132abc9c704764df22bd6dab13a0/regress/src/oo/oo3.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo3.asm:3 | mov (Person PTR [rcx]).human, 1 ; Alternative forms of reference.
mov [rcx].Person.human, 1 ; " "
mov isAlive,0
mov al,age
mov [rcx].age,al
.if( age < 100 )
mov isAlive,1
.endif
; The constructor MUST return it's this pointer in RAX.
mov rax,thisPtr
ret
ENDMETHOD
;------------------------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | 5a41f9c8ce25132abc9c704764df22bd6dab13a0 | github | assembler | https://github.com/Terraspace/UASM/blob/5a41f9c8ce25132abc9c704764df22bd6dab13a0/regress/src/oo/oo3.asm | 81 | 140 |
Terraspace/UASM:regress/src/oo/oo3.asm:4 | METHOD Person, PrintName, <>, <USES rbx>
LOCAL bWritten:DWORD
mov rsi,thisPtr
assume rsi:PTR Person
mov rax,lstrlen([rcx].pName)
__imp_WriteConsoleA( [rsi].handle, [rsi].pName, eax, ADDR bWritten, NULL )
assume rsi:NOTHING
; calls to other instance methods with pointer syntax.
; -> Because the METHOD decla... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | 5a41f9c8ce25132abc9c704764df22bd6dab13a0 | github | assembler | https://github.com/Terraspace/UASM/blob/5a41f9c8ce25132abc9c704764df22bd6dab13a0/regress/src/oo/oo3.asm | 121 | 180 |
Terraspace/UASM:regress/src/oo/oo3.asm:5 | vaddss xmm0,xmm0,FP4(1.0)
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Perform a calculation on 2 vectors via vectorcall abi.
;----------------------------------------------------------------------------------------------------------... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | 5a41f9c8ce25132abc9c704764df22bd6dab13a0 | github | assembler | https://github.com/Terraspace/UASM/blob/5a41f9c8ce25132abc9c704764df22bd6dab13a0/regress/src/oo/oo3.asm | 161 | 220 |
Terraspace/UASM:regress/src/oo/oo3.asm:7 | xor eax,eax
.endif
mov rax, _STATIC(Person, IsHuman, person1) ; Default return type from _STATIC is 64bit integer.
; Method invocation via register pointer.
lea rsi, person1
_INVOKE Person, Calc, [rsi], 1.0
_VINVOKE [rsi], Person, Calc, 1.0
.if( _V([rsi], Person, Calc, 1.0) == FP4(2.0) )
... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | 5a41f9c8ce25132abc9c704764df22bd6dab13a0 | github | assembler | https://github.com/Terraspace/UASM/blob/5a41f9c8ce25132abc9c704764df22bd6dab13a0/regress/src/oo/oo3.asm | 241 | 293 |
Terraspace/UASM:regress/src/oo/oo3.asm:8 | ; Delete the objects.
_DELETE(person1)
_DELETE(person2)
ret
MainCRTStartup ENDP
NormalProc PROC real4 FRAME a:real4
LOADSS xmm0,1.0
ret
NormalProc ENDP
END MainCRTStartup | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | 5a41f9c8ce25132abc9c704764df22bd6dab13a0 | github | assembler | https://github.com/Terraspace/UASM/blob/5a41f9c8ce25132abc9c704764df22bd6dab13a0/regress/src/oo/oo3.asm | 281 | 293 |
Terraspace/UASM:regress/src/oo/oo3.asm:1 | ; OO Testcase 2
; Build with:
;..\uasm64 -win64 -c -Zp8 -Zi -Zd -Zf oo1.asm
;d:\vs2015\vc\bin\link /subsystem:console /machine:x64 /debug /Libpath:"%WINSDK%\v7.1\Lib\x64" oo2.obj
.X64
OPTION CASEMAP:NONE
OPTION WIN64:7 ; 11/15 for RSP and 1-7 for RBP.
OPTION STACKBASE:RBP ; RSP or RBP are supported options for the... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bf5c21557f727f21cb9b9232e37fd145ab978e03 | github | assembler | https://github.com/Terraspace/UASM/blob/bf5c21557f727f21cb9b9232e37fd145ab978e03/regress/src/oo/oo3.asm | 1 | 60 |
Terraspace/UASM:regress/src/oo/oo3.asm:2 | ; Define our Person class with 2 instance methods, 1 static method and 3 member fields.
;---------------------------------------------------------------------------------------------------------------
CLASS Person
CMETHOD PrintName
CMETHOD SetName
CMETHOD Calc
CMETHOD Calc2
CMETHOD DoAdd
CSTATIC IsHuman
pName ... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bf5c21557f727f21cb9b9232e37fd145ab978e03 | github | assembler | https://github.com/Terraspace/UASM/blob/bf5c21557f727f21cb9b9232e37fd145ab978e03/regress/src/oo/oo3.asm | 41 | 100 |
Terraspace/UASM:regress/src/oo/oo3.asm:3 | mov isAlive,0
mov al,age
mov [rcx].age,al
.if( age < 100 )
mov isAlive,1
.endif
; The constructor MUST return it's this pointer in RAX.
mov rax,thisPtr
ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Destructor
; Takes no argu... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bf5c21557f727f21cb9b9232e37fd145ab978e03 | github | assembler | https://github.com/Terraspace/UASM/blob/bf5c21557f727f21cb9b9232e37fd145ab978e03/regress/src/oo/oo3.asm | 81 | 140 |
Terraspace/UASM:regress/src/oo/oo3.asm:4 | LOCAL bWritten:DWORD
mov rsi,thisPtr
assume rsi:PTR Person
mov rax,lstrlen([rcx].pName)
__imp_WriteConsoleA( [rsi].handle, [rsi].pName, eax, ADDR bWritten, NULL )
assume rsi:NOTHING
; calls to other instance methods with pointer syntax.
; -> Because the METHOD declaration sets the prototype, you cannot forwa... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bf5c21557f727f21cb9b9232e37fd145ab978e03 | github | assembler | https://github.com/Terraspace/UASM/blob/bf5c21557f727f21cb9b9232e37fd145ab978e03/regress/src/oo/oo3.asm | 121 | 180 |
Terraspace/UASM:regress/src/oo/oo3.asm:5 | ret
ENDMETHOD
;---------------------------------------------------------------------------------------------------------------
; Perform a calculation on 2 vectors via vectorcall abi.
;---------------------------------------------------------------------------------------------------------------
option stackbase:rsp ;... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bf5c21557f727f21cb9b9232e37fd145ab978e03 | github | assembler | https://github.com/Terraspace/UASM/blob/bf5c21557f727f21cb9b9232e37fd145ab978e03/regress/src/oo/oo3.asm | 161 | 220 |
Terraspace/UASM:regress/src/oo/oo3.asm:6 | ;=====================================================================================================================================================
; END OF PERSON CLASS
;==================================================================================================================================================... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bf5c21557f727f21cb9b9232e37fd145ab978e03 | github | assembler | https://github.com/Terraspace/UASM/blob/bf5c21557f727f21cb9b9232e37fd145ab978e03/regress/src/oo/oo3.asm | 201 | 260 |
Terraspace/UASM:regress/src/oo/oo3.asm:7 | mov rax, _STATIC(Person, IsHuman, person1) ; Default return type from _STATIC is 64bit integer.
; Method invocation via register pointer.
lea rsi, person1
_INVOKE Person, Calc, [rsi], 1.0
_VINVOKE [rsi], Person, Calc, 1.0
.if( _V([rsi], Person, Calc, 1.0) == FP4(2.0) )
xor eax,eax
.endi... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bf5c21557f727f21cb9b9232e37fd145ab978e03 | github | assembler | https://github.com/Terraspace/UASM/blob/bf5c21557f727f21cb9b9232e37fd145ab978e03/regress/src/oo/oo3.asm | 241 | 291 |
Terraspace/UASM:regress/src/oo/oo3.asm:8 | _DELETE(person2)
ret
MainCRTStartup ENDP
NormalProc PROC real4 FRAME a:real4
LOADSS xmm0,1.0
ret
NormalProc ENDP
END MainCRTStartup | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/oo/oo3.asm | Apache-2.0 | bf5c21557f727f21cb9b9232e37fd145ab978e03 | github | assembler | https://github.com/Terraspace/UASM/blob/bf5c21557f727f21cb9b9232e37fd145ab978e03/regress/src/oo/oo3.asm | 281 | 291 |
Terraspace/UASM:regress/src/ooerr/ooerr.asm:7 | ; Using a register as an object pointer with c-style calls requires the type to specified after the pointer.
; The register must be doubley-indirect, in that it points to the pointer to the object, which allows for rapid iteration through lists of object pointers.
lea rsi,person1
[rsi].Person->Calc(1.0)
.if( [rs... | x86_64 | masm-like | handwritten | Terraspace/UASM | regress/src/ooerr/ooerr.asm | Apache-2.0 | 6df9d1c9f082dfa2da39614342e5016fb8b26216 | github | assembler | https://github.com/Terraspace/UASM/blob/6df9d1c9f082dfa2da39614342e5016fb8b26216/regress/src/ooerr/ooerr.asm | 241 | 283 |
Terraspace/UASM:regress/src/pe/pe4.asm:1 | ;
; v2.26 - default to 64-bit fastcall if no .model/language defined
;
option dllimport:<msvcrt>
exit proto :dword
.code
main proc
exit(0)
main endp
end main | sparc | masm-like | handwritten | Terraspace/UASM | regress/src/pe/pe4.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/pe/pe4.asm | 1 | 13 |
Terraspace/UASM:regress/src/pe64_bin/bin64.asm:1 | ; uasm64 -bin -Fo bin64.exe bin64.asm
.x64
option casemap:none
option stackbase:rbp
option win64:7
.nolist
include winnt64.inc ; Modification for 64-bit of winnt.inc from Sample folder of UASM.
.list
STD_OUTPUT_HANDLE equ -11
HANDLE typedef ptr
HWND typedef ptr
NULL equ 0
IMAGEBASE equ 140000000h
_IMAGE equ 0
PEH... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/pe64_bin/bin64.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/pe64_bin/bin64.asm | 1 | 60 |
Terraspace/UASM:regress/src/pe64_bin/bin64.asm:2 | db "PE",0,0
IMAGE_FILE_HEADER <IMAGE_FILE_MACHINE_AMD64, num_sections, 0, 0, 0, sizeof IMAGE_OPTIONAL_HEADER64,\
IMAGE_FILE_RELOCS_STRIPPED or IMAGE_FILE_EXECUTABLE_IMAGE or IMAGE_FILE_LARGE_ADDRESS_AWARE or IMAGE_FILE_LOCAL_SYMS_STRIPPED>
IMAGE_OPTIONAL_HEADER64 { 20Bh, ;magic
0Eh,0Ah, ... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/pe64_bin/bin64.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/pe64_bin/bin64.asm | 41 | 100 |
Terraspace/UASM:regress/src/pe64_bin/bin64.asm:3 | ORG _IMAGE+200h ;forces physical size of header to 200h and sets VA to 400200h
PEHDR ends
ALIGN1 segment dword public FLAT 'DATA'
ORG 0E00h ; change pc to RVA 1000h
ALIGN1 ends
_TEXT segment dword public FLAT 'CODE'
_TEXT ends
ALIGN2 segment dword public FLAT 'DATA'
ORG 0E00h ; change pc to RVA 2000h
... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/pe64_bin/bin64.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/pe64_bin/bin64.asm | 81 | 140 |
Terraspace/UASM:regress/src/pe64_bin/bin64.asm:4 | DefineImpDll macro name
_IDATA segment
IMAGE_IMPORT_DESCRIPTOR <<IMAGEREL name&ILT>,0,0,IMAGEREL name, IMAGEREL name&IAT>
_IDATA ends
_IDATA$1 segment
ifdef ImportDefined
dq 0 ;terminate previous ILT
endif
name&ILT label dword
_IDATA$1 ends
_IDATA$2 segment
ifdef ImportDefined
dq 0 ;terminate previous IAT... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/pe64_bin/bin64.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/pe64_bin/bin64.asm | 121 | 180 |
Terraspace/UASM:regress/src/pe64_bin/bin64.asm:5 | ; I placed FASTCALL just to make it assemble because it will not be possible to use INVOKE correctly.
prWriteConsoleA typedef proto :HANDLE, :ptr, :dword, :ptr, :ptr
prGetStdHandle typedef proto :dword
prExitProcess typedef proto :dword
DefineImpDll kernel32
DefineImport ExitProcess
DefineImport WriteCo... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/pe64_bin/bin64.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/pe64_bin/bin64.asm | 161 | 220 |
Terraspace/UASM:regress/src/pe64_bin/bin64.asm:6 | main endp
;--- entry
startapp proc
call main
mov rcx,0
lea rdx, string2
lea r8, caption
mov r9, 0
sub rsp, 20h
call MessageBoxA
add rsp, 20h
xor rcx, rcx
call ExitProcess
startapp endp
sizeof_text equ $ - start_text
ORG 200h ;align size of _TEXT to next 512 byte bound... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/pe64_bin/bin64.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/pe64_bin/bin64.asm | 201 | 223 |
Terraspace/UASM:regress/src/plain_bin/0x.asm:1 | ;
; v2.21 allow 0x prefix for numbers
;
.486
.model flat
.code
mov al,0x0F
mov al,0xa0
mov ax,0x0FFF
mov eax,0xFFFFFFFF
if ( 0x00abcdef ne 0xabcdef \
OR 0xabcdef ne 0Xabcdef OR 0Xabcdef ne 0XAbcdef \
OR 0XAbcdef ne 0XABcdef OR 0XABcdef ne 0XABCdef \
OR 0XABCdef ne 0XABCDef OR 0XABCDef ne 0XABCDEf \
... | arm64 | nasm-like | handwritten | Terraspace/UASM | regress/src/plain_bin/0x.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/plain_bin/0x.asm | 1 | 46 |
Terraspace/UASM:regress/src/plain_bin/HIGHWORD.asm:1 | ; ASMC v2.14 HIGHWORD -- QWORD: HIGHWORD 80000000h
; ASMC v2.20 HIGHWORD -- QWORD: HIGHWORD (-1 SHL 32)
.486
.model flat
.code
mov eax,HIGHWORD 80000000h
mov eax,HIGHWORD (-1 SHL 32)
end
Generated code:
MOV EAX,00008000h
MOV EAX,00000000h | riscv | nasm-like | handwritten | Terraspace/UASM | regress/src/plain_bin/HIGHWORD.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/plain_bin/HIGHWORD.asm | 1 | 16 |
Terraspace/UASM:regress/src/plain_bin/HIGHWORD2.asm:1 | ; ASMC 2.20
; CreateVariable() - qword
.386
.model flat
.code
foostr TEXTEQU <xyz>
foo SIZESTR foostr
% mov eax,@CatStr(%foo)
IF foo GT 1
mov eax,1
ELSE
.err <should be dead code>
ENDIF
foo = foo - 100 ; <--- does set asym.value3264 to -1
foo SIZESTR foostr ; <-- CreateVariable() does not zero asym.value3264... | arm | nasm-like | handwritten | Terraspace/UASM | regress/src/plain_bin/HIGHWORD2.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/plain_bin/HIGHWORD2.asm | 1 | 29 |
Terraspace/UASM:regress/src/plain_bin/MAZEGEN_MACRO_Nov2018.asm:1 | .X64
.MODEL FLAT
.LISTALL
.LISTMACROALL
; JMP encodings are not correctly processed when inside .DATA
.DATA
ASSUME cs:_DATA
context_public_label MACRO postfix:REQ
PUBLIC label_&postfix
EXITM <label_&postfix:>
ENDM
context_public_label (test)
jmp label_test ; this should be a jmp rel8 (-2)
stuff db 1000 DUP (0x0... | arm64 | masm-like | handwritten | Terraspace/UASM | regress/src/plain_bin/MAZEGEN_MACRO_Nov2018.asm | Apache-2.0 | bffb18461dd541479064990c3b2750ab50ae23e2 | github | assembler | https://github.com/Terraspace/UASM/blob/bffb18461dd541479064990c3b2750ab50ae23e2/regress/src/plain_bin/MAZEGEN_MACRO_Nov2018.asm | 1 | 34 |
Terraspace/UASM:regress/src/plain_bin/MAZEGEN_MACRO_Nov2018.asm:1 | .X64
.MODEL FLAT
.LISTALL
.LISTMACROALL
.DATA
ASSUME cs:_DATA
context_public_label MACRO postfix:REQ
PUBLIC label_&postfix
EXITM <label_&postfix:>
ENDM
context_public_label (test)
jmp qword ptr label_test
END | arm | nasm-like | handwritten | Terraspace/UASM | regress/src/plain_bin/MAZEGEN_MACRO_Nov2018.asm | Apache-2.0 | 47c876ade863aa3cffdda72499a2348fc3850658 | github | assembler | https://github.com/Terraspace/UASM/blob/47c876ade863aa3cffdda72499a2348fc3850658/regress/src/plain_bin/MAZEGEN_MACRO_Nov2018.asm | 1 | 17 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.