switching to nasm, yasm is dead from what I can tell, not caring about perf diff anymore.
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
package asmd // ASM Duffle
|
||||
package asmduff // ASM Duffle
|
||||
|
||||
|
||||
|
@ -2,17 +2,18 @@
|
||||
BITS 64 ; Explicitly specify 64-bit mode
|
||||
DEFAULT REL ; Use RIP-relative addressing by default
|
||||
|
||||
extern ExitProcess ; Import Windows API functions
|
||||
extern GetStdHandle
|
||||
extern WriteConsoleA
|
||||
|
||||
; Data section
|
||||
section .data
|
||||
message db "Hello, x86-64 ASM!", 13, 10, 0 ; String with CRLF and null terminator
|
||||
message db "Hello, NASM!", 13, 10, 0 ; String with CRLF and null terminator
|
||||
message_len equ $ - message ; Calculate string length
|
||||
|
||||
; Code section
|
||||
section .text
|
||||
global main ; Export main symbol for linker
|
||||
extern ExitProcess ; Import Windows API functions
|
||||
extern GetStdHandle
|
||||
extern WriteConsoleA
|
||||
|
||||
main:
|
||||
; Function prologue
|
@ -1,4 +1,21 @@
|
||||
package asmd
|
||||
package asmduff
|
||||
|
||||
|
||||
|
||||
section_data :: proc()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
section_text :: proc()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
section_externs :: proc()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
main :: proc()
|
||||
{
|
||||
|
@ -1,3 +1,3 @@
|
||||
package asmd
|
||||
|
||||
package asmduff
|
||||
|
||||
import
|
||||
|
2
scripts/build_hello_nasm.ps1
Normal file
2
scripts/build_hello_nasm.ps1
Normal file
@ -0,0 +1,2 @@
|
||||
$nasm = 'nasm'
|
||||
& $nasm -help
|
1
scripts/build_nasm.ps1
Normal file
1
scripts/build_nasm.ps1
Normal file
@ -0,0 +1 @@
|
||||
$nams
|
@ -4,8 +4,3 @@
|
||||
|
||||
Repo: https://github.com/Ed94/gencpp.git
|
||||
Commit: 685bba36d5ed64b48908c950fbbb7f1dbb297120
|
||||
|
||||
## YASM
|
||||
|
||||
Repo: https://github.com/yasm/yasm.git
|
||||
Commit: 121ab150b3577b666c79a79f4a511798d7ad2432
|
||||
|
Submodule toolchain/yasm deleted from 121ab150b3
Reference in New Issue
Block a user