2,889 Topics
![]() | |
I am trying to figure out the way to use the nested loop in a proper way but so far i am failed, The loop run to infinity when i run the program which i definitely don't want to do, here is my code, .MODEL SMALL .STACK 100H .DATA var1 … | |
In assembly language how do I write code to take input from a sensor and turns on a LED? I'm writing an assembly program that will read information from a sensor that will detect whether its raining or not. the sensor will be the input and the LED will be … | |
I need help with this code. It isn't working correctly. ; last error in is LASTERR Error No impersonation token ; ; reparieren.asm Help from Fetten,Dave,Frank K.,Qword,TightCoderEx, ; To err is O.K. as long as it isn't too many. ; .386 ; .model flat,stdcall ; option casemap:none ; include masm32includecomdlg32.inc … | |
i have problem in this code it work well in 1st loop then its bug as si and di still the same and making alot of jumps without any change this code sorting descending jmp strXt0 arr dw 0x1,0x9,0x3,0x2,0x7,0x3,0x6,0x4,0x9,0x5 arr_e equ $ strXt0: mov si, arr mov di, arr+2 mov … | |
Is it possible to make drivers from scratch in assembly and how easy is it???? anyway im also new to this forum. im almost 15 and really enjoy learning about programming. | |
I have a course (reverse engineering) in uni and i have a homework. I got a .obj file (which was compiled with visual studio 2008), and i have to disassemble it, figure out the control structure and call it in a little c program. I used IDA decompiler, here is … | |
1. Do virtual PCs have their own virtual processors that is a piece of a hardware? (I know that both ues the same physical processor, but how does a Guest os in a 32 bit virtual machine sees the processor as a 32 bit processor , eventhough it really uses … | |
Hi guys I got a question about how to reversethe little endian. My questions is how do I do it. Say the user inputs hex 4423, how do I get it to reverse in the program to read as 2344? and help would be greatly appreciated. I need this because … | |
I'm learning the PIC16F690 and I'm trying to program it to do a simple operation, move over one led each time the single button is pressed and then reset. I'm not asking for code, just if I can bounce ideas of how to implement this off someone who can maybe … | |
I bet all Computer Science related courses would learn low level or machine level languanges in due time and in our university we used the portable 80x86 assembler NASM for our Assembly code So here's my experimentation on how to use "functions" and recursion using a Fibonacci Solver as a … | |
**C++ Code:** #include <iostream> using namespace std; int sum(int n) { if (n <= 0) return 0; else return n + sum(n-1); } int main() { cout << "Range num? "; int num; cin >> num; cout << sum(num) << endl; return 0; } **My Pep/8 try at it:** br … | |
So my program is supposed to ask the user for a hex and decode the Mpeg for the Version, Layer Description, and sampling rate. So My problem is getting the smapling rate any suggestions? TITLE CS2650 Assembler Assignment #3 Template ; Student Name: Cody Squadroni ; Assignment Due Date: 11/25/2012 … | |
I'm about at my wits' end trying to figure this out. This is homework, so any hints would be appreciated. I was tasked with filling in a few blocks of code (these are denoted by comment lines with a number resting in the middle) involving function calls in MIPS. The … | |
What I need to know to create simple MIPS simulator program in Java? I have to create MIPS assembly simulator in Java language, but I don't know where to begin. Could anyone tell me what I need to know (if possible with some resources ) before beginning this? I already … | |
Create a program that will input a sentence and push each character onto the stack all the while counting the number of characters. Then pop off each character and print them backwards (natural with a stack) and print the length. Like so: **I like burgers!** **!sregrub ekil I** ***The number … | |
Create a simple calculator that has the following menu: A – ADD S – SUB N – NEG Q – Quit Input option: A Input number: 11 Ans = 11 Input option: S Input number: 5 Ans = 6 Input option: N Ans = -6 Input option: A Input number: … | |
Hello again I am writing a program that takes the users input and finds that many primes; not the primes of the number from the user just that many. The problem is when I input the amount of primes to generate I don't get all the values from primes variable … | |
Hi, I am having trouble when I read in an integer from the keyboard and I try to display it to the screen back as the same integer. It pops out as an ASCII character. Am I doing this wrong or is there a way to read it as an … | |
Hi I am trying to write a program that counts the number of letter in a string. My code compiles fine but doesnt work when I run it. My output should be "Capital letters appear x times in y" Where x is the num (from my code) and y is … | |
Hi, Am trying to do up a Fibonacci sequence for MIPS (School requires us to make use of HASE Simulator). I have done up the following code but the output seems to be a tad wrong. ADDI R2 R0 1 ADDI R3 R0 1 ADDI R4 R0 1 ADDI R1 … | |
Hello everyone,I'm new in MIPS programming, can anyone show me how to write code for these two programs. 1)Write a procedure called order that accepts two arguments. The first argument is the address of the array and the second argument is the index of an array element i. The procedure … | |
Hi Guys , I am stuck in finding first 29 numbers in the Fibonacci sequence.I already have the code that can display the first 11 Numbers, Here is my code : .MODEL SMALL .DATA NUM_1 DB 0 NUM_2 DB 1 NUM_3 DB ? .CODE MAIN PROC MOV AX,@DATA MOV DX,AX … | |
Hello Community, I need help with this script, i can't seem to use this to switch beteen dll files that contain a form eg. if i use it to open a form from the dll file called "Dll One" then when i click the button again it still opens the … | |
i am using masm to write assebmly language codes. can you please tell that how can i change binary numbers to its ascii ? like 10 is given what will be its ascii value ? i know that 30h is ascii value of 0 ans so on. please help. | |
.class public Contest .super java/lang/Object ; ; Team members: Bianca Cutler ; ; ; ; ; Your assignment is to fill in the fibs method below ; so that it creates (exactly) the output you see in ; fibsgolden.txt ; ; The contest will be won by those entries that … | |
I am writing a program to get an integer from the user, and then print out all the numbers from 0 up to the number. My code gets the input fine, but when printing it out, it prints continuously in what seems to be an endless loop. Here is my … | |
;I wrote this program that will display a calendar for 3 months.I try to run it with NASM and TASM but i keep getting errors . Can somebody run it and tell me what to do . thanks .MODEL small .386 .STACK .DATA inBuffer DB 80 DUP(?) scrBuffer DW 25*80 … | |
I want to know how I can access the data stored in these variables...but I have no idea what N0$ for example stands for and how to extract the data from there into a register, for example. N0$: .byte DASH,DASH,DASH,DASH,DASH,END ; 0 N1$: .byte DOT,DASH,DASH,DASH,DASH,END ; 1 N2$: .byte DOT,DOT,DASH,DASH,DASH,END … | |
Pretty self explanatory code. Why doesn't it work! #include <stdio.h> int main() { __asm__("number dw 0"); // declare number? printf("%d",number); __asm__("mov %eax,number" "inc %eax" "mov number,%eax"); printf("%d",number); return 0; } cc ex1.c -o ex1 ex1.c: In function ‘main’: ex1.c:22:17: error: ‘number’ undeclared (first use in this function) ex1.c:22:17: note: each … | |
I mean physically harm it. damage the processor by overheating,memory etc?? Also "Does the programmer have to control memory manually in Assembly ?" | |
A books says that a register is abt 1KB.the books is trustworthy.But aren't they supposed to be 32-64 bits? http://oi45.tinypic.com/24lpjt3.jpg Inside the Machine: An Illustrated Introduction to Microprocessors and Computer Architecture screen capture from the book | |
Hello, I am solving the assignment by Faculty Dean.but I face with that problem CS=1000; AX=0001; IP=0006; SP=0038; DS=2000; BX=0004; BP=0005; ES=4000; CX=0005; SI=0008; SS=5000; DX=4477; DI=0009; SUB [BX],CL; and another problem ADC DL,[BX]; footnote:these problems do not depend on each other | |
So I am trying to convert some C into mips and I am running into a problem. So here is the C and the mips. My question is a few things, 1, all the times I have done a comparasin, > < == in the past there has been an … | |
hi i am trying to build an application coded in C# and i has using MSFileIO = Microsoft.VisualBasic.FileIO; and giving an error "Error 1 The type or namespace name 'FileIO' does not exist in the namespace 'Microsoft.VisualBasic' (are you missing an assembly reference?) UZipDotNet " how do i add the … | |
let's say we have a Single core, 2 cores and a 8 cores processors. Do people have to write codes sepearatly to take advantages of multiple cores and single core? I have seen same software runs on t 2 cores and a 4 cores prcessors. how could this happen? | |
Can I print letters in assembly graphics mode by using some commands, or do i have to draw everything pixel by pixel? If so, how? | |
Assume that the variables a, b, c and d are signed integers held in registers $s0 to $s3 respectively and put the result of the expression into register $t0. Also assume that the result of the multiplication will fit in 32 bits. (a + 2) * (b + c) * … | |
I'm always confused(actually, no idea) how kernel interacts with hardware. Before that, I wondered how softwares run, how OS works. How things OS interacts with the hardware. Then I get to know that OS talks with the kernel. Now I don't have the slightest idea that how assembly language or … | |
I'm trying to install MASM 8.0 but the instaler stops before the end! I already downloaded visual Visual C++ 2005 Express Edition but then it disappears and nothing else happens. | |
Hi. This is my code for creating a calculator gui in assembly language. What I want to do is to click any number from 1-9 and it will show inside the textfield. Unfortunately, I'm still confused on what to do. I hope you can help me with this. Thank you. … | |
Hi. Can anybody help me how to shorten my code? This is for a calculator gui using assembly language. .model small range macro x,y ;set cursor mov ah, 02 mov bh, 00 mov cx, 00 mov dh, x mov dl, y int 10h endm display macro char mov ah, 02 … | |
So here is what I asking: lea eax, [esp] push 104h ; Count push offset a__2 ; ".\\" push eax ; Dest call _strncpy add esp, 0Ch Can you please explain me this asm code snippet. The eax register late is assigned as an character pointer to an global variable. … | |
can anyone give me a simple assembly program in win32 and how to compile in | |
Hello world, Lately I bought a TI-84 (Graphing calculator) for my Math classes. I started wondering how to program it using assembly. Over the internet I found tutorials about this using TASM (+other building tools), but this isn't quite what I want. I've much experience with NASM, so it would … | |
is there a compiler(software) for MIPS (Assembly Language) that let me write and run programs? for ex Java -> eclipse. | |
....do not exist really,they are just the registers in the Programming architectutre and there are more processors on a CPU physically. those cx,ax etc... are there to simplify programming as there are a lot of other real registers in the processor???? I thought those places were real! | |
Someone explain it briefly Is it a software or a hardware or both? | |
Hey everyone, this is my first day coding in assebly! I was wondering if this code has any errors, well no errors per se, but like bad practice i guess section .data x: dd 6 y: dd 7 msgx: db "X greater than y", 0xa msgxlen equ $-msgx msgy: db … | |
1. Is a 32bit register 32 bits in size and a 64bit is 64bits? 2.What is decoding in a processor? 3.Are there real pcitures of processor registers? where? |
The End.