2,888 Topics

Member Avatar for
Member Avatar for Sarah Gerald

Hi all, I have a two dimensional array which looks like A: .byte 'A','B','C','D' .byte 'E','F','G','H' but I would like to make each element fit two characters e.g .byte "8C","9A" ...etc how to allocate 2 byte for each element to make it hold two characters?

Member Avatar for GunnerInc
0
46
Member Avatar for LMat619

Hi everyone. I'm having a little trouble trying to debug this code I made. What I am trying to do is add two numbers each up to 255 decimals. What I did was put the numbers (input by the user) into a string, convert it to BCD, add them, convert …

0
62
Member Avatar for sergent

Are there any good books on x64 assembly. I am using 64 bit Windows 7, and Quad Core AMD. I tried to find some books but they were all for 32 bit system. Does it even matter or will it work on my computer too? So is there any good …

Member Avatar for GunnerInc
0
136
Member Avatar for laserlars

Hi! I read a string from console with syscall and store it to my .space buffer. [CODE] li $v0, 8 la $a0, buffer la $a1, buffer syscall [/CODE] With my string in the buffer i would like to iterate over it and i guess i need to know how long …

Member Avatar for laserlars
0
47
Member Avatar for drew99

I've made ​​some changes to the algorithm BubbleSort, dividing the array to be ordered in n array consisting of 10 elements. The code should order the first n array and then all the main array and display the content, but I do not get any results. Any advices? [code] .data …

0
44
Member Avatar for Goalatio

When I was making my most recent youtube video, I tried to do the following to define a string of bytes.. [CODE]main: jmp .game win_msg db "You win!",0 .game:[/CODE] but was greeted with compile errors saying that the label '.game' did not exist... I KNOW that it's possible to do …

Member Avatar for iret
0
195
Member Avatar for iklila

how to write the interrupt instruction in assembly language and what the diferrent between subroutine and interrupt in assembly language?? anybody can help me??

Member Avatar for Athelas
0
102
Member Avatar for Labdabeta

