2,889 Topics

Member Avatar for
Member Avatar for theUserMan

trying to divide a float value that is in my FPU stack by a integer value that is stored in a register this is the code i tried first i'm positive that fstp is putting the value on the stack, because it's outputting it correctly any ideas? or should i …

Member Avatar for untio
0
136
Member Avatar for botagar

Hi. I have a 'table'/array which has 0-255 elements (hex values). each element is 8 bits (eg 0xff). How do i set that up in assembly? Further more, i need a fast but variable time iteration method over my array. I was coding this in C# but it seems that …

0
44
Member Avatar for ak24

Hello... I am learning assembly, and am reading "The Art of Assembly" book. I'm on chapter 4, and I can't figure out where is the error in the following code: "The last problem with pointers is the lack of type-safe access. This can occur because HLA cannot and does not …

Member Avatar for ak24
0
174
Member Avatar for hilo890

I have a little program that I was testing strings with, for some reason when I add to much to a string variable, and run the program, the console cursor just flits around the screen (and the console doesn't clear, which is before any output was even supposed to happen), …

Member Avatar for Goalatio
0
144
Member Avatar for cupcake33

Hi, I wanna ask.. I want to make a procedure of 1 second delay for 8088 so far here what I have [CODE]debounce: PROC NEAR PUSH CX delay: MOV CX, 6000H ;24576 in decimal L1: LOOP L1 ; POP CX RET debounce ENDP[/CODE] so, can someone please help me..I don't …

Member Avatar for cupcake33
0
468
Member Avatar for noname44

Hi, I wanna simulate DIR command in MS-DOS with only listing function: Command line in Working Directory (EX: C:\MyFolder>_ ), when you type DIR, it'll show List of Objects (Files and subfolders in working directory) with: Filename,size, and date of file (subfolder). I don't know how to make it in …

0
45
Member Avatar for wildplace

i pushed a floating point into my stack fstpl -4(%ebp) how do i print this value store at that memory location in GDB using x command(value in hex and binary)

0
58
Member Avatar for theUserMan

Working on this code to sum up real numbers from an array, it's 32bit architecture so i'm using ecx and edx to hold the upper and lower values of the floating point number as of right now the code will output the last real number from my array, and not …

Member Avatar for untio
0
3K
Member Avatar for UtaChan

Well I got a class assignment requiring the use of int 21h,0xa(string input). [B]Offtopic:[/B] The problem is the teacher is old, and doesn;t care about how right the things he teaches are and apparenlty he taught us things wrongly again -.- then it;s -15 points in the exam... He taught …

Member Avatar for UtaChan
0
241
Member Avatar for theUserMan

I have an array of real numbers in 32-bit architecture it holds he higher and lower order values in ecx, edx i'm able to enter them in into the array and output them as well but i'm having difficulty adding all them up here is code so far(gives a segfault) …

0
161
Member Avatar for hilo890

I'm having a problem with adding two single digit numbers that the user gives (Since they are ASCII I do the add 48 thing, I know that doesn't work past 9, giving some guidance on this would really be appreciated). Anyways, heres the code. variables: Value1 db ? Value2 db …

