2,888 Topics
| |
i want to make a OS and i need to link the c++ file. How i can make a .o file? | |
I have the code here but still can not figure out why it can not work why I enter X=2, and N>= 31.... [CODE].data str: .asciiz " Inter X:" str1: .asciiz " Inter N:" str2: .asciiz " X to the power of N is : " .text main: la $a0,str … | |
i m making a debugger and i want to write a TSR for a debugger so that i can debug any ".asm" file. how should i write it? | |
i want to known that i am starting to work on chip programming so i cant understand my first step.The programming language on which i used to work is java and still working.so my question is that how can i program a chip and i don't have any info about … | |
I'm still a beginner, so please bear with me;) I'm supposed to write a code that generates the Fibonacci series. Here is the sample program output: Please enter n (This program generates 0 to Fn) : 5 0 1 1 2 3 5 So, that's what I did.. [CODE] .data … | |
| guys i need a assembly x86 compiler..in windows i use MASM615..i dont want to code on windows.i do all my coding in java and C..on linux pleas some help for asm compile on ubuntu 10.10 . |
Hello, the exercise says to define a group of locations to define months using a standard number of bytes, and to use 8 bit unsigned to set the number of days for each month... i wrote this DB 'GEN',31D DB 'FEB',28D DB 'MAR',31D DB 'APR',30D DB 'MAG',31D DB 'GIU',30D DB … | |
Hello I am Beginner in Assembly. I Want write this program to Assembly: int x,y,z,w; w=x*y/z+14; Help me. Thank you. | |
My task was to create a program that would copy a file. Ok, didn't look too hard using the textbook and class notes, heavily borrowing from the textbook. However these 2 errors have me stumped. invalid instruction operands segment, group, or register expected. The first one refers to this: mov … | |
Hello I hava a question regarding assembly. How could I take a number from register and find out how many hundreds, tens and ones it has. For example a number 412 has 4 hundreds 1 dozens i 2ones. Ive tried with looping a sub with a BRMI branch, but the … | |
I have a asm boot on a floppy disc and i want to show a c++ kernel (cuz c++ are easy). but how can i link it? I heared somethig about : extern _main call _main for asm. Can anyone help me? :'( | |
Hi all, I have been asked for a homework assignment to write, in Motorola 68K Assembly, an algorithm to sort an array and place the sorted array into another array. I have absolutely no idea how to do this...I have been working on it but i'm having a hard time … | |
Hey Guys! I am vedel and this is my first Thread in this Community. My question is, how i can boot a c++ code? example code: [CODE] #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; } [/CODE] | |
what is wrong with this [CODE];Author : Alerwi Ali ;Function : Sort an array of 10 elemnts(Bubble sort) .model small .stack size equ 10 .data vett db 1,4,3,2,4,-1,-4,0,6,10 temp db ? i db 0 j db 1 .code .startup mov ax,@data mov dx,ax xor si,si xor cx,cx mov cx,size lea … | |
im using fasm (flat assembler 1.68), and im trying to output a string with int21h/ah=09h [code] jmp main msg db "hello world$" main: mov dx, msg mov ah, 09 int 21h [/code] this code outputs "hello world", but it outputs some control characters before it ([SOME WEIRD CONTROL CHARACTERS]hello world) … | |
Could some one here tell me how to resolve the problem it says duplicate DecimalToString Dos that mean i cant use a macro twice in the same program if yes how to print more than one number Thanks in advance [CODE];Author :Alerwi Ali ; function: Calculate the sum of ; … | |
Hey everyone, my first post here, so lets see if I do this right. So I have this assignment that links a fibonacci.c, fib.h, and fib.s file. The assignment is supposed to be done by compiling all of the files, then running ./fibonacci <n> where <n> is the n'th term … | |
My project is to take an input file and reverse the text, but first I want to concentrate on just plain reversing a string. This program has no errors, but it doesn't display the reverse string [CODE]INCLUDE Irvine32.inc .data source BYTE "This is the source string",0 target BYTE SIZEOF source … | |
Problem that ask to write an application that fills an array with 50 random integers,loop through the array,displaying each value, and count the number of negative values;after the loop finishes display the count. Note: The Random32 procedure from the Irvine32 library generates random integers. *I honestly don't know where to … | |
Hi...I'm having a little problem doing a program in the LC-3. I have to do a program in which I declare a string and then print it backwards. The other part of the program then wants me to count the number of times each letter repeats itself in the string. … | |
Does anyone know how to create ASM code in VS2008? I am so confused and cannot find the method in which I can code in Visual Studio. | |
what r sum applications of very common microprocessors and microcontrollers that uses assembly language as its basic or core language | |
i have to submit my assignment after 4 hours and there are fue things i couldnt understand i wich any can help me to understand.... Given DS = 1234H and the declarations: DATA SEGMENT VAR1 DB βCATβ, 3 DUP(?), 0, β0β, ? VAR2 DD 123ABC4DH DATA ENDS and [COLOR="red"]LEA BX, … | |
I am not understanding how to convert a 2d array from c to Mips assembly. Like if you had int array[5][2]={{1,1},{2,2},{3,3},{4,4},{5,5}} how would you convert that to Mips assembly and access it like x=array[i][0] & y=array[i][0]? | |
First of all, yes this is homework. Secondly, I'm pretty much stuck :-/ As an example, say I have a word: 0000 0000 0000 0000 0000 0000 001[COLOR="Red"]0 0011[/COLOR] ; 35 I want to convert it into IEEE 754 using MIPS: 0100 0010 0[COLOR="Red"]000 11[/COLOR]00 0000 0000 0000 0000 ; … | |
Hello, I'm just working on a fibonacci numbers in 8086 assembly. However it is not working as I expected. All I want count from 0 to 100. If anyone knows, please help me, thanks. Here the code I have done so far: [CODE] org 100h mov al,0 mov bl,0 mov … | |
Is it possible to be unable to put two "physical addresses" with a distance of less than 256k in a segment? My assembly professor asked me this. Is this the right answer:"it depends on how you set the align type(BYTE,WORD,PARA,PAGE), if you set it to BYTE the answer is NO … | |
This is just an example to show what I am attempting to do. It's just a small portion of a larger project I have nearly completed, but am now trying to tie the existing procedures together. I want to pass the value of the variable proc1_var from procedure1 onto the … | |
Dear all, I use MASM611 to compile code assemply. Please hepl me to implement functions to read IO or Memory. I have a Base Address (example: 0xE1004000), i want to read IO or Memory at this address. And is that address a IO Addrress or Memory Address in DOS? And … | |
I am new to assembly so I need help with fixing some things in my code. I need to add three integers and print their sum. The prompt for "Enter the integer" changes color each 3 time it asks the user for entering the number, on a white background. I … |
The End.