2,879 Topics

Member Avatar for
Member Avatar for aj07

[CODE=C]#include <stdio.h> #include <math.h> #include <string.h> #define N 100 void exit(); int main() { int n,n1,n2,bin[100],i,j; printf("Enter Decimal: \t\t"); scanf("%d",&n); n=n; n1=n; n2=n; printf("\nEquivalent Binary:\t",n); for(i=0;n!=0;i++) { bin[i]=n%2; n=n/2; } for(j=i-1;j>=0;j--) { printf("%d",bin[j]); } printf("\nEquivalent Octal:\t",n1); int r[10]; for(i=0;n1!=0;i++) { r[i]=n1%8; n1=n1/8; } i--; for(;i>=0;i--) { printf("%d",r[i]); } printf("\nEquivalent Hex: …

Member Avatar for Nathan Campos
0
99
Member Avatar for homeryansta

I've been working on this for hours! the code makes perfect sense, but wont' work!!! aaah! about to pull my hair out. the code is suppose to do get the sum of this 1/1 + 1/2 + ..... + 1/n I blocked all the codes and just print out the …

Member Avatar for Nathan Campos
0
108
Member Avatar for homeryansta

how do you do a square root in MIPS? I have to write a program to find the hypotenuse of a right triangle and I'm stuck on this part. Please help.

Member Avatar for wildgoose
0
2K
Member Avatar for Nathan Campos

Hello, I'm starting in Assembly development. Then recently i buy a book of Assembly, in it i have the table with the decimal numbers to hexamals and to binarys, like this: [code=asm]Dec - Hex 1 - 01 2 - 02 3 - 03 4 - 04 [...] 10 - A …

Member Avatar for Nathan Campos
0
202
Member Avatar for jingo1126

ok im kinda new to this forum and new to assembly as well. i was given a homework on tasm if someone could help me fix or add or delete some codes in wat ive place thank you very much.. program is about adding two input charactars like 1+1=2. ive …

Member Avatar for wildgoose
0
176
Member Avatar for Nathan Campos

Hello, I'm learning Aseembly and i want to know how i can adaptate this line: [icode]times 510-($-$$) db 0[/icode] for run it in emu8086. Thanks, Nathan Paulino Campos

Member Avatar for Nathan Campos
0
104
Member Avatar for Nathan Campos

Hello, I want to write a *.bin(Assembly compiled file) to an floppy drive, but i don't know how to do this, remember that i have to write to the cylinder 0, head 0 and sector 1, because it's an boot program, only if needed here is the code: [code=asm]; directive …

Member Avatar for Nathan Campos
0
686
Member Avatar for Nathan Campos

Hello, I'm beginning in Assembly development. When i try to print a word using the variable type DB with the name message, but when i try to execute this program, emu8086 only show me a dialog, not the message, here is an screenshot: [url]http://xs142.xs.to/xs142/09345/imagem568.png[/url] [code=asm]#make_COM# ORG 100h ; COM file …

Member Avatar for Nathan Campos
0
208
Member Avatar for Nathan Campos

Hello, I'm learning Assembly. I'm using DEBUG as my Assembler, but now i want to convert a simple code to really Assembly(For emu8086), here is the code as i put in DEBUG: [code=asm]-E 0200 "0123456789" 24 -A 0100 0D0B:0100 MOV AH,09 0D0B:0102 MOV DX,0200 0D0B:0105 INT 21 0D0B:0107 INT 20[/code] …

Member Avatar for Nathan Campos
0
1K
Member Avatar for allynm

Hello everyone: I am in search of a macro written in NASM that will perform the functions of the SWITCH/CASE C/C++ statements. Mammon wrote a macro some time ago that makes the rounds on the internet, and I have coded his macro, but it doesn't work. I can't understand why. …

Member Avatar for wildgoose
0
169
Member Avatar for tomtetlaw

I am doing Narue's Introduction to Assembly, and when I run my program, nothing happens. This is my code: [code=asm] [section .data] hello: db 'Hello, world!', 10, 0 ;15 bytes nl: db ' ', 10, 0 ;3 bytes [section .text] global _main, _print_nl, _print_msg, _return extern _printf _print_nl: push nl …

Member Avatar for tomtetlaw
0
163
Member Avatar for kindnumbernine

Hello. I was wondering if someone here could tell me what is needed to call a win32 function from NASM. I thought I could declare MessageBox for example with EXTERN and then use LINK to link my object module with user32.lib (from visual studio) but I get "unresolved symbol MessageBox" …

Member Avatar for kindnumbernine
0
481
Member Avatar for jakx12
Member Avatar for NotNull
0
162
Member Avatar for tomtetlaw