Hello, I have a few questions about Assembly. I am extremely new to it! Question 1: How do you write functions in assembly? Is it even possible? Question 2: How do you get an input to a dd variable type (do I have to do the math on four db …

Member Avatar for chrjs
0
102
Member Avatar for shevy24

Hello, I have a project that I am doing about SOFTWARE RADIO that will use an fpga board to communicate. The software radio must be able to use MIMO technology. Now this is my question, how can I start the programming part using xilinx studio because I don't know where …

0
52
Member Avatar for roud9

Hello, I want to display content of a file with the name has been entered by the user, but I have to enter the name of the file when I run the program (eg:. / myprogram test.asm). I would not have to specify the file name each time you run, …

Member Avatar for untio
0
251
Member Avatar for quartaela

hi there a have project assingment with a friend about writing a debugger in C code and using in hippy program. the main problem is i can't understand the project. are we going to write in C language or motorola 6800 language OR if we use C language how can …

Member Avatar for quartaela
0
102
Member Avatar for Auraomega

Returning back to asm and coding in general, got an issue with what's probably an obvious mistake but I'm stumped non-the-less. [CODE='c']kputs("Testing");[/CODE] [CODE]; ; Print a single character to screen ; kputchar: ; assumes the register ax will contain the character to print mov edx, [SCREEN] ; edx = screen …

Member Avatar for Auraomega
0
101
Member Avatar for hobokook

Hi, I am having trouble writing a sentinel controlled loop in LC-3 assembly language. I know that you must store the sentinel somewhere in memory and that when the sentinel is detected, then the loop is done. However, how do you actually write this in LC-3 code. Lets say I …

Member Avatar for herpderp
0
2K
Member Avatar for LanguidLegend

Hi, I was wondering if someone could help me with an issue I'm having in my code. [ICODE]#include <stdio.h> #define SZ 7 int* a[SZ]; int x, y, z; void populate() { x = 1; y = 2; z = 3; a[0] = &x; a[1] = &y; a[2] = &z; a[3] …

Member Avatar for csurfer
0
176
Member Avatar for coding101

Can someone explain what is happening here. I trying to understand assembly, and there is not much online. [CODE] 8048d09: 55 push %ebp 8048d0a: 89 e5 mov %esp,%ebp 8048d0c: 83 ec 08 sub $0x8,%esp 8048d0f: c7 44 24 04 6c 98 04 movl $0x804986c,0x4(%esp) 8048d16: 08 8048d17: 8b 45 08 …

Member Avatar for Ancient Dragon
0
91
Member Avatar for Goalatio

This is my OS that I've been working on for almost 3 months now (not all at once.. in periods of a few days each time). Would anyone skilled in NASM mind looking at parts of it and give me their opinion on my code? Note that there are many …

Member Avatar for Kieran Y5
1
218
Member Avatar for jonspeidel

I've been searching a lot lately about binary and how a computer actually works so i figured assembly and the assembly board is the best place to start with my question. Generally, I want to know, how does a computer actually work? I understand the C++ that I've been actually …

Member Avatar for Goalatio
0
175
Member Avatar for DRzBklynite

I have an important assignment to do but I am new to assembly programming and I understand some basics but I don't exactly know how to put together some of these codes. Please help? I really am trying. It would be appreciated if you could fill in some of the …

Member Avatar for DRzBklynite
0
283
Member Avatar for hastingo

i need to write a program that compute (a+b)/(c^2+d^2); if someone have lecture or can do for me .it will be gratefully

Member Avatar for Ancient Dragon
0
106
Member Avatar for ThatGuy2244

I was wondering how I could display more than 256 colors with the VGA color palette. correct me if I'm wrong, but the reason that you can't display more than 256 colors at once is because each byte in video memory corresponds to one pixel on the screen. But because …

Member Avatar for ThatGuy2244
0
309
Member Avatar for jwxie

I am new to assembly. I found this code here [url]http://www.daniweb.com/software-development/assembly/threads/117744[/url] What I am having trouble with are the following lines [CODE]L0_95: ; this segment prints ASCII code 0 - 95 mov si,6 ; refers to the string we declared at the beginning mov cx,4 ; I think this is …

0
112
Member Avatar for toto_7

Hello guyz, im new in assembly. I have this exercise using MIPS. The idea is to write a fuction that finds the bounding box of shapes in a bitmap. "0s" are the background and "1s" the foreground. I have Runtime exception at 0x00400254: fetch address not aligned on word boundary …

Member Avatar for rubberman
0
170
Member Avatar for jzng89

I've only just began learning assembly this semester and am having a problem with my assignment. I need to write a code to display 0-9 and then A-Z on a 5x7 LED matrix on a EDS-8086 board via BGC-8088. The problem I'm having is that the Data segment (DS) overrides …

Member Avatar for rubberman
0
226
Member Avatar for Runicode

I've looked around online a bit and have a few books, but none of the resources I've read seem to explain what an OPCODE is really for. Could someone provide some details? Thanks, Runicode

Member Avatar for rubberman
0
130
Member Avatar for matrixcool

I'm stuck here ! I hava a txt file that contains only integers , I opened the file and read its contents into an array of characters. [CODE] li $v0, 13 # system call for open file la $a0, file # output file name li $a1, 0 # Open for …

Member Avatar for rubberman
0
3K
Member Avatar for thunderbird24

hi everyone! this is my encryption routine (using standard call) in x86 Assembler __ASM{ encrypt: push ebp mov ebp,esp mov eax, [ebp+8] mov ecx, [ebp+12] push eax and eax,0xAA not al mov edx,eax pop eax and eax,0x55 xor ecx,edx xor ecx,eax rol cl,1 rol cl,1 mov eax,ecx sub al,0x20 pop …

Member Avatar for rubberman
0
262
Member Avatar for theUserMan

working on a 32bit architecture and i'm adding two arrays together slot by slot into a third array so if I have 3,4,4 and 4,4,4 in the arrays the third array should contain 7,8,8 at the end of the function I was able to pass in the arrays correctly and …

0
256
Member Avatar for LanguidLegend

Hi everyone, I'm new to this site and hope you might be able to help me out? So I've been given an assignment to produce this output [CODE]% ./hw4b foo here foo and foo there % ./hw4b ABC123 here ABC123 and ABC123 there % ./hw4b 'where is' here where is …

Member Avatar for Ancient Dragon
0
329
Member Avatar for nitsakh

I want to write a simple linked list program with ASM . Here's the code which I have tried to write(presently only for single digit numbers) ! However,it works only for 3 numbers and that too has sometimes some errors. I am new to assembly language. So please help me …

Member Avatar for nitsakh
0
209
Member Avatar for ThatGuy2244

I would like to know how to display more than 256 colors in DOS I already know about the color palette which can hold 256 colors and can be changed, but as soon as you change them the colors on the screen change. So how would I display more than …

Member Avatar for ThatGuy2244
0
484

The End.