Recent Posts

Pages: [1] 2 3 ... 10
1
Example Code / Anyone have a copy of the source for Paul Carter's asm_io.o?
« Last post by samasm on November 13, 2018, 08:43:18 PM »
Hello,

Does anyone have the source for Paul Carter's asm_io.o that is supposed to by in the Linux examples archive (http://pacman128.github.io/static/linux-ex.zip). I'm emailed Carter and posted
an issue on his git, but I haven't seen any movement.

Or can anyone offer and alternative asm tutorial?

I'm using Salix 14.2 (32-bit)
2
Programming with NASM / Re: A 64-bit Nasm assignment procedure; set(val,var)?
« Last post by mjrice on November 11, 2018, 05:23:41 AM »
I'm back, and back in 32-bit land after downloading and installing the latest 32-bit versions of Fedora Linux (29), Gfortran, and Nasm.

The test function executed fine after doing a new make on my archived directory.

I then ran the same code in my last two posts in 32-bit to produce the following:

          -1081206440           3213760856

The two values are the output the Gfortran "loc" function and the nasm "madov" function respectively. They're just the signed and unsigned decimal values of the same binary integer address.
3
Programming with NASM / Re: nasm + lld-link
« Last post by NASM on November 08, 2018, 06:25:22 PM »
LLD BSD EXE
Wont write clear browser wif support MSHTML.DLL

WASM.IN FORUM
4
Programming with NASM / Call by result
« Last post by martinJG on November 07, 2018, 09:23:05 AM »
Hello all!

I am trying to write a programm for work, need to teach myself assembly. Since I cant use subroutines with the EBP (I kinda fail to get it to work) and I don't know if using esp is aceptable I was wondering if I can just call a function and give them some data, and return some data from that subfunction.

Or do I need to manually stack everything and de-stack it. In that case I'd really appreciate if someone could explain to me "real quick" how the ebp is used in subroutines.

Thanks you all.
5
Programming with NASM / Re: How to read 5 Bits at once
« Last post by Siko7 on November 05, 2018, 07:39:54 PM »
Here you can read what base32 is: https://en.wikipedia.org/wiki/Base32

For the moment i just have this code which is based on the hexdump code.

SECTION .data         ; Section containing initialised data
Str:   db " 00 00 00 00 00",10
   BASELEN equ $-BASEStr

   Digits:   db "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"
   
   
SECTION .bss         ; Section containing uninitialized data

   BUFFLEN   equ 5      ; We read the file 5 bytes at a time
   Buff:    resb BUFFLEN   ; Text buffer itself

   StringOut db "  ",10   ;
   Stringoutlen equ $-StringOut
   

SECTION .text         ; Section containing code

global    _start         ; Linker needs this to find the entry point!
   
_start:


Read:
   mov eax,3      ; Specify sys_read call
   mov ebx,0      ; Specify File Descriptor 0: Standard Input
   mov ecx,Buff      ; Pass offset of the buffer to read to
   mov edx,BUFFLEN      ; Pass number of bytes to read at one pass
   int 80h         ; Call sys_read to fill the buffer
   mov ebp,eax      ; Save # of bytes read from file for later
   cmp eax,0      ; If eax=0, sys_read reached EOF on stdin
   je Done         ; Jump If Equal (to 0, from compare)
6
Programming with NASM / Re: How to read 5 Bits at once
« Last post by Frank Kotler on November 04, 2018, 09:52:01 PM »
Thanks dreamCoder,
I have to agree that a Base32 encoder does not sound like a good beginner project! Where do you stand, Siko7? Got an algorithm? I think I used to know what a Base32 encoder was, but that memory is paged out now. Sorry.

Best,
Frank

7
Programming with NASM / Re: How to read 5 Bits at once
« Last post by dreamCoder on November 04, 2018, 07:30:28 AM »
Perhaps for a beginner, you shouldn't write a "Base32 encoder" just yet. Show some code or else your question doesn't sound legit at all.

p/s Frank? ;D
8
Programming with NASM / How to read 5 Bits at once
« Last post by Siko7 on November 03, 2018, 10:32:09 AM »
Hi Everyone

I would like to program a Base32 encoder. For this I have to split the binary data I get, into 5 bits and read them one after the other. What is the best way to solve this?
Unfortunately I am a beginner in assembly.

Thanks for helping
9
Other Discussion / Re: CPU emulator
« Last post by christeena on November 01, 2018, 09:16:56 AM »
CPU emulator is a program emulating the internal operation of a physical CPU in software. It has a lot of applications in the computer security area. In this article, it is clearly discussed about its programming. Thanks for this informative topic. my printer is not printing   
10
Using NASM / Re: Linux - nasm return no message , no output file . nothing
« Last post by rospo2008 on October 31, 2018, 10:32:45 PM »
Welcome to the Forum.

Thanks
Works for me. Try it again.

Best,
Frank

an user from DevDungeon-com helped me.
It was my fault. I messed up the nasm's installation.

Thanks
Pages: [1] 2 3 ... 10