354 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for b1izzard

Hi friends, I am a newbie to Assembly Language programming, I don't know whats the equivalent Assembly code for NASM compiler and moreover is there any compiler available for ubuntu so that I can run my TASM code as it is? Here is my simple code that works fine in …

Member Avatar for deva_2
0
1K
Member Avatar for Quest123

Just started learning PEP/8 what would the correct way to convert numbers into roman numericals? for exemple How can input let say 6 and have it come out as VI in the output? I know what i did is far from being the correct way to do things as i …

Member Avatar for rproffitt
1
136
Member Avatar for Vongola_Takeshi

Good day ^^ I want to create a program using tasm that will tell if the inputted string is a palindrome or not....but i don't know how will i get the first and last char to compare..unlike in C..i can use the strlen....XD Please make the codes very simple ^^..tnx …

Member Avatar for Nivre
0
4K
Member Avatar for kal_crazy

I am using CPU Sim to change wombat1 to wombat2 by adding stack. I have done adding a Stack RAM and a Stack pointer SPR. I have implemented a push instruction as such: acc->mdr mdr->Stack[SPR] End The implementation is able to push the acc value to Stack but not able …

Member Avatar for Ajnesh
0
2K
Member Avatar for kww228

I am trying to get my program to do a simple math problem of A*B+C*D given a set of test numbers. I have the code written out, but after I input numbers for A and B it goes into an infinite loop. My code is this: [CODE]ORG 100 Load A …

Member Avatar for Mariam_16
1
4K
Member Avatar for TheofaniaLiv

So i have to create a programm that reads 7-49 numbers and makes all posible combinations (6 number each) from the given numbers. Do you know how can i do this? I dont ask for the code ready but i cant think of a way i can create the combinations.

Member Avatar for rproffitt
0
251
Member Avatar for kww228

I am doing a project that must convert each string in X to an integer and save it in the corresponding location in Y. A dollar sign is used to mark the end of a string. I have 90% of the code, but it only works for the first string …

Member Avatar for hamzah_3
0
12K
Member Avatar for Rooro

Hello everyone : ) i'm working on : [quote]Write a program that takes an input sentence from the user and on next line display the number of capitals letters in the sentence. Note: · User is not allowed to enter a sentence with more than 9 Capital letters. [/quote] what …

Member Avatar for Ebru
0
7K
Member Avatar for jay_25

Hi guys. My task is to write a wombat 1 machine language program in CPUSIM that outputs the radix(only base 2 to 8 inclusive) reperesentation of a number. We have to ask the user for 2 inputs - first is the value to convert(cannot be negative) and second is the …

Member Avatar for Carolyn_3
0
760
Member Avatar for jay_25

Hi guys, I have a problem. I'm using CPUSim Wombat 1 to write a program. The goal is to display the numbers that the user has entered in the order they've been entered. What I'm stuck on is the storages. It's currently in a loop. The sentinel value is 0. …

0
439
Member Avatar for Spagett912

I had been writing a program that enforces the loop instruction with indirect addressing but I need it to copy a string from source to target, reversing the character order in the process. I need to use the variables: source BYTE "This is the source string",0 target BYTE SIZEOF source …

Member Avatar for Schol-R-LEA
0
4K
Member Avatar for i dont know

Hello all, i need your help regaring this code, which is in python and i need to convert it into mips?? register $s0 holds the base address of list my_data, $s1 holds the length of the list my_data, register $s2 holds the base address of list my_data2 and $s3 holds …

Member Avatar for rproffitt
-1
3K
Member Avatar for theburg30

