2,888 Topics
| |
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] | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.