- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 14
- Posts with Upvotes
- 12
- Upvoting Members
- 12
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- Coding in Assembly! SIB!
|
Re:
Hi friends, I am a newbie to Assembly Language programming, I don't know whats the equivalent Assembly code for NASM compiler and moreover is there any compiler available for ubuntu so that I can run my TASM code as it is? Here is my simple code that works fine in … |
Re:
Hello all! I am trying to complete a lab assignment for my computer systems class and we have to use the printf function to print changing register values (increment eax from 1 to 10, decrement ebx from 10 to 1). Here is my code: [CODE]; Purpose: To print data to … |
|
Re:
I'm just starting out with Assembly languege, having installed NASM on openSUSE 13.1, i386 family processor yesterday. My worry is that a simple program like "Hello World!" has flagged a warning when linking...see line 3 below: 1. coker.mu@linux-jm54:~/nasm> nasm -f elf helloWorld.asm 2. coker.mu@linux-jm54:~/nasm> ld -m elf_i386 -s -o helloWorld … |
|
Re:
please help me, i need to print my array in nasm. this is what i have so far, section .bss section .data array dd 1,2,3,4,5 arraylen equ $ - array section .text global _start: _start: mov edx, arraylen mov ecx, array mov ebx, 1 mov eax, 4 int 80h exit: … |
|
Re:
Hi all, I'm learning GAS assmbler, and I've written the following test program: .code32 .section .data values: .int 1,2,3,4,5,6,7,8,9 output: .asciz "current value %d" .section .text .globl _start _start: movl $10, %edi loop: movl values(,%edi,4),%eax pushl %eax pushl $output call printf addl $8, %esp dec %edi jnz loop pushl $0 … |
|
Re:
hi how can download a file (for example file.text) from an url in assembly language programing in mac osx or linux |
|
Re:
Hello, I was just wondering if it is possible to create a data struct in assembly 8086. For example, creating a struct that holds a student's name and ID number. |
|
Re:
Hello! I am creating an assembly program that accepts a single character and displays the alphabet in reverse. The requirements are (1) The input character should be displayed (2) The alphabet should be displayed vertically and (3) Only the letter 'Z' should be accepted as input. I have managed to … |
|
Re:
So, When I assemble this code, I get no errors. It flies through the build. However, when I go to execute this code, it does not display the window. I am unsure of why. I have tried invoking messageboxes at the start or WinMain, but it seems it's not getting … |
|
Re:
I'm trying to install MASM 8.0 but the instaler stops before the end! I already downloaded visual Visual C++ 2005 Express Edition but then it disappears and nothing else happens. |
|
Re:
1. Is a 32bit register 32 bits in size and a 64bit is 64bits? 2.What is decoding in a processor? 3.Are there real pcitures of processor registers? where? |
|
Re:
I am trying to write a program that prompts for 5 signed integers that need to be put into an array. and then I have to do a 4th degree polynomial. The array stores a,b,c,d,e and there is a seperate x value. Can someone help please? |
|
Re:
Hey guys, I am new to assembly and I am having a problem compling the code. section .text global _start _start: xor eax,eax push eax push dword 0x71242776 push dword 0x76747977 push esp pop esi mov edi,esi mov edx,edi cld mov ecx,0x80 mov ebx,0x41 xor eax,eax push eax lodsb xor … |
|
Re:
Here's the problem, I was wondering if i am right to assume that when a three-digit input is entered, i.e. 123, then the string 1 will be stored to al, 2 to ah, but i'm not sure where the 3 goes, or if ever it's plain wrong to look at … |
|
Re:
Hey guys, anyone know how to setup FASM on geany so the compile and the execute will work? This is what I currently do: Compile: `./fasm "%f"; chmod a+x %e.com` Execute: `./%e.com` When I compile it, it seems to be okay. When I execute, however, it gives this: `�: not … |
|
Re:
.386 .model flat,stdcall option casemap:none WinMain proto :DWORD,:DWORD,:DWORD,:DWORD include \masm32\include\windows.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc include \masm32\include\gdi32.inc include \masm32\include\winmm.inc includelib \masm32\lib\user32.lib includelib \masm32\lib\kernel32.lib includelib \masm32\lib\gdi32.lib includelib \masm32\lib\winmm.lib .data ClassName db "SimpleWinClass",0 AppName db "SimpleVirtualPiano",0 szText db 'This is a Simple VirtualPiano----------->made bu liuwei 2003.11.19',0h .data? hInstance HINSTANCE ? hdc HDC ? … |
|
Re:
I got this delay routine while searching the internet for ways to introduce a time delay (4-5 sec) in my assembly program. I fed it into a HelloWorld program to display 'Helloworld' box message after 10 sec from the execution of the program. Here's the code .386 .model flat, stdcall … |
|
Re:
In my wayward youth, I learned a little bit of inline assembler in Turbo C. And that was fun. Then I got into DJGPP which came with GCC and Bell Syntax. And it was confusing. And I gave up. Fast forward 12 years. I'm 30, finishing a bachelor's in CS. … |
|
Re:
I have an assignment to make a code that will check what is the longest "string" of zeros inside a double word binary number, for example (in a Byte) if I have this number: 10010001 The answer will be 3. The code I've written works fine until a certain point … |
|
Re:
Hello, I need help for my task.. This is the matrix 1 2 3 4 5 6 7 8 9 the result is 1,4,7,8,9,6,3,2,5 I have to solve this task in assembler 8086 in emu... I need help, it is very important for me. Please help me |
|
Re:
i used turb0 c++ in windows 7 but i does not display a full screen mode.are there any tools that run c and c++ in windows 7??? |
|
Re:
This is probably an easy thing to do but I don't know how. How can I declare in the .data section one pointer to an integer? |
|
Re:
Hi I'm stumped on how to make this program that I'm working on to output the information to the text file in a nice fashion instead of writing it in a funny way. I basically want this program to output the student record information line by line and organized. The … |
|
Re:
Hi, in a given c program where you have [CODE]myvar = sumR(char * arg1, int arg2)[/CODE] sumR is a function in an assembly .s file. I have done all the calculations, but I have no idea how to return the value to the calling c program. Any ideas? Thanks so … |
|
Re:
I am in an assembly class and we are now working on using files. Part of the assignment is to make a file and write an array full of values into it. I have been working on this assignment for some time and I am stuck on the file portion. … |
|
Re:
I need to write a program where the user input their name, the program will tell them 'Hello,' and then show the user's name backwards. This is what I have: [CODE]INCLUDE Irvine32.inc .data pleaseEnter BYTE 'Please enter your name: ', 0 StringName BYTE 30 DUP(0) yourName BYTE 'Hello, ', 0 … |
|
Re:
Hi I keep getting an error when trying to assemble and run my code and would like to know why. It says there is a syntax error in line 21 and "directive must be in control block" error in line 23. The program is supposed to write a square made … |
|
Re:
Hi I was wondering if anyone could help me figure out why every time I try to run this code it keeps bringing up an error of "cannot nest procedures". I need to use the PROTO and PROC directives in this program for my HW assignment. I'm also trying to … |
|
Re:
i am a computer science student.i have no interest on assembly.just doing it for my course. so can anybody suggest me any good assembly compiler? in my university lab they use Masm. but it is too old and do not show in which line error is and no auto code … |