2,888 Topics
| |
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 ![766258137b1795d569beae9cd872b521](/attachments/large/4/766258137b1795d569beae9cd872b521.jpg "766258137b1795d569beae9cd872b521") |
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. … |
The End.