| | |
byte ptr usage (nasm assembly)
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jan 2008
Posts: 49
Reputation:
Solved Threads: 0
Hello!
I want to go through a string char by char and i've heard a byte ptr is the way to do this, but i'm having problems with using it.
I tried with the code below, but i get an error saying: "comma or end of line expected" at the byte ptr line.
Any advice would be much appriciated.
I want to go through a string char by char and i've heard a byte ptr is the way to do this, but i'm having problems with using it.
I tried with the code below, but i get an error saying: "comma or end of line expected" at the byte ptr line.
Assembly Syntax (Toggle Plain Text)
BITS 32 extern printf global main section .data string db "string",10,0 section .text main: push dword string call fun add esp,4 ret fun: mov ebx,dword[esp+4] mov al,byte ptr[ebx] .. .. .. ret
Any advice would be much appriciated.
![]() |
Other Threads in the Assembly Forum
- Previous Thread: How to integrate code with machine
- Next Thread: Programming for the SCI interface
| Thread Tools | Search this Thread |





