2,888 Topics

Member Avatar for
Member Avatar for bigwhiteegg

PLEASE somebody help me I have QUESTIONS about pep/8 and 4 hours left to figure it out 1. in C++, global variable CHAR word[32] = "Backward"; is common but how do i initialize it in pep/8 ?? I need to write a simple program to flip it backward using stack …

Member Avatar for bigwhiteegg
0
634
Member Avatar for VhilHelm

output of asm <--- the output should be clear("no other words") and only menu,password can be seen before typing the password menu password:__________ <----- when typing the password it should be in asterisk "access denied"/granted <---- it will appear if the password is wrong or right codes that i create …

0
40
Member Avatar for mikesr

Hi! I'm wondering how to perform: "To read and write call interrupts using instruction int (e.g. int 10h)." (in nasm x86) for example: [CODE] bits 32 extern _printf, _scanf global _main section .data message db "Hello!", 10, 0 section .text _main: pushad push dword message call _printf <--- how to? …

Member Avatar for Tight_Coder_Ex
0
852
Member Avatar for hsquared

Hello, im tying to complete a project here. but before i begin, i need to finish some basic problems. i just want to make sure i have this correct before i continue. 1. Declare an array named 'array1' consisting of the four elements {1, 2, 3, 4}, each as 2 …

Member Avatar for Tight_Coder_Ex
0
123
Member Avatar for azka

Hello, i have problem at address: 0x0040E0D6 mov eax,dword ptr [ecx] the solution would be to place an instruction to check if ecx is 0 and finishing this function, but how to do this? Thx!

Member Avatar for azka
0
163
Member Avatar for +_+man

I need to make an OS For my school baisically it is for children's i am a 10 year old boy the poster of this question is my uncle i have 1 year of experience in doing C++ Regards Hayzam,

Member Avatar for Goalatio
0
152
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
98
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
123
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
67
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
60
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
128
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
304
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
161
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
35
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
76
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
64
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
326
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
206

The End.