2,889 Topics

Member Avatar for
Member Avatar for brunoccs

I've writen the following MIPS assembly code to test for arithmetic overflow .text add $s0, $zero, 0x80000000 add $s1, $zero, 0xD0000000 add $t0, $s0, $s1 MARS is translates the code above into this: lui $1, 0xffff8000 ori $1, $1, 0x00000000 add $16, $0, $1 lui $1, 0xffffd000 ori $1, $1, …

Member Avatar for Schol-R-LEA
0
502
Member Avatar for ShiftLeft

Is there an option that can be passed to GDB to make it happy with callee cleaning up stack. push eax push rbp push 0 call AddVals ret AddVals enter 28, 0 ;... Bunch of code leave ret 24 1) If I single step "si" into AddVals and right through …

0
65
Member Avatar for RenanLazarotto

Hey guys! I want to publish my app with a single file, but I have an external dependency which I want to embbed in my app and load it at runtime. Most of the codes I found over the web were meant for non-referenced assemblies or didn't mentioned it at …

0
93
Member Avatar for brunoccs

This is exercice 1.8.6 from Computer Organization and Design The Hardware Software Interface Suppose that the industry trends show that a new process generation varies as follow: Capacitance Voltage Clock Rate Area a. 1 1/2^1/2 1.15 1/2^1/2 b. 1 1/2^1/4 1.2 1/2^1/4 Assuming a Core 2 processor with a clock …

Member Avatar for nezachem
0
93
Member Avatar for minsu44

Well this is not so much of a need, but i really want to learn how to do error handling assembly language[TASM] Basically if the user just types or presses enter the code will go back to the same question with probably a message box or writing stating that they …

Member Avatar for ShiftLeft
0
315
Member Avatar for brunoccs

"Dynamic Power" = "Capacitive Load" times "Voltage²" times "Frequency Switched" Would anyone be so kind as to tell me if Frequency Switched is the same as Clock Rate?

Member Avatar for Schol-R-LEA
0
81
Member Avatar for minsu44

Hello i am really just a begginner in assembly (TASM). anyway, my program is quite simple it is tasked to just ask the user's name and ID number. after which i have to print "hello <name> your ID is <number>" but I cant seem to print both of them at …

Member Avatar for TigerBoyPH
0
4K
Member Avatar for brunoccs

I've written (more like copied) the following assembly code : section .text global main main: mov edx,len mov ecx,msg mov ebx,1 mov eax,4 int 0x80 mov eax,1 int 0x80 section .data msg db 'Hello, world!', 0xa len equ $ - msg I've compiled it with NASM using the following command: …

Member Avatar for brunoccs
0
301
Member Avatar for ShiftLeft

Source code **NASM** on **Ubuntu 12.04** This demonstrates Input/Output algos using syscall and how they can be implemented in a fairly condensed loop. These routine do not conform to any specific call convention and without modification won't interface with higher level languages. My code is stand alone assembly and doesn't …

0
102
Member Avatar for ShiftLeft

# Show # This procedure doesn't conform to any particular calling convention. It is designed specifically to work with other subroutines designed by me. Any of my examples won't be using and standard library functions either. Not because I think they are inadequate, but rather give me complete independence and …

0
146
Member Avatar for silvercats

(1)Are DOS and Windows assembly different? (2)How many registers do both 32bit and a 64 bit processors have speparetl? what is the size of them? (3)To emulate a 16bit or 32bit program under a 64bit processor, does that processor have to physically support those old 16 and 32 bit versions? …

Member Avatar for brunoccs
0
195
Member Avatar for huynhminhsang

Write a LC-3 assembly language program to compute + - * / of complex numbers input form keyboard with the requirement below: number/ real parts / imaginary parts are signed integers give all prompts b4 inputting. outputting / 16 bits faceing to zero /mistakes. I can write a program to …

Member Avatar for TrustyTony
0
1K
Member Avatar for Droidik

Hello there, I just don't know, how to solve this task in assembly - http://oi49.tinypic.com/2qi9q4l.jpg I know what every command does, but don't get the way it's done. Any explanations or advices, please?

0
255
Member Avatar for silvercats

A program written in assembly is machine dependent but a program written in Java ,python etc.. are not. why is that at the end don't they all get converted in to machine language?

Member Avatar for MandrewP
0
502
Member Avatar for huynhminhsang

Help me with this project. "Write a LC-3 assembly language program to compute + - * / of number or *complex input* form keyboard with the requirement below: number/ real parts / imaginary parts are signed integers give all prompts b4 inputting. outputting / 16 bits faceing to zero /mistakes". …

