2,888 Topics
| |
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 … | |
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 … | |
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? … | |
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 … | |
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! | |
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, | |
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. … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
hi i need to make a program in assembly mips that checks if a letter exist in one string any ideas? | |
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"; … | |
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 … | |
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 | |
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 … | |
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) << … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 |
The End.