2,889 Topics

Member Avatar for
Member Avatar for fredmac

Im wondering is it possible to change c code to assembly code if its not thanks but if it is can some one give me sum pointers

Member Avatar for Salem
0
147
Member Avatar for ada829

Hi, I am trying to do some sort of intrumentation inside the assembly code generated by the pentium machine. Particualrly, I need to use some temporary register which can store some value. since x86 has only 6 general purpose registers I am not sure which ones are reused and cannot …

Member Avatar for ada829
0
2K
Member Avatar for Spagett912

TITLE Integer Summation Program (Sum4.asm) ; This program we had begun to modify to allow ; for "PromptForIntegers" to use parameter passing ; rather than using globals [code] INCLUDE \Irvine\Irvine32.inc INTEGER_COUNT = 3 .data str1 BYTE "Enter a signed integer: ",0 str2 BYTE "The sum of the integers is: ",0 …

0
91
Member Avatar for resooul
Member Avatar for sDJh
0
99
Member Avatar for begueradj

Hello, I am Begueradj, I want to know if we could use more than one stack in the same Aseembler source code. Thank you very much for helping me.

Member Avatar for begueradj
0
64
Member Avatar for mrynit

I am using Eclipse IDE on ubuntu 8.04, gcc 4.2.3, -masm=intel flag for intel syntax. I am using inline assembly in a C program by using asm();. If I want to [ICODE]mov eax, myVar[/ICODE] will only work if it is a global variable. How can i use local variables?

Member Avatar for Salem
0
104
Member Avatar for jaiprakashraju

Dear Friends.. Am new to the Development World..Please Help Me with this Assembly Level program..] [B]1)Program in 8086 assembly language to do the Addtion of two 16 digit packed BCD number[/B] [B]2)Program in 8086 assembly language to do the Conversion of a 16 digit unpacked BCD number to packed BCD …

Member Avatar for Salem
0
32
Member Avatar for mrb260478

I want to learn [B]Assembly language[/B] in [B] [COLOR="#ff0000"]1 day[/COLOR] [/B] can anyone suggest me a BestTutorial on Assembly language using TASM v4.1? I know this is next to impossible. Still Please Help. Also please tell me sites where I could get some source code which has comments on each …

Member Avatar for BeR54
0
122
Member Avatar for payton

I am having trouble using the ceiling instruction. I am new to assembly and have never used the ceiling instruction before. My values before the instruction are $f10 = 1.1000005 $f12 = 1.0000000 the instruction I use is [CODE]ceil.w.s $f12,$f10[/CODE] the value that ends up in $f12 is 2.80260e-045 which …

Member Avatar for paytonb
0
271
Member Avatar for resooul

[code] class Program { static void Main(string[] args) { int m = 0; int n = 0; Console.Write("Enter M : "); m = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter N : "); n = Convert.ToInt32(Console.ReadLine()); Console.Write("{0} x {1} and {2} x 1 dimentional two matrix will be multiplied.\n",m,n,n); Console.Write("Enter {0} x {1} dimentional matrix …

0
53
Member Avatar for Seamus McCarthy

[code] ORG $8000 NUMBERS DS.B 5 ;room for 5 input values BUCKETS DS.B 11 ;room for 11 buckets ORG $8100 BKTSORT LEA BUCKETS,A0 ;init array pointer MOVE.W #10,D0 ;init loop counter CLRBKT CLR.B (A0)+ ;clear bucket DBRA D0,CLRBKT ;do this 11 times LEA NUMBERS,A1 ;init pointer to input data LEA …

0
84
Member Avatar for johnnybgoode

I've set my first steps into the world of reverse engineering. So a use -on heavy recommandation- SoftIce/WinIce and indeed, this seems to THE debugger. The problem is that I nowhere in the setting menu can find an entry point to change the keyboard settings. Opening a normal Dos terminal …

0
76
Member Avatar for PatrickV

Hey Guys! I am new here and own my own website, cool hey! I am work'n on a project to make my own os. But i come to a full stop. The thing that get's in my way is MBR and bootloaders. I want to make my opearting system open …

0
70
Member Avatar for punmeister

Wohoo, first post. I have a problem with my code, the problem is that instead of writing "%" in res, when the pattern "%%" shows up, it writes it out as "%%" anyways. Currently I have it working so it works as strcpy. Seriously, I don't understand what I'm doing …

0
111
Member Avatar for MNR

does anyone know how i can convert decimal number into binary and vice versa, using LC-3.

0
109
Member Avatar for benchic_s

I need to write an lc3 program that calculates the square root of a number. It needs to be done using the Newton method. Can somebody please help me?

Member Avatar for Salem
0
71
Member Avatar for sickly_man

hello everybody. the project im working on asks me to propmt the user once to change the background color and once to change the foreground (text) color. right now my program prompts the user...but not with the message i have in the data segment...it spits out some unattractive code. could …

0
241
Member Avatar for sickly_man

hey everybody. i've got what might be a simple question about return values of subroutines in assembly. okay here goes. say i've got a subroutine that under normal conditions will do a normal return (RET), and under one condition will return zero (RET 0). so now back in main after …

Member Avatar for sickly_man
0
138
Member Avatar for Jeniefer

I am final year student. my final year project is designing digital alarm clock. i want to display digital clock at computer screen and i have worked on it for 2 days but still cant find a way to do it. can anyone pls write a program running in 8085 …

Member Avatar for moriasi
0
767
Member Avatar for Traicey

Assembly is one of the least langauges that I havent done, Have heard about it and its complications, but I neva get to know what do u use it for or in which areas does the language alone excel for example C++ is more suitable for games.... know what I …

Member Avatar for Traicey
0
78
Member Avatar for ming1

Hi, i have been googleling around the solution for this but dunno how. Following is my problem: 1) I will like to check which 2 integer value is negative and which is not. 2) After doing division, i will like to have the quotient and remainder , together in a …

