3,896 Topics
![]() | |
anyone got any idea how does the CPU determines which register should receive the result produced by an instruction? thanks | |
can someone remind me how to loop a character please. I'm begging you all. my output must be this: *********************************************** * * * * * * * * *********************************************** i know how to set the color attribute for a character, my problem is I for got now on how to … | |
here is an example of floating point representation ... I am unable to understand whats going on. book isnt much help except that I know the bias part and that the matissa is 23 bit and exponent is 8 bits. however I don't understand how the conversion is being done … | |
Hi.... All Can any one solve this.... i have an application it contain many aspx pages. here i am collecting all controls id's(ex:label1,texbox1,grid1.....etc ) from all page in the application till its working fine.... now i want to collect text property of that contros(ex: label1 have text property StudentId ...etc) … | |
Hi, ALL I'm new in this Discusion Community and C#, I have an error of which was long answered but I can't seem to find it because I'm not farmiliar with this forum. Anyway my error: The type or namespace name 'StoreItem' could not be found (are you missing a … | |
Write a main program for the MIPS machine that uses syscall to repeatedly prompt the user to enter strings one per line representing valid decimal integers in the range 0 to 999999999999. Use 64 bits for each integer. Valid strings may only contain the characters ‘0’ through ‘9’. All strings … | |
so i have this following code which does this simple thing in mips mult $t0, $t1 $t0 = -763 $t1 = 29 when I move the values from hi and lo registers to $t2 and $t3 i get following values for each $t2 = -1 and $t3 = -22127 is … | |
Hi, I need this program to print ascii code that I entered to al. The problem is that it is always print the char of the value ; i.e If I type a, al=61. How I print just the '61' and not the 'a' ? Here is my code : … | |
I am trying to find out if the Auxiliary carry flag only turns on when the 4th bit carries out from the 3rd bit or if it will turn on for the 7th to 8th bit aswell. This is what I did already: mov ax, 0Fh ; this is the … | |
Hi, i am presently working on C but there are some situations i need to know the assembly code of corresponding C program. if any can provide some general info of c - assembly it would be appreciated. i have a program called [CODE=C]int main() { printf("Hello,Plz Help\n"); return 0; … | |
Hey guys i just joined, I am sure this is a dumb question, but i been googling for the past week and cant seem to find a simple answer. I been trying to learn asm and I am trying to make a menu system. So like you type 1 and … | |
I would like to be able to have the user input a 1 or 0 and have whatever was inputted into an array. Here is what I have so far. .model small .stack 100h .code start: my_arr db ? mov dl, [my_arr] mov [my_arr], al add dl, '0' mov ah, … | |
Does anyone know how to change the colour of strings using x86 NASM Assembler? I've found tutorials like this: [CODE] mov ah, 09h mov al, 97 mov bx, 100b mov cx, 01h int 10h [/CODE] Which prints the letter "A" once in the colour you choose. This is a handy … | |
Hi , i want to write Mips Assembly code to increment the elements of an array. i've written this : #AIncrement.s -- A program that increments the elements of an array ################################## main: .data list : .word 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 .text move $t4,$zero … | |
Hello, I have a program, let's say foo.cpp . If I do "g++ -S foo.cpp". That generates the file "foo.S" with assembly code. I would like to compare the assembly code foo.S with the assembly code generated if I put foo.S in a c program (even though there should be … | |
hi.. can someone help me with this question Write down a sequence of instructions that would implement the synthetic instruction addd $t0,$t2 to produce a double precision sum (i.e. 64-bit sum) of two unsigned 64-bit integers. The first 64-bit integer is in the register pair $t0 and $t1, while the … | |
Hi :) I'm trying to get the vendor ID using the CPUID opcode. Again, this is inline ASM with C; but it's the ASM that I need help with. The C is fine AFAIK. I'm not sure if it's the way I'm trying to do this, or if my CPU … | |
| |
How do you paint pixels in NASM, could someone tell me about it and mabey give me an example? | |
Hi there, I'm kinda new to making asm programs and i was wondering if you could make a countdown timer where the user is asked for the input and it is displayed in countdown, lets say a max of 59 secs. I was only able to make one that counts … | |
I need to write a program in assembly that will read a file using the irvine library. My question is if I read in 50 bytes into a buffer, I can't figure out how to get the second 50 bytes and so on? Does anyone have an idea on how … | |
This is somewhat a simple project I wrote by getting help from google groups I always recommend. assemble this code using this command: [QUOTE]nasm -o 1.com 1.asm[/QUOTE] | |
I am coding like usual, haven't click anything I don't know. Then suddenly I got an error [B]"Could not find type 'LFRv2.AdminTabEdit'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has … | |
I'm now developing Multimedia program . I use winmm.dll assembly. I can do Play, Pause,Stop, Repeat function , but I'd like to create Playlist . How can I do it?. Please help me , thanks | |
guys?is it even possible that once i created a file already with my program then execute that program again wont create a file anymore?.. like q.txt then its created..but when i execute my program again and type a string to create a file like w.txt..it doesnt create the file..theres a … | |
hi, who can give me the address offset's time of system | |
Good , I need help. I have a blank aspx page where I want to add a drop down down from a sql database and get selection of dropdwon value. Coding in Notepad & not in Visual Studio I tried this example [url]http://www.webconcerns.co.uk/asp/combo/combo.asp[/url] that uses javscript but it connect to … | |
i have been trying to do any interrupts in protected mode and i have been using msdos interrupts so it makes sense that they are not working i have been working through the threads so as not duplicate this but i haven't found any and i figured i would just … | |
I am trying to make a program that prompts the user for input then outputs it to them(back to the good old days :D). It all works, except it doesn't output what the user inputs, it outputs a bunch of crazy numbers, can someone help me? Btw I am using … | |
What I want to do is to load in a dll dynamically (which I think I have achieved with this code below, a message box is showing the name of the class within the dll file). I then want to return the value of a variable which is defined by … | |
am trying to make a timer circuit with the help of 89c52 micro controller. I have one assembly language program, but the programming kit supports only to C language. I want to translate assembly program to C program so that I can use it for the above mentioned micro controller. … | |
I'm having trouble with my program. I believe I've figured out most of it, but there's one thing that I still have no clue about. That's how to go through a string and check whether it's a digit or letter. I figured I could do something like this to remove … | |
I have following code which reverses any input provided using recursion. I am trying to understand what each line of code does. so I can have a better understanding. so I have some questions, wondering if someone can help me understand whats happening in the code. I have commented each … | |
I am trying to do towers of hanoi recursively below is the code. my problem is that i am not getting out of the cycle at the right time so code keeps on running... can someone tell me what I may be doing wrong? [CODE] .data msg0: .asciiz "Enter number … | |
Hello everyone, I have to write a code to creat a pseudo assembler..I have an input file from which i read the assembly instructions from there i get the register numbers ...i have to convert that into machine code..i.e binary form... Now my problem is that i can find the … | |
so i need to input 10 ints into a table then use insertion sort but i dont know how to step through the table like you would and array in c++ since i have found out i cant go tbl[length-1] for example because i get an error saying "cant add … | |
This Question is not programming related but rather important for all compiler related programming languages especially the Language C. what is portabily? since my graduation i have been taught C is not 100 % portable language. but i dint get any satisfactory answers for,not 100 % portable? where its lagging … | |
Hi everyone, We are learning MIPS at one of my classes and in the book there are some exercises, but I'm having problem with one of them. It is a buggy code and we are supposed to find the cause of an exception. [CODE=mips] # This code is supposed to … | |
I'm actually writing this code as inline ASM but I feel it is more relevant to ASM than it is to C... Basically all I want to do for now is print the alphabet. However I'm having some trouble getting used to AT&T syntax (I would rather learn it than … | |
first things first..i still have my exe file that the program works.. i was just putting labels to my program then the next thing happens it does not work anymore except for the terminate program.. if some of you guys have time please recomplie it and test it in your … | |
guys?i need myself to make a project using tasm to be passed next week on friday. what i ve learn so far are int 21 and slight of int 10..but will learn most if needed in my project..i was thinking of file manager?is it complex to make or not?my teacher … | |
hi, plz could u give me a tasm code for digital clock because i have a project tommowro | |
guys wondering how come the code doesnt work.. im using tasm as u might know..im checking on things work and want to see what its output be..thanks hope you can help me with this one. i tried converting it tasm but say argument needs to be override. [code] .model small … | |
Okay, so, I've got this code- [CODE=C#] List<Post> list = new List<Post>(); foreach(XElement post in posts) { var postType = post.Descendants(); var type = (string)post.Attribute("type"); Post item; if (type == "regular") { item = new RegularPost(); item.title = (string)postType.ElementAt(0); item.body = (string)postType.ElementAt(1); } if (type == "quote") { item = … | |
Hello! I'm kind of new in assembly programming and I've been struggling with the following problem today: How to print an integer, using BIOS interrupt [B]10h[/B], with its [B]0Eh[/B] in AH register, as its function to print a character to the screen... For example, how to print the last digit … | |
So when I take an argument off the stack it seems that is in the form of a string, is there a way i can convert it to a integer so i can "cmp" it with another argument which i also wish to convert to an int? I am a … | |
guys need help says when executed.The syntax of command is incorrect.. i dont where i went wrong..here is my code.. [code] .model small .stack 100h .data file db "TEST.TXT",0 ; File name new db "Rename.txt",0 ; New name dir db "D:",0 ;Current directory .code start: mov ax,seg dir mov ds,ax … | |
I believe I can read string using li $v0, 8 syscall how can I take what was read and check if it was a specific value. e.g. if input was Y then jump to loop label. if it was N then jump to exit label. thanks | |
I have write a assembly program using SPIM simulator. Wondering if someone can guide me on how to start on this. Program will take number from 1 to 365 as input and print month and date. For example you input: 2 program will say : its January 2 if your … |
The End.