2,889 Topics

Member Avatar for
Member Avatar for C-Money

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, …

Member Avatar for sDJh
0
804
Member Avatar for C-Money

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: …

Member Avatar for C-Money
0
475
Member Avatar for C-Money

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, …

Member Avatar for C-Money
0
13K
Member Avatar for C-Money

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 …

Member Avatar for C-Money
0
13K
Member Avatar for MasterHacker110

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 …

Member Avatar for Дмитрий_4
0
2K
Member Avatar for C-Money

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 …

Member Avatar for Schol-R-LEA
0
5K
Member Avatar for C-Money

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 …

Member Avatar for C-Money
0
1K
Member Avatar for C-Money

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 …

0
218
Member Avatar for recher_14263

hi how can download a file (for example file.text) from an url in assembly language programing in mac osx or linux

Member Avatar for GunnerInc
0
1K
Member Avatar for ang19

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 …

Member Avatar for David_34
0
1K
Member Avatar for zbits

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

Member Avatar for zbits
0
177
Member Avatar for waleed2564

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

Member Avatar for Assembly Guy
0
71
Member Avatar for SuperKingGT

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 …

Member Avatar for SuperKingGT
0
2K
Member Avatar for Rahul47

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

Member Avatar for Rahul47
0
1K
Member Avatar for takko

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 …

Member Avatar for untio
0
250
Member Avatar for RandomGuy32

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 …

Member Avatar for Assembly Guy
0
110
Member Avatar for eeeraser
Member Avatar for astrojunk

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 …

Member Avatar for fuyulight
0
2K
Member Avatar for sarila

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?

Member Avatar for Assembly Guy
0
68
Member Avatar for ali moh

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

Member Avatar for Assembly Guy
0
65
Member Avatar for Dani

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.

Member Avatar for ESLAMIKA
1
5K
Member Avatar for Rahul47

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")

Member Avatar for turboscrew
0
241
Member Avatar for stephanie904

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 …

Member Avatar for stephanie904
0
395
Member Avatar for el.maxim.st

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 …

Member Avatar for el.maxim.st
0
486
Member Avatar for shqiptari88

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 …

Member Avatar for MRehanQadri
0
797
Member Avatar for el.maxim.st

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 …

Member Avatar for turboscrew
0
117
Member Avatar for OWSOME.GUY

.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 …

Member Avatar for OWSOME.GUY
0
232
Member Avatar for xcarbonx

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.

Member Avatar for Assembly Guy
0
3K
Member Avatar for kyle.mace.35

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 …

Member Avatar for turboscrew
0
6K
Member Avatar for kal_crazy

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 …

Member Avatar for kal_crazy
0
2K
Member Avatar for reloadmvp

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. …

Member Avatar for turboscrew
0
1K
Member Avatar for reloadmvp
Member Avatar for turboscrew
0
129
Member Avatar for nhanduong

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 …

Member Avatar for turboscrew
0
145
Member Avatar for ECGP

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 …

Member Avatar for turboscrew
0
1K
Member Avatar for VictorK19

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 …

Member Avatar for turboscrew
0
5K
Member Avatar for losh177

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, …

Member Avatar for turboscrew
0
2K
Member Avatar for Andrew_6

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 …

Member Avatar for turboscrew
0
186
Member Avatar for kyle.mace.35

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 …

Member Avatar for Assembly Guy
0
3K
Member Avatar for ryanpalma0794
Member Avatar for Rahul47

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 ?

Member Avatar for Labdabeta
0
240
Member Avatar for cwarn23

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 …

Member Avatar for Schol-R-LEA
0
382
Member Avatar for AnhD675

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 …

Member Avatar for Assembly Guy
0
207
Member Avatar for ccbuilder

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

Member Avatar for ShiftLeft
0
85
Member Avatar for ccbuilder

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 …

Member Avatar for ccbuilder
0
227
Member Avatar for Sepand_1

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 …

Member Avatar for Sepand_1
0
269
Member Avatar for nyfan68

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 …

Member Avatar for Assembly Guy
-2
395
Member Avatar for joester007

> 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; …

Member Avatar for Assembly Guy
1
200
Member Avatar for ITOzann

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, …

Member Avatar for ITOzann
0
239
Member Avatar for Assembly Guy

**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 …

Member Avatar for Assembly Guy
0
461
Member Avatar for sagngh8

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.

Member Avatar for mathematician
0
788

The End.