0
61
Member Avatar for zemzela

I need help how to solve this task, I don't know how to solve first part which is for memory location. If someone know please help me. It is very important.. ENTRY RESULTS entrance examination: In memory location X is placed in an entrance exam results in the form: Indeks …

Member Avatar for Schol-R-LEA
0
282
Member Avatar for jeff winger

I have to write a program to find the hypotenuse of a right triangle in 8086. and I'm suck. Please please help.

Member Avatar for skaa
0
102
Member Avatar for Th3_M4TriX

Dont know, if chosen a good forum (--assembly), but i need help guys. Just started to look at disassembling and havent found any good tutorials or guides or helps. So I run a program and get eg. this: (only some line, the whole file is bigger) .text:00401000 push ebp .text:00401001 …

Member Avatar for Schol-R-LEA
0
328
Member Avatar for fereshteh_f

**Hi i want a program in assembly that can connect to serial(usb) port and can show the current clock in a lcd . please help me it's urgent.**

0
84
Member Avatar for sasho648

I'm dissasemling an debug exe and I found a function that convert a file hash (from an archive that is used from the program) to a string. I really need to know what this function did but I don't understoos this werid language. Here are pictures of the source: http://imageshack.us/photo/my-images/51/hashfunc1.png/ …

0
69
Member Avatar for moussa_90

i need to make a calculater that reads 2 binary numbers,show the 6 choices:press 1 to AND the 2 numbers,2 to OR the 2 numbers,3 to XOR ... how would i force the user to enter in binary,is their a method lik call readhex or string?"call readbin"??????plz help!

0
59
Member Avatar for silvercats

below links will lead to amazon links of the books I have a trouble deciding what should I use for learning assembly. any other suggstions than those two are welcome too.please answer only if you are experienced and know well about the result of learning from each books. http://www.amazon.com/Assembly-Language-Step---Step-Programming/dp/0470497025/ref=sr_1_2?s=books&ie=UTF8&qid=1338617001&sr=1-2 (new,but …

Member Avatar for silvercats
0
132
Member Avatar for silvercats
Member Avatar for silvercats

more registers or something? I know about the advantages and disadvantages of 32 and 64bit bit what is the big difference between processors?

Member Avatar for silvercats
0
188
Member Avatar for silvercats

Under what architectures do assembly programs run? I mean,what processors can run the same assembly program? program written for p4 processor,on a core 2 duo ,core i3 .and core i 3 on a p4,p2 etc...... program written for an Intel processor on a AMD processor..... and i7 and a core …

Member Avatar for silvercats
0
222
Member Avatar for EliStern

Hi! I am wondering what's wrong with my code. It's a simple code which is supposed to activate the PC speaker with a DO note. I'm using XPmode on windows7 ultimate 32B SP1, with EMU86 as assembler, runnig the program with CMD (tried also dosbox). The wierd thing is when …

Member Avatar for mathematician
0
505
Member Avatar for odaite

.please help me I want opearte the code program .model large .stack 4096 .data msg db 0dh, 0ah, "Demonisch Basic Assembly Language Calculator", 0dh, 0ah, 0dh, 0ah, "Press return when each number is entered", 0dh, 0ah, "(done automatically if 4 digits is entered)", 0dh, 0ah, "You may put + or …

Member Avatar for NotNull
0
263
Member Avatar for mercenary16

I am barely learning x86 assembly, and I am having trouble. How do I address the individual items in an array in assembly? This is my attempt, but I am very confused. char example( char arrayOfLetters[], int arraySize) // arrayOfLetters = {a, B, c, D, e, F} { ~asm{ mov …

Member Avatar for sbesch
0
402
Member Avatar for stompjrkz400

Hello i have a question ! ha, what is the diffrence between these two sets of code, my proffessor says there diffrent, i just cant figure out why, they both seem to do the same thing, this is my first time working with the coproccessor and im alittle stuck, thanks …

Member Avatar for sbesch
0
98
Member Avatar for stompjrkz400

hey everyone, im in my first semester of assembly, i had a quick quesiton, im working with the coproccessor now for the first time and i would like to know if The coprocessor stack holds all values as 80-bit reals then what is the largest integer data type that can …

Member Avatar for sbesch
0
195
Member Avatar for hanintalal

how we can write a program ,whech prints its oun source using NASM oder GCC on Linux und mac os x

Member Avatar for sDJh
0
183
Member Avatar for chibi-hime

Hi. I need help with the code for a fish race The question I was given is as follows: *You are asked to design a ā€œFish Raceā€ game. Two fishes of different colors and shapes will race until one of them reaches the race’s end line. Your program should display …