0
60
Member Avatar for DaMunky89

Hey everybody. I'm working on a project in which I need to at many points (279, to be precise) throughout the program set a registry to a certain value. Here's how I've been doing it; and R0, R0, #0 ; Set R0 to decimal zero. add R0, R0, #10 ; …

Member Avatar for ags123
0
323
Member Avatar for stephen_300
Member Avatar for sDJh
0
86
Member Avatar for cmrhema

Hi, we are currently having an console application in C# and asp.net. Its a client server socket programming. We have to convert it into assembly langugage. We are going to implement in linux server Kindly let me know which assembler and linker have i to download (free download). And please …

Member Avatar for sDJh
0
85
Member Avatar for severman

hi all i have this code and now i need to print it char yes and char no i.e.- the sentce is my-second-exercis and now i need to print it m-eod-xri how do i do that? then i need to print the first sentence backwords how do i do that …

Member Avatar for sDJh
0
153
Member Avatar for Bellerofont

I'm new in assembly and was trying to get this program to work, it supposed to calculate the square root of any integer but i don't know how to load the ax into stack, get the square root and return the value to the c++ variable, that was the closest …

Member Avatar for Bellerofont
0
165
Member Avatar for ntege

hi guys there something wrong with this code that i cant quite figure out.i susoect that one of the tables is too long because when i reduce the length of table 1, the code seems to work. this code is for moving sign display and i need all the stuff …

0
53
Member Avatar for fredmac

Team Program Project (PrimeNumberProgram) Comment ! Description: This Program sets the Zero flag if the integer entered by the user is prime. (A prime number is evenly divisible by only itself and 1.) ! INCLUDE Irvine32.inc .data heading BYTE "--- Prime Number Program ---", 0dh,0ah,0dh,0ah,0 prompt BYTE "Enter an integer …

Member Avatar for fredmac
0
71
Member Avatar for Spagett912

Hey everyone and anyone who reads this. I'm trying to make a program that can have a function prompt for 2 integers: void InputNumbers(int & num1, int & num2) find the GCD of any 2 integers: int gcd(int num1,int num2)" and finally display the GCD. void DisplayGCD(int answer) This is …

0
88
Member Avatar for rbutle15

This is a simple question but I can't seem to find a good answer from searching endlessly on Google. Do the basic implementations of the 68000 support nested exceptions? if so when you execute a nested exception does it RTE to where it was called within the previous exception? and …

Member Avatar for rbutle15
0
98
Member Avatar for bobrien314

I have an assignment to do a linked list in mips, but i cant find a good starting point, can someone offer some insignt, and also wouldi t ever be useful to use a linked list in mips?

Member Avatar for bobrien314
0
801
Member Avatar for esmeco

Hello! I need to implement a set greater than and a branch less or equal in my 16 bit ALU design,but I'm having many difficulties. I know that in a set greater than a>b equals a-b>0 ,but I don't know how to work out from that and implement it in …

Member Avatar for Colin Mac
0
99
Member Avatar for mahmed27

Hello respected members, I have installed visual studio 2005 on my new dell xps 1210 m laptop, with MASM 8.0 since i am taking the assembly language class. The problem is it doesn't work because i am on the windows vista operating system. Can anyone help me resolve this problem? …

Member Avatar for Salem
0
91
Member Avatar for vincinzi

