2,878 Topics

Member Avatar for
Member Avatar for Strangelle

I am having trouble with our assignment at microcontroller. We need to make a hardware using pic16f84a that enables a 3x4 keypad to enter 3 digits,that can be stored and retrieve if you want, then those digits will be displayed in 3 7segment display. I really need help for this. …

0
79
Member Avatar for |hex

i need help with, what i believe is complicated but probably isnt, on this following problem. i need to write a sequence of instructions that will do: variable5= -((variable1 + variable2) - variable3) + (variable2 - variable 4). thank you in advance.

Member Avatar for Tight_Coder_Ex
0
97
Member Avatar for bigwhiteegg

Q1: if I want to make this [B]char word[32] = "Backward"[/B] to be global how do i initialize the "Backward"? by doing LDX and STX?? Q2: in a switch statement in C++, it is often to see [B]case 0: case 1: cout<<"something"; break;[/B] how do u make this in assembly …

Member Avatar for Tight_Coder_Ex
0
122
Member Avatar for bigwhiteegg

here is part of a C++ function that i'm having difficulty translating [CODE]void rotate(int ls[], int n) { int j; int temp; temp = is[0]; for(j=0; j<n-1; j++) { ls[j]=ls[j+1]; } ls[n-1]=temp; }[/CODE] so far this is what i have [CODE];void rotate(int ls[], int n) j3: .EQUATE 0 temp: .EQUATE …

0
66
Member Avatar for Tellalca

Hey; I have an assignment but I'm having trouble because I don't know almost any assembly. I have figured out something but please help me if I have mistakes, and with the 3rd formula. Using knowledge from previous weeks, write assembly programs which calculate the given formulas: a)Sum (i=1 to …

Member Avatar for Kieran Y5
0
106
Member Avatar for Cragsterboy

okay guys im really stuck on this and i need help badly. All i know is that i need a loop at the begining to ask for four different marks, these marks have to be between 0-100. the marks are then stored in array and then i do a sum …

Member Avatar for Tight_Coder_Ex
0
95
Member Avatar for dem10

Hi all, I think I am on the right path, teaching myself MIPS for my job and I need help adding to an array. I am doing a few different tutorials here and there and right now I am in the middle of doing a tutorial for this code: value …

0
51
Member Avatar for ww33ww

hello, i find this code but i don't know how it works please is there anyone know how to change characters font i need a sample example [CODE] push ds ; pop es ; make sure ES = DS mov bp,offset OurFont ; mov cx,02 ; we'll change just 2 …

0
66
Member Avatar for Cragsterboy

okay guys im really stuck on this and i need help badly. All i know is that i need a loop at the begining to ask for four different marks, these marks have to be between 0-100. the marks are then stored in array and then i do a sum …

Member Avatar for Cragsterboy
0
96
Member Avatar for mansace

I have this code where I have to implement binary search by first using the selection sort algorithm in mips My selection sort works but trying to use the sorted list to execute a binary search is where my problem comes. I get an error saying is out of range. …

0
61
Member Avatar for aanders5

Ok, I have two pieces of code, this is my FIRST time ever trying to do a SPIM coding, so forgive me if this is a total trainwreck. :) [B] I will FIRST post the question, along with pseudo code of what it is suppose to do. THEN I will …

0
83
Member Avatar for dhanh90

I'm learning MIPS structure and starting writing assembly code..and i have problem with multiplication...the thing is in mips we have HI and LO to store the product .when the product is small (32 bit) i can use mflo to print out the result..but mult two big numbers the result will …

0
59
Member Avatar for Jtibs

Hello, I am trying to write a MIPS program that uses a function call to return the index of the smallest character within an array. I have my code set up in a way I thought would be correct, but when I try to test it seems to not even …

0
127
Member Avatar for guthrie

hi i need to make a program in assembly mips that checks if a letter exist in one string any ideas?

Member Avatar for Goalatio
0
120
Member Avatar for amateur¬

Basically, I've written assembly code which allows a text file to be copied from it's current location through the Com cable onto a destination on another computer. This is the code for the transmitter part ONLY. [CODE]#include <stdio.h> #include <conio.h> #define FEND 0x40 int main (void) { char wtmode[]= "wb"; …

