Recent Posts

Pages: 1 2 3 [4] 5 6 ... 10
31
Programming with NASM / Re: How many for loops are possible in nasm ?
« Last post by Roddy MacPhee on May 23, 2024, 04:05:30 PM »
with no restrictions or limitations.
How do I print rdi to screen . I'm on android if that matters.
https://play.google.com/store/apps/details?id=com.rhmsoft.code

Found out how to print ascii characters using alt codes( yes I know I'm stupid). Now to either convert numbers to strings or use extern ...
32
Programming with NASM / Re: How many for loops are possible in nasm ?
« Last post by debs3759 on May 23, 2024, 04:02:33 PM »
If the version of nasm you have is time limited, it's not an official version. nasm is 100% freeware with no restrictions or limitations.
33
Programming with NASM / Re: How many for loops are possible in nasm ?
« Last post by Roddy MacPhee on May 23, 2024, 02:56:33 PM »
Wish I knew modulo and printing numerical values to screen. Then I could make a prime sieve ... nasm compiler the code editor app uses is 2.14.02 and it has time limits.

Example of my attempt:


Code: [Select]
section .data
hw db "hello world,",0
section .text
global _start
_start:
    mov rdi,1
loop:
    mov eax,4
    mov ebx,1
    lea ecx,[hw]
    lea edx,[rdi]
    int 80H
    inc rdi
    cmp rdi,13
    jne loop
    mov eax,1
    xor ebx,ebx
    int 80H
34
Programming with NASM / Re: How many for loops are possible in nasm ?
« Last post by debs3759 on May 23, 2024, 11:15:34 AM »
I would think that you can use as many loops as you want. It's down to the programmer to write appropriate code and algorithms.
35
Programming with NASM / How many for loops are possible in nasm ?
« Last post by Roddy MacPhee on May 22, 2024, 11:41:08 PM »
I know of at least 40 different variants, but i'm wondering how many are useful (possible).
36
Other Discussion / Re: sprintf_s plus printf
« Last post by alCoPaUL on May 15, 2024, 09:23:05 PM »
essential msvcrt.lib for win64asm...

37
Example Code / sprintf_s plus printf
« Last post by alCoPaUL on May 15, 2024, 09:22:14 PM »
Code: [Select]
;r9 //      sprintf_s + printf
;r8 //      by alCoPaUL [GIMO]
;rdx //         5/15/2024
;rcx //    Brigada Ocho [b8] Productions
;call // rax
global m
extern printf
extern sprintf_s
section .text
m:sub rsp,28h
lea r8,x
lea rdx,i
lea rcx,b
call sprintf_s
mov r8, rax
lea rdx,b
lea rcx,i
call printf
add rsp,28h
ret
section .data
x:db 'Revelation 13'
......
.....
....

Full file attached with the msvcrt.lib for win64asm..

38
Other Discussion / Re: sprintf_s plus printf
« Last post by alCoPaUL on May 15, 2024, 09:19:55 PM »
NASM Version

Code: [Select]
;r9 //      sprintf_s + printf
;r8 //      by alCoPaUL [GIMO]
;rdx //         5/15/2024
;rcx //    Brigada Ocho [b8] Productions
;call // rax
global m
extern printf
extern sprintf_s
section .text
m:sub rsp,28h
lea r8,x
lea rdx,i
lea rcx,b
call sprintf_s
mov r8, rax
lea rdx,b
lea rcx,i
call printf
add rsp,28h
ret
section .data
x:db 'Revelation 13'
....
....
....

full file attached..
39
Other Discussion / sprintf_s plus printf
« Last post by alCoPaUL on May 15, 2024, 06:06:02 PM »
imma translate this to NASM (should be ezpz) later coz i just finished this version for the other assembler..

snippet below

Code: [Select]
;r9 //      sprintf_s + printf
;r8 //      by alCoPaUL [GIMO]
;rdx //         5/15/2024
;rcx //    Brigada Ocho [b8] Productions
;call // rax
 
extrn printf:proc
extrn sprintf_s:proc
.code
main proc
sub rsp,28h
lea r8,[x]
lea rdx,[i]
lea rcx,[b]
call sprintf_s
mov r8, rax
lea rdx,[b]
lea rcx,[i]
call printf
add rsp,28h
ret
main endp
.data
x db 'Revelation 13'
........
........

full file attached..

enjoy..
40
Hello,

I just read about the new Intel Advanced Performance Extensions (Intel APX) that adds 16 more general purpose registers, new conditional move instructions, and other new features.  It requires support from the assembler.  16 more GP registers is extremely exciting, as are the other new features.  See https://www.intel.com/content/www/us/en/developer/articles/technical/advanced-performance-extensions-apx.html

GNU Binutils, including gdb and ld, has already been updated to support it.  See https://sourceware.org/pipermail/binutils/2024-January/132213.html and https://www.phoronix.com/news/GNU-Binutils-2.42

Does NASM have plans to support it?   

Thanks very much.
Pages: 1 2 3 [4] 5 6 ... 10