I am new to assembly and really to programming in general. I have completely 1 MIPS assignment in my course so far, and it was merely to display a string. This 2nd one that I am working on is much more complex. I am to take up to five integers …

Member Avatar for Salem
0
95
Member Avatar for smart86

Write the programs that prompt the user to enter a string in capital letters, of a maximum length of 20 characters. Read the string in capital letters and convert it to small letters. I have to use this code put i don't know how To convert the capital to a …

0
45
Member Avatar for alias_neo

Hey guys, I'm looking to make some pulsing LEDs and I believe PWM is the way to do it, I'm new to ASM and don't really know how it works. Datasheet is like reading chinese to me. Could anyone please help me out with how to get started?

Member Avatar for Colin Mac
0
116
Member Avatar for ketan.kaloni

im doin project in 89s51 microcontroller.....i hav its assembly code ready with me but now i want to convert it to C language but im unable to do so...its very important nd urgent to me.....plzz ca anyone help me out with this......

Member Avatar for Colin Mac
0
35
Member Avatar for cd0712

I have a project. please help me...... Write a program in C that do the following. 1. Accepts 1 parameter. The parameter is the filename to be processed. If there are no parameters, or if there are more than 1 parameters, show an error message. 2. Opens the file and …

0
45
Member Avatar for li1drag0n

I have this assignement and i have no idea how to code it...i was hoping that one of you guys can help me out here...thanks in advance!!! Description: This is a 2 part lab assignment (labs number 6 and 7). High-Level languages, like C++, take advantage of pre-written and compiled …

0
66
Member Avatar for warplan

Ok so I have some works in MIPS and have never used it before. the works is that I should create 1000string by using 0-9, a-z(lowcase); under 10 characters. the string must start with an alphabet. and then.. sorting that ...(by using Quicksort...) Sorry.. I so foolish in MIPS. I'd …

0
44
Member Avatar for AlexHy

Good morning to all! In these days I am studying the Z80 Assembly Language. To practise myself, I usually use a simulator, but now I would buy it. How can I program this processor? Which assembler do you recommend me? Best regards, Angelo Luparello

0
77
Member Avatar for esmeco

Hello! I'm having problems figuring out how to extend the datapath and blocks used for ble and sgt instructions on MIPS32. After studying a bit I managed to code the instructions for ble and sgt: [CODE] slt $t0, $s2, $s1 beq $t0, $zero, less_equal //////////////////////////// slt $t0, $s2, $s1[/CODE] Any …

0
73
Member Avatar for john_l

I'm writing a program using the LC-3 Simulator with limited instructions. I'm trying to solve the problem "n choose r" recursively. I'm having difficulty pin pointing where my programs going wrong. Any help would be greatly appreciated. [CODE] .orig x3000 ;Clear registers and r0, r0, #0 and r1, r1, #0 …

0
55
Member Avatar for Christico80

Is it possible to set 4 80x86 processors up each of the registers EAX, EBX, ECX, EDX storing 32 bits of a 256 bit variable?

Member Avatar for jbennet
0
74
Member Avatar for zerox55

Hello. I just started with assembly. In my emulator (emu8086) this code work perfectly. But when i write it out to a floppy it doesn't work. I know that if i write out one letter at time, it works. Is it impossible to write this way? [CODE=asm]#make_boot# org 7c00h jmp …

0
80
Member Avatar for DarkDot

I am making an interest calculation program and can't figure out how to get the integer number input by the user into a decimal number. For example I don't know how to make 5, into .05 in MIPS assembly language. I've tried div but I can't get it to work …

0
64
Member Avatar for T'Scoopz

[I]Hello, this is my first thread. I'm a freshman in Computer Engineering and currently taking Intro to Computer Systems with Yale Patts & Sanjay J. Patel's book. I've been using this wonderful website to help better understand the computer language world. [/I] [I]We are currently beginning to write programs and …

0
77
Member Avatar for Soraka

Hello,i am new to the forums. I am in need of help.I have got 3 ASM's witch link together. I put the main one in the ASM to EXE (TASM is what i used) but instead of getting the file i need i get a error that it cant find …

Member Avatar for Soraka
0
44
Member Avatar for cael07

can anyone please give me a simple code of an a86 assembly calculator that can execute +,-,*,/ functions... i really need help... hope anyone there can help me... thanks...

Member Avatar for sDJh
0
117
Member Avatar for DarkDot

I have to make a program that takes a user entered deposit and interest rate and then calculates the balance for 5 years. I can't figure out what I'm doing wrong. I always use the deposit amount of 1000 and interest rate of 5 therefore for the five years the …

Member Avatar for DarkDot
0
169

The End.