Member Avatar for Goalatio
0
210
Member Avatar for magicsign

You can become crazy with this problem. Lets see this other quick solution to compare strings. Remember that strings are a sequence of bytes. home : h(first byte),o(second byte),...,e(last byte),0 a tag to identify the end of the string. Suppose you have a string inside a register : %esi and …

Member Avatar for Goalatio
0
303
Member Avatar for davibq

Hi, im trying to print a "$". I tried using: msj db "Hola", 36 msj db "Hola \$", '$' msj db "Hola \\$", '$' But none of them worked.. Help please

Member Avatar for mathematician
0
154
Member Avatar for SuperTron

Hi there, I am having some problems with an assembly line on my core 2 duo system running mac os x 10.6.4. Basically, I am trying to run this C command using gcc: [CODE] __asm__("movl %0, %%esp" :"=m" (jumpsp)); [/CODE] Where jumpsp is a character pointer. Now, this code fragment …

0
34
Member Avatar for mikesr

Hi! I'm trying to convert C++ code to nasm ..unsuccessful Well, here is the c++ code: [code] int recursion(int n) { if ((n==0) || (n==1)) return 1; else if (n==2) return 7; else return recursion(n-3)+recursion(n-2); } int main () { for (int i=3; i<=15; i++) { cout << recursion(i) << …

Member Avatar for mikesr
0
123
Member Avatar for assemblerage

I'm sure this is the most belabored question here as this comes from a school assignment but I have perused google for far too long. Can someone help me get this code to output? I've tried putting the li, print_int calls in both loops and keep getting weird answers. This …

0
66
Member Avatar for Alerwiali

[CODE] This program suppose to take number of rows and print a triangle of stars like this: How many row for the triangle? = 12 * *** ***** ******* ********* *********** ************* *************** ***************** ******************* ********************* *********************** Please help with no much modification if possible !! ;Assembly Version .model small …

0
63
Member Avatar for lee.j.baxter

Hi everyone, I'm creating my own OS from scratch, and I'm first producing an installation CD so that I can easily install my kernel on a hard drive. So far, I've written a CD-based bootstrap loader in NASM that finds a program within the root directory of the CD, loads …

Member Avatar for lee.j.baxter
0
285
Member Avatar for Goalatio

Over the past few days I have been writing a bootloader/kernel in NASM... It loads perfectly fine when I write it to a virtual floppy using PARTCOPY, and then boot to it from Oracle VM VirtualBox. However, when I write it to a physical floppy and try to boot to …

Member Avatar for Goalatio
0
325
Member Avatar for cherrydeee

hi. can someone give me a link with a tutorial on how to make graphics using the turbo assembly language? graphics like square, circle, lines, etc. thanks

Member Avatar for Goalatio
0
205
Member Avatar for vedel
Member Avatar for Ancient Dragon
0
159
Member Avatar for dhanh90

I have the code here but still can not figure out why it can not work why I enter X=2, and N>= 31.... [CODE].data str: .asciiz " Inter X:" str1: .asciiz " Inter N:" str2: .asciiz " X to the power of N is : " .text main: la $a0,str …

Member Avatar for dhanh90
0
7K
Member Avatar for user543820

i m making a debugger and i want to write a TSR for a debugger so that i can debug any ".asm" file. how should i write it?

Member Avatar for Ancient Dragon
0
52
Member Avatar for extemer

i want to known that i am starting to work on chip programming so i cant understand my first step.The programming language on which i used to work is java and still working.so my question is that how can i program a chip and i don't have any info about …

Member Avatar for lee.j.baxter
0
133
Member Avatar for XodoX

I'm still a beginner, so please bear with me;) I'm supposed to write a code that generates the Fibonacci series. Here is the sample program output: Please enter n (This program generates 0 to Fn) : 5 0 1 1 2 3 5 So, that's what I did.. [CODE] .data …

0
52
Member Avatar for Josue198s

guys i need a assembly x86 compiler..in windows i use MASM615..i dont want to code on windows.i do all my coding in java and C..on linux pleas some help for asm compile on ubuntu 10.10 .

Member Avatar for GuitarComet
0
130

The End.