2,889 Topics
![]() | |
I am writing a code for my Computer class, that takes a user input string, and displays it with the vowels removed. I have the code to where it takes the input and displays the string, but it only displays the letters in front of the first vowel. For example, … | |
I have been working on a code that takes three strings, copies one string into another, takes the length of one of the strings, then concatenates the three strings, copies them, and get there length, but there is a problem. I need it to display 'The three strings combined are: … | |
I working on a mips code as extra credit for my Computer Organization and assembly class. The instructions are: Write a program) that will define the following string manipulation functions. Each is analogous to the corresponding C++ string function. STRLEN( Str &, Len &) Sent the address of a string, … | |
I am attempting to write a code with several different segment, such as combine two differents strings, compare two strings, find the length of a string. Right now, I am working on the part to get the string length, but when I run the code I have so far on … | |
So i have bought this book about assembly language but they use Netwide assembler and i dont have an IDE / COmpiler for it. I have looked at NASM origanal website but i din't fid any IDE. I use FASM, i dont know if NASM will work with FASM. Any … | |
For the assignment I am doing for my Computer Orgainzation and Assembly class, we are to print a given array, using the selection sort. Then, for bonus points, we are to print the array after it is sorted 5 per line. I am stuck on this part. My codes sorts … | |
I am trying to write a code that asks the user to input a string, then displays the string with vowels removed. Ex: Godzilla returns in 2014, the output will be 'Gdzll rtrns n 2014' However, I am having massive difficutly in writing this for assembly. However, I was able … | |
I am attempting to write a Mips code that will take a user input string, and display it without the vowels. I have gotten to a point where it removes the first vowel, but when it displays the string, it only displays the letters before the first vowel. Such as … | |
hi how can download a file (for example file.text) from an url in assembly language programing in mac osx or linux | |
Hi have one querery regarding writing in machine code, address- instruction 00000 001 10000 00001 010 10000 00010 100 10000 00011 110 10001 00100 111 00000 10000 000 00001 10001 000 11111 i dont know how to write a program in machine code, which adds up to the numbers stored … | |
![]() | How do you apply the correct math formula from wikipedia? Wikipedia's math formula: > lba = ((c * hpc)+h) * spt +s -1 LBA to CHS code from brokenthorn: xor dx, dx div word[bpbSectorsPerTrack] inc dl mov byte[absoluteSector],dl xor dx, dx div word[bpbHeadsPerCylinder] mov byte[absoluteHead], dl mov byte[absoluteTrack], al ret ![]() |
anyone help (assembly language program nasm file) Input a binary number and count the number of 1’s and zero’s in it and display.for example enter the number :01100110 No. of 1’s: 4 No. of 2’s: 4 | |
Hey guys! I'm in the process of writing a bootloader and I'm having trouble printing out memory information, using 16 bit nasm I know INT 12h stores the low memory information in AX but I can't seem to print it out correctly. I'm currently trying to print it by converting … | |
![]() | I have already done some Assembly programming using Turbo Assembler. So recently i downloaded MASM32 but i was unable to link and execute my programs. Is there anyone out there who can suggest a way to link and execute using a simple Hello World! Program ? Thanx ![]() |
I am trying to read a string from a file and print it on the screen, but I always get an error at opening the file. Why is this happening? What is wrong with the code or with the file? PS: the file is in the same folder as the … | |
I am new to NBC programming and am trying to program my Lego NXT Brick to search for and follow a line of black electrical tape that I have on the floor (I have the light sensor in the front and pointing straight down at the ground). As of right … | |
My question is clear ^^ How to clear keyboard buffer? | |
Hi. Please help... I'm trying to display * ** *** **** ***** but it doesn't work.. What could be wrong? Here's my code: [CODE].model small .stack 100h .data space db " ","$" newline db 13,10,"$" ast db "*","$" .code mov ax,@data mov ds,ax mov cl,1 again: mov bl,cl back: mov … | |
hi everybody I have a project that I teach machine language source code: Open the file Writing to a file Save File I have to leave the files on the machine. Can anyone help me? | |
blease any one can help me to write an assemply program that which take upper limit value from the usser and count down alos separate odd and even value whiling count thank you for all | |
This is a program I wrote for my x86 assembly class which generates matrices, multiplies them, and computes how long the arithmetic took. It uses Irvine32.inc which came with the textbook. | |
![]() | What is possibly wrong with this code ? data segment msg db "Enter a character: " data ends code segment assume cs:code , ds:data mov dx,data mov ds,ax mov dx,offset msg mov ax,08h int 21h mov bx,ax mov ax,4c00h int 21h code ends end  |
I don't have any errors, I have everything I need except the output which I want it to show on certain row and column. My prompt displays on row 7, column 33 and I want the output to be on on row 9, column 33. So right now instead of … | |
Hello! First of all i want to sa that i have searched here for an answer, but i can't find an explanation :( I want to make a countdown, let say 20 sec. The user must click on a specified pixel in this time. If the user don't click the … | |
Hello, I'm new in assembly. I have to do a program that copies the data of an input file to an out put file. but this output file has to be created. The problem is that I cannot create this file which seems to be so straight forward. the Code … | |
Hi, i am using emu8068 and i want to know how i read from a file or buffer(with file text) a specified caractes. I have a file named "config.txt" and it seems like that: Easy 50 10 Hard 20 5 When user select Easy/Hard i want to catch the 50 … | |
.model large .stack 100h .DATA STR1 DB "ENTER YOUR NAME HERE : $" STR2 DB "JABBAR$" INSTR1 DB 20 DUP("$") INSTR2 DB 20 DUP("$") N DB ? S DB ? NEWLINE DB 10,13,"$" MSG1 DB "HAPPY BIRTHDAY BRO MAY BLESSINGS OF ALLAH BE UPON YOU (^_^)$" MSG2 DB "SORRY It'S … | |
Hello, I was just wondering if it is possible to create a data struct in assembly 8086. For example, creating a struct that holds a student's name and ID number. | |
So I am trying to reverse a string inputed by a user and I am getting an error on one line of my code the line is lw $t3, $t0($t1) #load value. Why can I not do this? .data prompt: .asciiz "Enter in a string: " backwards: .asciiz "That string … | |
Ok I have done the fibonacci number iteratively but now I want to do it recursively. I am using CPUSims 3.6.9 16-bit (4 bit opcode). ;getN ;get a value, n, from user ;test if fib(0) or fib(1) return to main with value getN: read ;read a value and store into … | |
SO guys I am supposed to be making a program that will check for a palindrome but, I can not get my code to work. It seems to be stuck on the cmp part. I am not sure if this is even right I dont have much experience with masm. … | |
| |
Please help me this exercise. Write a program to perform the following tasks: · Generate 100 random numbers in the range 0-100 · Show the random numbers were generated · Arrange methods randomly arranged and showing the basic · Take breaks to save the file and read from file … | |
Hi: I am new in the forum and I need some help. I have to write an assembly language program that reads a file with numeric information, and I need to create an array with that information and add them. SO far, I can open, read and display the information … | |
I'm really new to MIPS, so I'm having a hard time reading and understanding the code. For my homework, I was asked to identify and corrects errors in the folllowing code which computes the fibonacci number with given n passed in register $a0, and return it in $v0. I was … | |
Hi everyone, I'm trying to figure out if there is any way to do exponents using bit shifting. I know the following: x *= 2 --> x << 2 x /= 2 --> x >> 2 pow(2, x) --> 1 << x i'm looking for the equivalent bitshift, if any, … | |
la $a1, answer li $v1, 4 syscall move $a0, $v0 # move value of recursion to print li $v0, 1 # print integer value syscall # executes print li $v0,10 # call to exit syscall # executes exit The uncommented section is the area giving me problems, answer is a … | |
I need help converting ascii to hex. This is my code so far. ASCII DB 0DH,0AH,'THE ASCII CODE OF $' HEX DB ?,' IN HEX IS $' CHAR DB ?,'$' .CODE MAIN PROC ;initialize DS MOV AX,@DATA MOV DS,AX REPEAT: LEA DX,MSG ;get message MOV AH,9 ;display string function INT … | |
| |
![]() | 5 in decimal = 0101 in binary. Its 1's Complement is 1010. Adding 1 to it gives 2's Complement which is 1011. Now 1011 also represents 11 in decimal. How to differentiate +ve and -ve numbers in Binary ? |
Hi, recently I have wanted to learn how to write Windows native binary code to make a binary script which in one form or another will display hello world. I am hoping to eventually create a more efficient compiler using this method but as you should understand already, this is … | |
I am using this lex program to analyze the usage of each register, whether they are used as a source, a destination, or used as an indirect addressing, these are my codes, i have to analyze all 12 registers...is there any other efficient way to do these as oppose to … | |
Can anyone tell me how to move the carry, to another register. because I'm using the ror command to put bits into the carry but unsure how to move take the carry value and store somewhere else | |
I have recently started assembler I am trying to send the letter H, to my LCD screen using basic assembly language, but it doesn't work. I'm using parallax 2x16 lcd http://learn.parallax.com/KickStart/27977 and Rx is hooked up to portb7. Atmega32 can someone tell what's wrong, because i couldn't any example code … | |
Hello, I want to add 3 digits (1+2+3) together but im getting wiered char instead of the resault. please advice where am i wrong. comments are added for more information they are not included in pep8 object codes. Thanks. D1 00 14 ;First number 71 00 16 ;Add the two … | |
Hello all, I have a test tomorrow on MIPS assembly language, and there is a section where I need to convert pseudocode into MIPS. I was wondering if there were any websites/tutorial that can help with this. The textbook that we use for the class is not very good at … | |
> I am trying to make a program that can convert decimals to binary. But there's no standard out that prints in binary. Can some one explain how I can do this. Any help will be appreciated. thanks. program DecimalToBinary; #include( "stdlib.hhf" ); static iNumber: int8 := 8; begin DecimalToBinary; … | |
I'm having a hard time understanding why my MIPS program is not outputing the expected result. Please refer to the c++ code, followed is my version of mips **The C++ version:** #include <iostream> using namespace std; int x[10] = {0}; int pos[10] = {-1, -1, -1, -1, -1, -1, -1, … | |
**NOTE** This code won't work at the application level. It directly addresses memory at 0xB8000 which will result in a segfault at the application level. This code must be part of an OS or an application in a not-so-secure operating system like DOS, where applications can directly address any part … | |
Hi Everyone, How important is for computer programmers to learn assembly language.I am a C# programmer and i haven't program in assembly language at all.Is it really worth learning assembly language for high level language programmers. Thanks. |
The End.