2,889 Topics

Member Avatar for
Member Avatar for Zssffssz

Ok here it is short sweet and to the the point: how do I get a asembly languige OS to reconise the floppy drive as A:/

Member Avatar for miker00lz
0
160
Member Avatar for miker00lz

let me preface this by explaining the reason i'm writing this code.. i've been writing an x86 PC emulator in FreeBASIC, and this program is designed to test it's handling of video mode 13h, including palette manipulation. i thought in addition to being fun (at least for a nerd like …

Member Avatar for miker00lz
0
1K
Member Avatar for Labdabeta

Is it possible to use [URL="http://msdn.microsoft.com/en-us/library/45yd4tzz%28v=VS.80%29.aspx"]__asm blocks[/URL] with Code::Blocks IDE? And if so how??

Member Avatar for mike_2000_17
0
238
Member Avatar for bettybarnes

hi guys! just want to ask if anyone of you knows how to limit the user input up to 3 trials only. For example, the user fails to guess the correct password, an error message will prompt saying you have exceeded the 3 trial.

0
56
Member Avatar for krystalo

I have this assembly project (mips) but I think I have an overflow problem.... The problem is that the answer is ok until number 99 but at 100 it prints with a - infront of the number. The projects just ask me to calculate a sum (x+a)^2 (x= 1 to …

0
74
Member Avatar for roisterguy

Hello, We stduying the 8086 and 386 using boarland linker. while stduing for a test I have I came across a queation about menaging and printing 64bit numbers. the numbers are represented as an array of chars (8) and I need to implement a rutine that puts the number in …

Member Avatar for roisterguy
0
228
Member Avatar for loveMii

Hello.. I've been trying to create a simple postfix calculator.. Can anyone please tell me how I can input a char in assembly? i tried using char as a data type but i found out that there's no such thing as char in assembly.. Please help me.. thanks!

Member Avatar for loveMii
0
6K
Member Avatar for ChieftanBill
Member Avatar for Zssffssz

Ok, what would it take to write a BIOS in asembly languige, not planing on doing it. ; no money for chips and thats crazy. So...

Member Avatar for AMarchini
0
196
Member Avatar for anders10

Hello! I have a piece of code here that I just can't get to work. I get segmentation fault and now I'm trying to apply a ddd tool to understand the problem. I haven't used ddd before but there seem to be some kind of a problem around the subroutines …

Member Avatar for anders10
0
245
Member Avatar for Zssffssz

I herd that some C++ compilers can use asembly languige in there programs along side C++, How would I do This? And is there any way to use a compiler as an assembler? <<two questions.

Member Avatar for gerard4143
0
181
Member Avatar for loveMii

Please help me find the error with my code. Whenever I try to run the program, it returns a Segmentation Fault message. I've been trying to find and play with the codes but I'm really stuck.. Please help me.. Here's my code: [CODE] .section .data format: .asciz "%d\n" values: .int …

Member Avatar for untio
0
1K
Member Avatar for loveMii

Please help me find the error with my code. Whenever I try to run the program, it returns a Segmentation Fault message. I've been trying to find and play with the codes but I'm really stuck.. Please help me.. Here's my code: [CODE] .section .data format: .asciz "%d\n" values: .int …

0
67
Member Avatar for D33wakar

I wrote a procedure to read integers(unsigned) from stdin and store it in a variable. I wanted it to handle backspaces too. so I made some adjustments but unfortunately it didn't work.--see line 14 in the code [CODE]get_num: ;(function get_num: read integers from stdin) push ax ;save all registers push …

Member Avatar for D33wakar
0
1K
Member Avatar for loveMii

Hi! I'm still new to assembly and I'm trying to do a selection sort using assembly.. There's a problem somewhere and I can't seem to find it.. Please help me. Here's my code so far: [CODE=assembly].section .data format: .asciz "%d\n" values: .int 5, 3, 2, 4, 7 smallest: .int 0 …

Member Avatar for loveMii
0
143
Member Avatar for asitmahato

Hi everyone, I want to compile a simple assembly language program like helloworld.asm in visual studio 6. I don't want to use MASM as assembler. I want to include NASM as assembler. please help me out. thanks in advance..:D

Member Avatar for Schol-R-LEA
0
552
Member Avatar for anders10

Hello! I have a problem in trying to convert a string into an integer. I'm not supposed to use the routine atoi, ie I have to do it on my own. Here is the code; [CODE] .data String: .asciz "1234\n" Show_integer: .asciz "The integer = %d\n" Intg: .long 0 .text …

Member Avatar for anders10
0
3K
Member Avatar for zaiboot

Hi, i need some help with a directive called ASSUME, and i have to write a program that display a string but i can't use .code nor code and i have no idea of how can i make it work. Besides i can't find information about ASSUME. Please someone help …

Member Avatar for Triggerlife
0
3K
Member Avatar for Zssffssz

Ok I have all the framework done. Programs I want it to do all linked up in another program Done. A c++ program to write to boot sector DONE. All I need now is a simple (less than a gig of text:) way to start the other program from the …

Member Avatar for Zssffssz
0
396
Member Avatar for cse.avinash

Hello Sir, I am using DELL laptop and with the help of QEMU, NASM and GCC i am trying to compile a simple code which is not executing properly. I am using UBUNTU 10.04. here is the loader.asm assembly file. [code] global loader extern dmain MODULEALIGN equ 1<<0 MEMINFO equ …

Member Avatar for Schol-R-LEA
0
217
Member Avatar for nuliknol

Hi, I am looking for instruction cost list, in clock cycles, for ia-32 intel architecture, something like this: movdqa <-- 3 clock cycles mov <-- 1 clock cycle jmp <-- 1 clock cycle Is this info available somewhere? I checked the manuals, didn't find it. Will appreciate any help Thanks!

Member Avatar for nuliknol
0
102
Member Avatar for asitmahato
Member Avatar for Schol-R-LEA
0
233
Member Avatar for asitmahato

Hi.. I have downloaded grub source code from [url]ftp://ftp.gnu.org/gnu/grub[/url]. I have compiled that source code using ./configure then make command but i have not get any binary file. Actually i want to use GRUB boot loader for my own Os. please guide me. I am very new here. thanks in …

0
71
Member Avatar for D33wakar

[CODE] .MODEL small .STACK 100h ; defines a stack 100h (256) bytes long .DATA String DB "Hello World!",'$' ; variable declaration .CODE Start: mov dx,offset String ; point dx to the storage location for the first character mov ah,9 ; dos function for string output int 21h Stop: mov ax,4C00h …

Member Avatar for D33wakar
0
249
Member Avatar for Mizki

How do I print values (integer) from memory addresses? I did it with ascii string value, but I can't get it to work with integer value :/ Here is my code for printing ascii string: [CODE]lui $a0, 0x1001 addi $a0, $a0, 4 addi $v0, $0, 4 syscall [/CODE] I tried …

Member Avatar for Schol-R-LEA
0
6K
Member Avatar for bettybarnes

hi guys i've got a simple problem with fibonacci sequence.. I use tasm and my processor is amd and this, so far, is my code: [CODE].model small .stack .code org 100h start: mov ah, 02h mov cx, 07h mov bl, 31h mov dl, 30h A: add bl, dl int 21h …

Member Avatar for faroukmuhammad
0
271
Member Avatar for bbman

I want to check degbugger and write a function like this code to call API debug "IsDebuggerPresent" : Code: [CODE]#include <windows.h> bool checkdbg(){ int i = 1; __asm{ call IsDebuggerPresent //gọi api debug test eax, eax jne L1 mov i,0 L1 : } if(i == 0) return false; else return …

0
64
Member Avatar for SamY

Hi people, im creating an operating system, 32bit, protected mode, vesa... a complete o/s i need your help in anyway, coding, funding, ideas. i will post my operating system image for you people to sample and you may join me in creating it.... the posting will be done in less …

Member Avatar for Schol-R-LEA
0
272
Member Avatar for Eddrian

Hey guys! I really need your help. I need assembly language codes to check if a string is a palindrome or not.. Pls. help me.. Thanks~! God bless!

Member Avatar for thines01
0
343
Member Avatar for bettybarnes

hi it's been a while since im studying assembly language.. I'm a bit confused about this language(coz i'm used to high-level language >.<) can someone explain each line of code to me? here it is: [CODE].MODEL SMALL .stack 100h .DATA NUM_1 DB ? NUM_2 DB ? NUM_3 DB ? V1 …

0
64
Member Avatar for bettybarnes

hi guys i use tasm and I want to have an assembly program that gets user input and the program will provide the output. My desired program is when a user inputs 3 it will output asterisks just like this input: 3 output: * ** *** i found this code …

Member Avatar for thines01
0
1K
Member Avatar for Donald Njila

Hey guys could you please differentiate for me when to use stacks and when to use registers in assembly codes.Please a code fragment will do much good too. Thanks in advance.

Member Avatar for thines01
0
129
Member Avatar for Riaz Haider

[TEX]hi.... i have connected a real time clock chip DS12887 with an 8051. the data of the rtc is brought into the controller and displayed on two 7 segment displays. the 7 segs are connected to P 1 of the uc. BCD data is recieved in the form of 2 …

0
78
Member Avatar for AceStryker

Hello!I'm new here, so, in my course i have to crack a program written by my teacher, he said that its a simple crack, this program have a message like:"This is a free program", i need to find the JNZ Short Command in runtime, but de address of this code …

Member Avatar for thines01
0
95
Member Avatar for Marvin Danni

I am very new to assembly language and I have been instructed to make the brightness of a bright white LED to vary according to the brightness of the room that the LED is in, the brightness of the room will be detected by a light dependant resistor and the …

Member Avatar for thines01
0
107
Member Avatar for bd338

Hi! Basically I'm receiving user input, storing it in a buffer, and then (so far) testing the first of the three digit combination. However, when I CMP the first digit to the first number in the correct serial code it always tell me that I've entered the wrong serial code, …

Member Avatar for bd338
0
302
Member Avatar for dadisimo

Hey im new in this forum but really need help with making program on assembly 8086 that will take a string of 4 characters , then check if they are right and after that convert them to binary and decimal, then again hexadecimal, and in the end print something like …

Member Avatar for thines01
0
317
Member Avatar for bd338

Hello software developers :) I've decided to try and "crack" a (very simple) program I've written myself, just for the sake of it. Here's the code: [CODE] #include <stdio.h> const int serialCode = 255; int guess; int main() { printf("Please enter your serial code: "); scanf("%d", &guess); if(guess == serialCode) …

Member Avatar for Narue
-1
615
Member Avatar for kangkan_14

Here is an arm assembly code for factorial function (along with the c code).i am a bit confused with the stmfd and ldmfd instructions.what are they exactly doing in this program? what does the exclamation mark do? why is label .L2 being loaded into r0? i kno that stmfd and …

Member Avatar for kangkan_14
0
489
Member Avatar for bettybarnes

Hi guys i have problems with the codes that i got from a site. this is the code [CODE].model .code main proc mov ah, 02 mov dl, 61h start: sub dl,20h int 21h push dx mov dl, 0AH int 21h pop dx add dl, 20h inc dl cmp dl, 79H …

Member Avatar for thines01
0
277
Member Avatar for stevanity

I wrote the following code for sorting an array (ARR1) in ascending order. Please check if its correct. Thanks. Is there any assembler for windows that I can use to run these codes? [CODE].Program to sort ARRAY into ascending order. SORT START 0 OUTER LDX INDEX LDS ARR1,X LDX #0 …

0
187
Member Avatar for clericcodered

Hi, I'm working on a bit of a self-tailored operating system, loosely based on MikeOS (I've kept some MikeOS calls, removed a few, added my own, stripped down the interface,..) and i seem to be stuck on a problem. I need to define userspaces and allow the system to accept …