0
163
Member Avatar for EliStern

I have a very long code line in ASM (a very long array declaration). Is it posible to break it into multiple lines? thanks!

Member Avatar for EliStern
0
178
Member Avatar for glowkazaf

Help!!!!anyone who has the idea of creating a simple assembly games!!!please!please!!!even without the codes..just the idea of what kind of game...It's important for me...It's for our final project in Assembly...Thank you!

Member Avatar for TheElitist
0
1K
Member Avatar for psycho_

Does any one know if I can find these problemes here ? 3. Problem #3 a. What will be the result of the following code if executed? Comment the assembler instructions MOV BX, 20A MOV AX, [BX+1] MOV CX, [BX - 2] CMP AX, CX JB cxismax SUB AX, CX …

Member Avatar for skaa
0
103
Member Avatar for lxXTaCoXxl

Figured I've been working on material for a while and would throw these up for everyone that needs them in the future to use. It's very simple implementation; if I get enough people asking me to, I will write the methods for each of the instructions so you don't have …

Member Avatar for skatamatic
0
280
Member Avatar for lxXTaCoXxl

I'm writing a basic application that needs to know the mathematical relationship between a jal and its address. For example: jal $000a2000 = 0x0c028800 So my question is how would I get this value mathematically? I've been pondering ways to do it all week and every route I took to …

Member Avatar for lxXTaCoXxl
0
117
Member Avatar for desijoker

hey guys .i am trying to write a lc3 assembly language program that takes two input numbers and prints out "x * y = z". i can get it to work for numbers 0-9 however any numbers above that i get weird letters or symbols. ^^ Also how i can …

Member Avatar for TrustyTony
0
3K
Member Avatar for itsmrshow

Hello all, i really need help with this program, i am a brand new assembly learner/ noob, i need help with a program that ( promts the user to enter a number between 1-10, then when the user enters a number, if it is less then 5 display message1, if …

Member Avatar for itsmrshow
0
143
Member Avatar for st_infamous

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 …

Member Avatar for GunnerInc
0
141
Member Avatar for denny61302
Member Avatar for TrustyTony
0
49
Member Avatar for coderKid

Hi everyone i am new here and i have problem with this code, i need algorithm all code. please help me all master of Assembly :) program has a bug. not change AM to PM in the right time. please help me to change. thank you so much. :) especially …

0
107
Member Avatar for gspeach79

With this program I am supposed to **use ASCII operations to do addition and subtraction on positive integers of any length represented in characters.** I have no idea how to fix this program could anyone help me fix it? Thanks! include irvine32.inc .data msg1 byte 0dh, 0ah, "Enter a number:", …

Member Avatar for macanohost
0
175
Member Avatar for gspeach79

Basically I have to **copy array X to the stack frame and dump the stack frame on the screen before return from the procedure.** The problem is I have no idea how to do that. Also I am not even sure my program is right. I was wondering if someone …

0
120
Member Avatar for samoo

Hi everyone i am new here and i have problem with my project this is the project Use x86 assembly language to write a program that works as a following: 1) When the program is executed, it asks the user to enter a password 2) If the entered password matches, …

Member Avatar for angham
0
255
Member Avatar for kww228

Can someone help me out. I do not know how to dump the stack frame on the screen before return. This program currenlty just copies and outputs the array te the screen. Here is what teh program has to do: Given the data below, design an IA-32 assembly language program …

0
82
Member Avatar for kww228

Can someone help me out. I do not know how to dump the stack frame on the screen before return. This program currenlty just copies and outputs the array te the screen. Here is what teh program has to do: Given the data below, design an IA-32 assembly language program …

0
83
Member Avatar for Nimrod7676

Hello everybody, I'm using Ubuntu 11.10 and I don't know about assembler for linux, but I think there is. Do anybody know about Assembler for linux? Thanks. =]

Member Avatar for rubberman
0
142
Member Avatar for MasterHacker110

I want to start writing a os, but doesnt really know how. I need a simple boot and kernel to demonstrate how its done. nothing fancy just simple one that will boot and load a kernal. if it isnt to much work maby make it that is can hold files, …

Member Avatar for AceStryker
0
252
Member Avatar for MasterHacker110

My code gives this error: relocation truncated to fit: R_386_16 against `.data' section .text section .data text_string db 'This is my cool new OS!', 0 global _start global print_string _start: mov ax, 07C0h ; Set up 4K stack space after this bootloader add ax, 288 ; (4096 + 512) / …

0
91

The End.