3,896 Topics

Member Avatar for
Member Avatar for shahab03

anyone got any idea how does the CPU determines which register should receive the result produced by an instruction? thanks

Member Avatar for shahab03
-1
62
Member Avatar for masterjiraya

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 …

Member Avatar for BestJewSinceJC
0
127
Member Avatar for shahab03

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 …

0
57
Member Avatar for ravinaik_2002

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) …

-1
69
Member Avatar for Sarazine

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 …

Member Avatar for Geekitygeek
-1
136
Member Avatar for shahab03

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 …

0
52
Member Avatar for shahab03

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 …

Member Avatar for wildgoose
0
66
Member Avatar for D-P

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 : …

Member Avatar for NotNull
0
1K
Member Avatar for assembly101

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 …

Member Avatar for wildgoose
0
207
Member Avatar for tahiralikhan
Member Avatar for Gaiety

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; …

Member Avatar for gerard4143
0
209
Member Avatar for tifka

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 …

Member Avatar for Goalatio
0
316
Member Avatar for heat89

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, …

Member Avatar for NotNull
0
114
Member Avatar for MichaelSammels

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 …

Member Avatar for NotNull
0
4K
Member Avatar for helinix

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 …

0
50
Member Avatar for ubuntuubuntu

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 …

Member Avatar for gerard4143
0
356
Member Avatar for shahab03

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 …

Member Avatar for shahab03
0
101
Member Avatar for chrisname

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 …

Member Avatar for chrisname
0
233
Member Avatar for jingo1126
Member Avatar for tomtetlaw

How do you paint pixels in NASM, could someone tell me about it and mabey give me an example?

Member Avatar for NotNull
0
2K
Member Avatar for nikolai090

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 …

Member Avatar for NotNull
0
2K
Member Avatar for functionalCode

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 …

Member Avatar for wildgoose
0
58
Member Avatar for mostafadotnet

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]

Member Avatar for wildgoose
0
456
Member Avatar for yorro

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 …

Member Avatar for yorro
0
655
Member Avatar for khinemyohtun

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

0
44
Member Avatar for jingo1126

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 …

Member Avatar for jingo1126
-1
150
Member Avatar for c+++
Member Avatar for ismailc

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 …

0
55
Member Avatar for therstonsplace

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 …

Member Avatar for therstonsplace
0
218
Member Avatar for tomtetlaw

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 …

Member Avatar for tomtetlaw
0
71
Member Avatar for CJG87

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 …

Member Avatar for sknake
0
149
Member Avatar for gtey

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

Member Avatar for dkalita
0
183
Member Avatar for gauntex

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 …

Member Avatar for wildgoose
0
9K
Member Avatar for shahab03

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 …

Member Avatar for wildgoose
0
166
Member Avatar for shahab03

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 …

0
51
Member Avatar for gauri_phatak_87

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 …

Member Avatar for mrnutty
0
752
Member Avatar for tyczj

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 …

0
71
Member Avatar for Gaiety

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 …

Member Avatar for dkalita
0
96
Member Avatar for ripineros

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 …

Member Avatar for ripineros
0
82
Member Avatar for chrisname

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 …

Member Avatar for chrisname
0
197
Member Avatar for jingo1126

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 …

-1
73
Member Avatar for jingo1126

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 …

Member Avatar for jingo1126
-1
160
Member Avatar for fma_circuit

hi, plz could u give me a tasm code for digital clock because i have a project tommowro

Member Avatar for NotNull
-1
122
Member Avatar for jingo1126

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 …

Member Avatar for NotNull
-1
154
Member Avatar for Ishbir

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 = …

Member Avatar for Geekitygeek
-1
138
Member Avatar for andreib

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 …

Member Avatar for NotNull
-1
162
Member Avatar for ov3rcl0ck

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 …

Member Avatar for ov3rcl0ck
-1
289
Member Avatar for jingo1126

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 …

Member Avatar for jingo1126
-1
1K
Member Avatar for shahab03

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

Member Avatar for wildgoose
-1
123
Member Avatar for shahab03

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 …

Member Avatar for wildgoose
-1
114

The End.