Member Avatar for clericcodered
0
216
Member Avatar for badguy

hey guys I'm new in assembly programming and i need to calculate the determinant of an N*N matrix in 80X86 processor i know the algorithm but i have a problem i don't know how can i sum these SIGNED numbers [ICODE]VAR1+VAR2 [/ICODE] & [ICODE]VAR1-VAR2[/ICODE] which VAR1 and VAR2 are: [CODE]VAR1 …

Member Avatar for Donald Njila
0
103
Member Avatar for apanimesh061

I was going through some documents and web pages on building a boot loader ! I am new to assembly programming. I want to know whether I should use NASM or MASM for assembly programming ? What is the meaning of this code snippet : [ICODE] .286 ; CPU type …

Member Avatar for camthalion95
0
244
Member Avatar for ionutica

[CODE]org 100h mov ah, 09h mov dx, entername mov cx, 16 int 21h getname: mov ah, 00h ; keyboard input subprogram int 16h ; character input mov [si], al inc si jmp getname printstrg: mov ah, 09h mov dx, nameis int 21h mov ah, 09h mov dx, si int 21h …

Member Avatar for faroukmuhammad
0
117
Member Avatar for coresnake

Hello there, while trying to get my head around block transfers in ARM asm i noticed that ldmib (inc before) doesnt change the location in Rd yet ldmdb does. This doesn't make sense to me because ldmdb is supposed to be dec BEFORE. Here's my code: [CODE] .syntax unified @----------- …

0
44
Member Avatar for teemsu
Member Avatar for teemsu
0
54
Member Avatar for Gold Falcon

Hello! To get straight to the point, I can't seem to get division to work. I haven't been programming in Assembly long, and I've been trying to get this to work for a couple of days now with no success. Anyway, here's my code: [CODE=assembly] section .text global _main extern …

Member Avatar for Gold Falcon
0
358
Member Avatar for lochnessmonster

when i write a program in assembly and i define a variable of "word" size.....is it truly the natural word size of my processor? for example on an i7 64bit processor will it be the size of 64bits.....or will it be defined as how microsoft defines the size of a …

Member Avatar for Ancient Dragon
0
123
Member Avatar for BlackJackkk

Hi ! I`m trying to write an OS, but I already have some problems with the bootloader. I`m trying to load some assembly code from hard disk, that will set protected mode and load kernel, but i don`t think it loads what it should load. After it calls the int …

0
47

The End.