Member Avatar for theUserMan
0
98
Member Avatar for cloudspade

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btnRom_Click(object sender, EventArgs e) { string[] Roman = { "M", "CM", "D", "C", "XC", "L", "XL", "X", …

Member Avatar for cloudspade
0
322
Member Avatar for gruffy321

hI all an thanks for taking time to read this :) my prob lies with speaking to the parallel port in xp using borland turbo for assembly. i have read a bt about it and it seems there are workarounds involving vb or c/c++ but. my project assignment requires that …

0
65
Member Avatar for theUserMan

working on inputing floating point values into an array, then adding them up and getting a sum so far i have this code for it, but my flag that checks to see if an input is 0 to exit the loop for entering floats, keeps on going(endless loop) [CODE] %include …

Member Avatar for GunnerInc
0
605
Member Avatar for kukuruku

HI,I am having trouble understanding if I have to ADD F4H and B1H(hex) ,what will be CF and OF (flags).Could somebody explain. Thanks

0
67
Member Avatar for wildplace

hi all, which flags are set if the conditions..such as the follow : signed graeter-than unsigned less-than unsigned greater-than explain needed~!! also what is the different btw JLE and JNGE, i know that JLE also set the ZF..what does that mean..? very appreciate for your help =D

0
64
Member Avatar for cloudspade
Member Avatar for cloudspade

help me how>?to incorporate or insert the irvine32inc and macro.inc in 8086 emulator?

0
61
Member Avatar for kukuruku

Hi I am trying to put letters in array ,before that I am converting capitals to lower case.Putstr,getch,putint are predefined macros Thanks [CODE] .386 .model Flat include Cs266.inc .data array DD 128 dup(?) promt DB "Enter a string of at most 128 characters: ",0 count DD 0 .code main: mov …

0
124
Member Avatar for core_st

Hi! I'm newbie in asm, so i need your help. I need resident program "clock" that will show time in some corner on screen in resident mode and update time by 1Ch bios function. I already have simplae program clock: [CODE]OutStr macro str ;макрос виведення стрічки push dx mov ah,09h …

0
105
Member Avatar for .:Pudge:.

My professor taught us the bare basics and gives us questions on our homework that we essentially have to teach ourselves have to do. Any help would be appreciated! (use this for MIPS reference : [url]http://www.mrc.uidaho.edu/mrc/people...al/MIPSir.html[/url]) Here goes: 1. Write the binary representation of the smallest integer number that can …

Member Avatar for Taywin
0
154
Member Avatar for TIP.Synergy

i want a login sample that will display Please Enter your Username: Please Enter your Password: with fixed username and password

Member Avatar for sDJh
0
57
Member Avatar for TIP.Synergy

Hello to everyone, i don't know how to create a simple "if else statement" like this if username=user and password=pass then msg("Access Granted") else msg("Acess Denied") end if Is there anyone who can help me? please... thx

Member Avatar for sDJh
0
100
Member Avatar for LMat619

Hey everyone. I am just learning assembly and I am understanding everything, but I keep having a problem a with this program. The main is in C and is supposed to receive a string from a user. Then, in assembly, I am supposed to count the number of words. But …

Member Avatar for sDJh
0
292
Member Avatar for Rakesh Mall
Member Avatar for Ca67

I have been working on converting a selection sort pseudocode to assembler 370 code. The pseudocode is as follows: [CODE]BEGIN initially is a pointer to the first entry END is a pointer to the last entry I and LOW are also pointers 1 is the length of one entry Do …

Member Avatar for GabrieleCF
0
204
Member Avatar for kukuruku

Hi ,I am trying to print this ,so far unsuccessful,I am printing only the first row Thanks [CODE] 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 11 2 3 4 5 6 7 8 9 10 11 12 …

Member Avatar for GunnerInc
0
120
Member Avatar for charmander

guys please help me to make a program using assembly language in PIC16F84A. I need to make a program that uses 3 inputs... as one button is push it will automatically adds the scores while the other button should decrease and the other should reset.. thank you for your help... …

0
60
Member Avatar for kukuruku

Hi,I am trying to do if statement in Assembly but it doesnt work.Could you help me putstr is predifine macro Thanks [CODE].386 .model Flat include Cs266.inc .data mes1 DB "First Greater" mes2 DB "Second Greater" var1 DD 22 var2 DD 9 .code main: mov EAX,var1 cmp EAX,var2 jge else jmp …

Member Avatar for Ancient Dragon
0
315
Member Avatar for wheats1

Hi there, I have a problem, perhaps you could help me with it. We are discussing to change our IDE. The Project I'm working on is using C with function calls to assembly. Now my problem is that the two compiler use different parameter passing routines. Now I would have …

Member Avatar for wheats1
0
107
Member Avatar for theUserMan

As title says Just trying to read in values and store them in an array Then call print function to print them out As of now the program works, but only prints out the last value entered and the other outputs are 0's here is the code... %include "asm_io.asm" segment …

Member Avatar for jdelgado08
0
4K
Member Avatar for theUserMan

I wrote this code to get a standard deviation from inputs that are stored in an array. I outputted all of my inputs and they are correct, and it's subtracting the mean correctly, hoever when i hit the check flag(if counter is equal to zero) i get a floating point …

Member Avatar for GunnerInc
0
175
Member Avatar for Lyunth

Hi I am beginner in assembly and was wondering how the program works below follow the images CheatEngine Pointer: [URL="http://i54.tinypic.com/2l6lue.gif"]http://i54.tinypic.com/2l6lue.gif[/URL] Dissembler CheatEngine [URL="http://i52.tinypic.com/2ekq4uv.gif"]http://i52.tinypic.com/2ekq4uv.gif[/URL] thanks

0
178
Member Avatar for lu25

please help with a c program for the following ASM.. [CODE] x is at %ebp + 8, y is at %ebp + 12 movl 8(%ebp), %ebx movl $0, %eax movl $0, %ecx .L13: leal (%eax, %eax), %edx movl %ebx, %eax andl $1, %eax orl %edx, %eax shrl %ebx Shift right …

0
135
Member Avatar for lu25

why does this[CODE]movw (%eax), 4(%esp)[/CODE] generate an error messgae after invoking the assembler. using GAS.

Member Avatar for lu25
0
86
Member Avatar for imanz

I am new to assembler, using the 68HC11 processor. I need to multiply two SIGNED 8 bit numbers using the partial product-shift algorithm. Some help in the right direction would be helpful. Thanks.

Member Avatar for imanz
0
127
Member Avatar for cableguy31

Here is what I need to do. I have a very small C program that takes user input and passes argv to a function written in GNU assembly language that will then count the number of characters in the string. The function seems to work fine when I enter a …

Member Avatar for untio
0
3K
Member Avatar for hzcsdtc

add, addi, lw, sw, li, la, syscall, move, jal, jr, bgt, j. Assume that: all registers are addressed by $register-name (like $s1; see your textbook for range of valid register names and numbers); the end of program is recognized by the end instruction, the program is loaded into memory at …

Member Avatar for GunnerInc
0
189
Member Avatar for egompaki

i'd like some help cause i'm new to assembly language i have this program in c and i have to convert it to assembly language int R[100]; char S[100,100]; int process(int rows) { int i; for (i=0;i<rows;i++) { tmp=strlen(&S[i])): R[i]=tmp; if (tmp==0) return i; } return i; } this function …

Member Avatar for boxofyuvi
0
327
Member Avatar for blackrobe

Hi, I'm really new to assembly language and trying to write an assembly program that includes some arithmetic and I would like to know how to do two things: 1- I want the input entered by the user to be between 0 and 9, meaning a digit not anything else. …

Member Avatar for AMPON
0
216
Member Avatar for notinasia

I'm using windows xp with a 32 bit processor. I would like to write a program which at the least: 1. observes data addresses of data on a FAT32 SDHC 4GB flash drive 2. makes an index of data location addresses and stores the index at a specified data address …

0
97
Member Avatar for RaigaX9

Hello, I'm having another problem with assembly. I'm writing a Fibonacci sequence in assembly and I think I got all my stuff set up, but after I try to convert from .m to .s using gm4, I'm getting this here: NONE:0: gm4: ERROR: EOF in argument list Can anyone tell …

0
113
Member Avatar for kukuruku

Hi ,I am trying to count all characters in entered text ,putch and putint are macroses for printing int and char What I am doing wrong Thanks [CODE] .386 .model Flat include Cs266.inc .data count DW 0FFH .code main: mov BX,count here: getch cmp EAX,-1 INC BX je exit putch …

Member Avatar for untio
0
74
Member Avatar for kukuruku

Hi ,I am new in Assembly and I am trying to print the first element of array putint is macros include in Cs266 [CODE] .386 .model flat include Cs266.inc .data Arr DW 1,2,5,9,12 .code main: mov AX,[Arr] putint AX ret end [/CODE]

Member Avatar for GunnerInc
0
88
Member Avatar for Whilliam

Hello. Im very new to assembly. Like, 2 weeks new. Im an IT student and I want to practice assembly in my very own laptop. I want to download assembly resources but Im not sure what. I know this exists in the assembly resources thread but Im really clueless. It …

Member Avatar for Goalatio
0
272
Member Avatar for rcossy1023

Ok So im trying to understand flags.... when i set $eax = 0x80000000 and set $ecx = 0x90000000 I want to compare and jump for flags so cmp EAX, ECX j(o,s,z,c) I do not understand how comparing these two numbers get a carry flag but not an overflow flag. I …

Member Avatar for -Powerslave-
0
180
Member Avatar for Goalatio

I wrote an operating system in 16bit asm (NASM), and thought it was easy. Then I came up with the crazy idea that I could learn 32bit asm.. And quickly became disgusted. All of the 32bit tutorials out there TELL you to use C or a similar language; I want …

Member Avatar for Goalatio
0
129
Member Avatar for spoonlicker
Member Avatar for Hesham Moustafa
Member Avatar for Hesham Moustafa
-1
75
Member Avatar for lilpinay

problem You are to, given the data below, design an IA-32 assembly language program to find the max and min of the array in X and save them in A and B respectively. X sword 100,200,-100,-200,150,-150,300,250 A sword ? B sword ? what i have so far: 1. irvine32.inc 2. …

Member Avatar for lilpinay
0
1K

The End.