I am doing Narue's Introduction to Assembly, and when I run my program, nothing happens. This is my code: [code] [section .data] hello: db 'Hello, world!', 10, 0 [section .text] global _main extern _printf _main: push hello call _printf add esp, 4 mov eax, 0 ret [/code] This is what …

Member Avatar for tomtetlaw
0
97
Member Avatar for Nathan Campos

Hello, I'm a Java developer, but only for curiosity i want to learn Assembly, someone can post some good resources to begin. Thanks, Nathan Paulino Campos

Member Avatar for Nathan Campos
0
86
Member Avatar for malugirl4

I have just completed my java code for the game engine maze I have been working on. We are told to download MARS and from java code it in assembly. I have never learned assembly. So I am completely lost. I so far downloaded MARS and uploaded my java code. …

Member Avatar for wildgoose
0
5K
Member Avatar for tomtetlaw

I am doing a tutorial on Assembly, and I have ran into this error: [icode]fatal: Unable to open include file "includes/asm_io.inc"[/icode] Here is my code: [code=assembly] %include "includes\asm_io.inc" MOV EAX, 3 ;EAX = 3 ADD EAX, 4 ;EAX = EAX + 4 INC EAX ;EAX++ CALL print_int ;cout << EAX …

Member Avatar for tomtetlaw
0
2K
Member Avatar for Alexar93

Hello i'm new here and I hope you can help me :) I've made a bootloader in assembly that's starting up my kernel. The code for the bootloader looks like this: [code] ; 3.ASM ; Load a program off the disk and jump to it ; Tell the compiler that …

Member Avatar for Alexar93
0
106
Member Avatar for DarkC0de

hi every body I'm begging with assembly and I try two sum two numbers but i cant understand interruptions and generally Assembly so I learn asm with api I wrote this if anybody correct me >>!! [CODE].386 .model flat ,stdcall OPTION CASEMAP:NONE include kernel32.inc include masm32.inc includelib kernel32.lib includelib masm32.lib …

Member Avatar for wildgoose
0
276
Member Avatar for hello1231231
Member Avatar for wildgoose
0
163
Member Avatar for join_u

Hi to all.. im novice here sorry for bad english well iam a Visual Basic programmer and i like ASM... im start to learn ASM and to do it i get some code and try to translate to Visual Basic in my first step i found a code to encipher …

Member Avatar for wildgoose
0
80
Member Avatar for kiuhnmgtrdcv

hi everyone I hope you can help me with converting some c code into assembly code, i have tried much now, and i still don't get it. i'm new to programming ASM this c code gets two number from the user to draw an ellipse [CODE] #include<stdio.h> #include<graphics.h> #include<math.h> #include<dos.h> …

Member Avatar for kiuhnmgrtdcv
0
940
Member Avatar for hzx_300

Hi, I need a help to find out solution to these problems (1) Write a program that will ask the user to input a hexadecimal number and display the number of binary one’s within that number. (2) Write a program that will ask the user to input his name. Then …

Member Avatar for wildgoose
0
257
Member Avatar for infinities

For example, using MASM32 to code on multicore machines? What differences do you have to be aware of?

Member Avatar for mathematician
0
129
Member Avatar for ladines

how can i make 2 digit counter starting from 00 to 99 and will reset when it reaches 99 . . . .

Member Avatar for wildgoose
0
37
Member Avatar for oneat

I am Beginer with asseembly and at first I wanted to compile this code: [code] use32 section .text global _main extern _printf _main: ; printf("Liczba jeden to: %d\n", 1); push dword 1 ; drugi argument push dword napis ; pierwszy argument call _printf ; uruchomienie funkcji add esp, 4 ; …

Member Avatar for wildgoose
0
127
Member Avatar for Jiro90

Can anyone explain the flow chart or algorithm of the program attach? The program is about LCD clock but I don't know how it works. I need it by tomorrow so please help me take a look. Thanks

Member Avatar for wildgoose
0
97
Member Avatar for JasonL220

I've been writing a java wrapper to a c library, and need to use asm to push the parameters onto the stack to call the library function. an extract of the c code: [CODE]extern void asm_dispatch(void *func, int nwords, char *arg_types, long *args, int res_type, long *resP,int conv); /********************************************************************/ /* …

Member Avatar for wildgoose
0
233
Member Avatar for masterjiraya

is it possible to do that??? because I'm now looking to prove something like this scenario I want to buy a laptop but the specs was not given or posted in the window of a certain computer shop??? and they let me test it... but how to assemble the codes …

Member Avatar for wildgoose
0
176
Member Avatar for wicked357

I have been working with assembly for some weeks now and I want to actually take on a challenge that actually might interest me in the means to learning it better, so I thought I would try and make a maze game something simple, not sure on size yet I …

Member Avatar for wildgoose
0
1K

The End.