2,888 Topics

Member Avatar for
Member Avatar for jrmeasures

I am new to Assembly language and I'm getting a problem with the DIV operation. This should output the quotient and remainder if a 1-digit number is divided to a 1-digit number. What is wrong with my code? .MODEL SMALL .STACK 64 .DATA MSGA DB 13,10,"Input first number: ","$" MSGB …

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for bryan1993

i downloaded asm assembler and i did edit a codes but the problem is when i was about to compile the codes using (asm fileneme.asm) it says 'asm' is not recognize... what will i do? how will i copile my codes unto it, is there any other solution aside from …

Member Avatar for ShiftLeft
0
76
Member Avatar for kingkactuar

I'm writing a program in MARS that encrypts/decrypts a string with a simple addition/subtraction method to each character according to a 4 digit key such as '2848.' I'm now trying to navigate through each character in a string and just increase the decimal count by 1 just to test it …

0
121
Member Avatar for oswald_santos

Our professor is not teaching us how to blink a message entered to an address using debug.exe. I only know how to print a message. Can you please help me? It's our assignment. I can't find any youtube video or pdf tutorial to help me. Thank you very much.

0
118
Member Avatar for hassan.sawalmeh

i just wrote an assembly code of a game nd i want the program to give the time i took to finish the game how ?

Member Avatar for ShiftLeft
0
72
Member Avatar for Denise23

Can someone tell me what I am doing wrong in this program? Write, assemble, and test a program to input 3 signed values (a, b, and c, in that order) and to calculate and display the signed value of the expression b + 2(3a - 4c) + 5. "call getVal …

Member Avatar for ShiftLeft
0
109
Member Avatar for jefanot

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 …

Member Avatar for GunnerInc
0
102
Member Avatar for Xhesi

Good day to everyone I am having some trouble with an assignment for my work at College in UK (im 17) We have been given the task of, and the criteria of The program should allow the user to input 4 numbers as follows: '0' - Exit the program '1' …

Member Avatar for Xhesi
0
2K
Member Avatar for 4344

.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 ? …

Member Avatar for GunnerInc
0
124
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
496
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
62
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
90
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
91
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
311
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
78
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
297
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
101
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
141
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
192
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
230
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
499
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
59
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
279
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
99
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
324
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
82
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
66
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
57

The End.