24 Topics

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 jack_7

How I can increase size of stack in assembly (NASM OS X intel64) I used **.STACK 4096** before **section .data** but return this error error: attempt to define a local label before any non-local labels error: parser: instruction expected Please guide me.

Member Avatar for Hiroshe
0
324
Member Avatar for jack_7

hi , please convert this block code to intel syntax ( nasm) xorps %xmm0, %xmm0 movaps %xmm0, -64(%rbp) movb $2, -63(%rbp) movl $3103850762, -60(%rbp) movw $20480, -62(%rbp) leaq -64(%rbp), %r14

Member Avatar for untio
0
347
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
1K
Member Avatar for zeroliken

I bet all Computer Science related courses would learn low level or machine level languanges in due time and in our university we used the portable 80x86 assembler NASM for our Assembly code So here's my experimentation on how to use "functions" and recursion using a Fibonacci Solver as a …

0
1K
Member Avatar for Rileyh

I am writing a program to get an integer from the user, and then print out all the numbers from 0 up to the number. My code gets the input fine, but when printing it out, it prints continuously in what seems to be an endless loop. Here is my …

Member Avatar for dancie reeves
0
896
Member Avatar for edwarddaniel.baldeviano

Hi, everyone! This is my first post ever here in Daniweb. I experienced a problem in printing the sorted array of 5 numbers, as the following code only prints the first iteration of the loop, and it does not print the array input. Here's the code: section .data i db …

0
583
Member Avatar for AlitaMixx

Here's the problem, I was wondering if i am right to assume that when a three-digit input is entered, i.e. 123, then the string 1 will be stored to al, 2 to ah, but i'm not sure where the 3 goes, or if ever it's plain wrong to look at …

Member Avatar for GunnerInc
0
962
Member Avatar for jdelgado08

Hello guys, i'm trying to compute the area of a triangle using the Floating-Point stack (FPU87), but i'm having an issue outputting my value. I'm computing the area using Heron's formula: T = sqrt{s * (s - a ) * (s - b) * (s - c) } Note: s …

Member Avatar for ActiveProfessor
0
459
Member Avatar for nasmnoob

Hey all, admittedly this is some homework help. I'm trying to write a program which takes a string in of hex characters, calls an assembler function which gives me the decimal value of the hex string. That assembler function calls a "checker" function in C which makes sure each character …

Member Avatar for pgcoder
0
1K
Member Avatar for utkarshsahu

I am a beginner in learning assembly language. I wanted to know which assembler would be best to use between NASM and MASM in today's context. Also, can you give a link to documentation on these assemblers?And tutorial specific for these assembler (as assembly is not standardized)

Member Avatar for utkarshsahu
0
3K
Member Avatar for jdelgado08

Hey guys, I'm fairly new to assembly & i'm having trouble iterating through an array; i.e. increasing the index as I loop. I'm working under x86-64 in Linux using NASM. There doesn't seem to be much documentation on the 64-bit architecture. Also, the book i'm using seems to code all …

Member Avatar for jdelgado08
0
1K
Member Avatar for stillfly122

Hi guys. so i wanna code my own Simple Dos-like OS that boots to a prompt with the simple command of "Hello" which should load a message that says "Hello, World!". Would someone be generous enough to give me some source code that just boots and has the command "Hello". …

Member Avatar for NotNull
0
450
Member Avatar for tundra010

Hello! I have just started learning assembly language, and I have decided to use the NASM assembler. I made a small program, included below, that is supposed to take a number, add 5, and print out the final result. The program correctly prints the prompt, and takes a value, but …

Member Avatar for tundra010
0
229
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
194
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
217
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
241
Member Avatar for Goalatio

I've run into a bit of a problem with my OS.. Displaying large amounts of information; like so- [CODE]mazemsg db 0x70,"Maze game: How to play--",0 db 0x74,"-Arrow keys for movement",0 db 0x7C,"-Move into the red crates to move them",0 db 0x7E,"-Push a crate onto yellow dots to clear both the …

0
115
Member Avatar for Harvarde

Hi folks! :) I'm here with a problem of Assembly 8086 (x86) (NASM). I´m trying calculate the sum of all numbers, which are odd, lowers than X (X = number defined by user) Already solved the problem in C # and C + +, but i need the Assembly Code. …

Member Avatar for davio1
0
926
Member Avatar for ThatGuy2244

I have read about how multicore processing works of the Intel. The manual that I read had left out a part that would of been useful how to actually use multiple cores. It just explained how all the different parts of the CPUs interact with each other, so could someone …

Member Avatar for GunnerInc
0
566
Member Avatar for ThatGuy2244

I am wondering how to change the VGA resolution and the video memory pointer in real mode assembly (nasm). I have no idea how to do this, so can anyone help me?

0
135
Member Avatar for Goalatio

I would like to know, because I noticed how slow it can be when called over and over. How would I go about doing [CODE]xor ah,ah int 0x16[/CODE] Without the interrupt? [URL="http://www.youtube.com/watch?v=ZKFY0OivbwE"]Here's a link to my video.. can see small delays keys are pressed quickly or held in near the …

Member Avatar for Goalatio
0
1K
Member Avatar for lee.j.baxter

Hi everyone, I'm creating my own OS from scratch, and I'm first producing an installation CD so that I can easily install my kernel on a hard drive. So far, I've written a CD-based bootstrap loader in NASM that finds a program within the root directory of the CD, loads …

Member Avatar for lee.j.baxter
0
283
Member Avatar for Goalatio

Over the past few days I have been writing a bootloader/kernel in NASM... It loads perfectly fine when I write it to a virtual floppy using PARTCOPY, and then boot to it from Oracle VM VirtualBox. However, when I write it to a physical floppy and try to boot to …

Member Avatar for Goalatio
0
324

The End.