Preconditions: Addresses of 2 integer variables are on the stack as the parameters. Sample c call: swap( &num1, &num2); You must implement the following C swap function: /* Swaps the two values pointed to by x_ptr and y_ptr. */ void swap (int *x_ptr, int *y_ptr) { if (x_ptr != y_ptr) …

Member Avatar for mohamed_101
0
20K
Member Avatar for hkdani

Using tasm32. GetStdHandle returns INVALID_HANDLE_VALUE in eax register. .386 .model flat extrn GetStdHandle:PROC extrn ExitProcess:PROC .data .code start: push -11 call GetStdHandle push 0 call ExitProcess end start Other APIs work fine. just having problems with GetStdHandle. Any ideas?

Member Avatar for hkdani
0
367
Member Avatar for fatalaccidents

Hello all, Let me first state that this is my first program written in ARM, so please excuse that it might seem a bit chaotic. Also, I want to state that this is a homework assignment for an assembly class. I am supposed to read in an input file, only …

Member Avatar for Rajan_7
0
3K
Member Avatar for This_1

movlw 0x05 movwf 0x23 movlw B´00111000´ movwf STATUS bcf TRISA,0 bcf TRISA,1 bcf STATUS,5 bsf PORTA,1 movlw 0x07 movwf 0x25 movlw 0xFF andwf 0x25,1 nop movlw 0x0F movwf 0x27 clrw iorwf

Member Avatar for xrjf
0
271
Member Avatar for Jezer

Hello i am creating the assembly program that accepts a single character and display the alphabet . The requirements are (1) The input character should be displayed (2) The input of the single uppercase letter should be displayed the lowercase letter. (3) The alphabet should be displayed horizontal position and …

1
209
Member Avatar for Tom_15

Hi: I wasn't able to find the exact solution to my problem on Daniweb, although there are several posts regarding the game of life. This situation came the closest: http://www.daniweb.com/software-development/cpp/threads/242338 My situation is a bit different because I HAVE to use a combination of functions and a class in the …

Member Avatar for Reverend Jim
0
2K
Member Avatar for Violet_82

Hi guys, I wonder if you can help me at all. As some of you will know I do a bit of java development here and there but unfortunately I don't really have any programming background, like, I haven't studied computer science - I just learned (well, that's an overstatement) …

Member Avatar for Violet_82
0
269
Member Avatar for dmanw100

Hello, I've just begun working with assembly so I'm sorry if this question is simplistic. I would like to implement an atomic add (for incrementing an array pointer). My code looks like this: int * ptr; int step; asm("lock add %1, %2;\n" :"=m"(ptr) :"m"(ptr),"r"(step) : ); But I'm getting an …

Member Avatar for Feanis
0
312
Member Avatar for Üzåír

.MODEL SMALL .STACK 50H .DATA NL DB 0DH, 0AH, '$' .CODE MAIN PROC MOV AX, @DATA MOV DS, AX MOV CX, 5 MOV BX, 1 FOR_1: PUSH CX MOV DL, 20H MOV AH, 2 FOR_2: INT 21H LOOP FOR_2 MOV CX, BX FOR_3: MOV DL, '*' MOV AH, 2 INT …

0
579
Member Avatar for Eppie

Hello everyone, I am new in assembly programming for MIPS and I was given a project to write a program that converts any decimal bumber from 0 to 511 into octal and return the result with 3 digits in reverse i.e. 170 for the decimal 57, 026 for 400 and …

Member Avatar for Eppie
0
3K
Member Avatar for Ferron

Hello I've found a working script for what I want to do: https://www.daniweb.com/programming/software-development/threads/384778/copy-files-from-a-list-in-excel Imports Excel = Microsoft.Office.Interop.Excel Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'get the last saved settings btnCopy.Enabled = False txtExcel.Text = My.Settings.ExcelFile txtSrce.Text = My.Settings.SourceFolder txtDest.Text = My.Settings.DestinationFolder SetCopyButtonText() …

Member Avatar for Ferron
0
308
Member Avatar for Mahnoor_1

Write a program that displays the same string in four different colors,using a loop. Call the SetTextColor procedure.Any color may be chosen, but you may find it easiest to change the forground color. Include irvine32.inc .data Str BYTE “This is the string”, 0 Color BYTE red,yellow,blue,cyan .code Main PROC Mov …

Member Avatar for ShiftLeft
0
197
Member Avatar for sarahmalkawi

i want to write easy68k Assembly program to read two numbers each number have 20 digit , then multiply them together and finally print out the result ??

Member Avatar for ALI KHAYRI
0
123
Member Avatar for Violet_82

Hi, since I've spectacularly failed to build a simple MVC application (for now at least ) https://www.daniweb.com/web-development/aspnet/threads/496278/building-first-mvc-application, I've decided to do even a simpler one, modelled on this one http://www.codeproject.com/Articles/683942/An-Absolute-Beginners-Tutorial-for-understanding-E , which is supposed to create a few books and their associated reviews I don't think it gets simpler than …

Member Avatar for Violet_82
0
326
Member Avatar for hefaz
Member Avatar for HōñËy

I need to know how to install MASM on my laptop? anyone please ,if there is online site to download it ..tell me.

Member Avatar for HōñËy
0
133
Member Avatar for asic_designer

I have a question about the assembly code generated by this small patch of C code that I wrote. The code patch is shown below, basically what I am doing is reading floating point values in from a hardware updated register and performing the arctan2f function on those values. #include …

Member Avatar for asic_designer
0
388
Member Avatar for bd338

Hello everyone. I erased A86.exe, because I wanted to learn 32-bit Assembly. Now I want to program a little bit in 16-bit Assembly again. So I downloaded A86.exe, but now when I open my *.ASM files with it, nothing happens. Please help me :).

Member Avatar for Drew_1
0
182

The End.