2,889 Topics

Member Avatar for
Member Avatar for Xufyan

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 …

Member Avatar for sbesch
0
3K
Member Avatar for jason007thomas

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 …

Member Avatar for sbesch
0
433
Member Avatar for salma.zaki.31
Member Avatar for Fix_It

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 …

Member Avatar for Fix_It
0
190
Member Avatar for MrMicro

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 …

Member Avatar for ShiftLeft
0
114
Member Avatar for Bailey98

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.

Member Avatar for deceptikon
0
37
Member Avatar for tamas.vincze.714

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 …

Member Avatar for pritaeas
0
529
Member Avatar for silvercats

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 …

Member Avatar for deceptikon
0
167
Member Avatar for Sasquadge

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 …

Member Avatar for Sasquadge
0
120
Member Avatar for Goldfinch

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 …

Member Avatar for Goldfinch
0
175
Member Avatar for zeroliken

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 …

0
1K
Member Avatar for StNtMaN

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

0
68
Member Avatar for Sasquadge

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 …

0
284
Member Avatar for eggshell5150

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 …

Member Avatar for eggshell5150
0
606
Member Avatar for programmmer

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 …

0
143
Member Avatar for StNtMaN

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 …

0
87
Member Avatar for StNtMaN

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

0
75
Member Avatar for Wh1t3gh0st

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 …

0
295
Member Avatar for Wh1t3gh0st

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 …

Member Avatar for Wh1t3gh0st
0
105
Member Avatar for stayyaba

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 …

Member Avatar for ShiftLeft
0
194
Member Avatar for faithful4ever

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 …

Member Avatar for faithful4ever
0
600
Member Avatar for ssfox

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 …

Member Avatar for ssfox
0
207
Member Avatar for Tiger909

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 …

0
348
Member Avatar for joshl_1995

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 …

0
178
Member Avatar for nitin1

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.

Member Avatar for nitin1
0
540
Member Avatar for arieszbby

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

0
192
Member Avatar for Rileyh

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 …

Member Avatar for dancie reeves
0
923
Member Avatar for luisnaxxario

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

0
81
Member Avatar for freedomflyer

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 …

Member Avatar for deceptikon
0
178
Member Avatar for Enders_Game

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 …

Member Avatar for Enders_Game
0
290
Member Avatar for silvercats

I mean physically harm it. damage the processor by overheating,memory etc?? Also "Does the programmer have to control memory manually in Assembly ?"

Member Avatar for mathematician
0
167
Member Avatar for silvercats

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

Member Avatar for Schol-R-LEA
0
229
Member Avatar for Tuna_1

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

Member Avatar for deceptikon
0
247
Member Avatar for calvintmoss

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 …

Member Avatar for deceptikon
0
3K
Member Avatar for anisha.silva

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 …

Member Avatar for nmaillet
0
287
Member Avatar for silvercats

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?

Member Avatar for mathematician
0
86
Member Avatar for shenamae.borja

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?

Member Avatar for mathematician
0
149
Member Avatar for Bradoz

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

0
127
Member Avatar for abhi.blog

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 …

0
84
Member Avatar for aiwasen

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.

Member Avatar for GunnerInc
-1
111
Member Avatar for Maria Jose

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

Member Avatar for untio
0
133
Member Avatar for Maria Jose

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 …

Member Avatar for Maria Jose
0
130
Member Avatar for sasho648

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

Member Avatar for deceptikon
0
125
Member Avatar for bobejoe

can anyone give me a simple assembly program in win32 and how to compile in

Member Avatar for untio
0
90
Member Avatar for FallenHero

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 …

Member Avatar for Schol-R-LEA
0
223
Member Avatar for hwoarang69

is there a compiler(software) for MIPS (Assembly Language) that let me write and run programs? for ex Java -> eclipse.

Member Avatar for nmaillet
0
105
Member Avatar for silvercats

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

Member Avatar for deceptikon
0
123
Member Avatar for silvercats
0
80
Member Avatar for Angeljruiz

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 …

0
59
Member Avatar for silvercats

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?

Member Avatar for mathematician
-1
277

The End.