2,889 Topics

Member Avatar for
Member Avatar for VSBrown

A program that will test the Nonrecursive Factorial procedure using a value passed in by the program user and will also do a time comparision of the Nonrecursive and Recursive Factorial functions.

0
598
Member Avatar for VSBrown
Member Avatar for Tight_Coder_Ex

Additional features will be added to this section of code such as fixing window size proportial to monitors resolution and subclassing the single edit control of this program. You'll notice I don't call ShowWindow here as WS_VISIBLE in windows style is defined.

0
261
Member Avatar for Tight_Coder_Ex

I've often wondered why M$ didn't make creating a window a simple as registering a class in that only one 32 bit value need be passed to calling routine. Although this is not ground breaking code design it does facilitate calling code only set EBX to point to all values …

Member Avatar for vegaseat
0
186
Member Avatar for Tight_Coder_Ex

I prefer to use this method as it doesn't clutter a windows procedure with dozens of conditionals and it address my primary objective of coding as tight as possible [28 bytes]. If you think my method can be improved upon in size and/or speed please post your solution. Note: I …

0
212
Member Avatar for Tight_Coder_Ex

The next few posts will be what's required to get a window to display on the monitor. The code between Main & Pump will probably change as time goes on, but for now this is all that is required. I choose this method or placement because only 28 bytes of …

0
220
Member Avatar for Tight_Coder_Ex

These are a pair of routine I use quite often. I know MemSet is virtualy the same as ZeroMemory in kernel32.dll, but there may be a time I want to use these in an embedded system where this dll won't be avaliable.

Member Avatar for vegaseat
0
206
Member Avatar for Tight_Coder_Ex

As part of a larger hobby project that I'm undertaking being a doubly linked list for 95/98/XP, this is the first in a series that I will be posting. Upon completion, I will have a complete application written in assembly for the Windows platform. Compiled with NASM

Member Avatar for Dani
0
217
Member Avatar for Nathan Campos

Hello, I'm beginning in the OS development(In Assembly, Nasm as Assembler) and i need to implement a command-line on it, but i don't know how to do this, but what i want to say as command-line is like MS-DOS or UNIX: [CODE]> ver BerlOS v.0.0.1 > _[/CODE] But i don't …

Member Avatar for Nathan Campos
0
214
Member Avatar for xellos

isnt it an good idea to make an sticky where everyone can post, simple examples? or mini tuts to get peaple started with asm? like this an masm example: [CODE=assembly].model small .stack .data .code main proc mov ah,1 ; dos int 21 interupt ah =1 to int 21h ; get …

Member Avatar for Nathan Campos
0
124
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
112
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
231
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
182
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
108
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
696
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
219
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
173
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
166
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
497
Member Avatar for jakx12
Member Avatar for NotNull
0
167
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
100
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
89
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
107
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
293
Member Avatar for hello1231231
Member Avatar for wildgoose
0
168
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
85
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
975
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
262
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
135
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
40
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
130
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
101
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
250
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
210
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
2K
Member Avatar for VIDOCQ

hi WHETHER NASM SUPPORT 64 BIT PROGARMMIN OR NO ? OR IS THERE NASM FOR EXAMPLE AMD64 BIT ? THX.

Member Avatar for retsigir
0
131
Member Avatar for deostroll

Hi. I am trying to print a single digit decimal number on to the screen. So far I've come out with this code. [ICODE] mov ax, 3 var db '$' mov bx, offset var add ax, 30h mov [bx], ax add bx, 1 mov byte ptr [bx], '$' mov ah, …

Member Avatar for wildgoose
0
2K
Member Avatar for hoti99

i want to simulate something in asm like strcat function in C strcat("Hello",World") ==> Result "HelloWorld" please help me to do this iam very begginer in coding i need just a simple code .model small .stack 64 .data ;******************************** s1 db 'hello ' s2 db 'world' ;******************************** .code main proc …

Member Avatar for wildgoose
0
725
Member Avatar for wicked357

I started this macro that does the following in MASM, 1. takes the user input for character entered 2. copies character from AL to _char variable 3. converts to ascii value and outputs to console I was able to do the first 2 having issues with the conversion process. Here …

Member Avatar for NotNull
0
277
Member Avatar for wicked357

I have read a lot of examples on 32-bit division and I have seen a lot of, mov edx, hiword ;load edx with hi word of dividend mov eax, loword ;load eax with lo word of dividend mov ebx, divisor ;load ebx with divisor div ebx ;quotient goes into eax, …

Member Avatar for NotNull
0
84
Member Avatar for wicked357

I am having a problem with my loop not function right and I think I have narrowed the problem down to the MACRO I made for reading in integers the ECX register isn't obtaining a value and stays at 0 while EAX get the value of 1, so when I …

Member Avatar for wicked357
0
137
Member Avatar for nagash07

Well I have sum assembly homework to do... its supposed to be the snake game. I managed to make a program using parts of others ones, since Im lazy.. anyhow I got the program almost ready but I get only 1 error when assembling: Fatal C:\TASM\emu8086\M3\M3.asm(243) Unexpected end of file …

Member Avatar for wildgoose
0
235
Member Avatar for BlackJackVr

Hello, i'm developing a simple assembly (AT&T) program as exercise in preparation of an exam and i have a problem: I need to pass 4 return values of a function using the stack. I know that after the "call", %esp points to the return address that will be used from …

Member Avatar for NotNull
0
151
Member Avatar for paulnewman

;A program to display the message, "ASSEMBLY LANGUAGE PROGRAM" on the screen. ;MODEL MEDIUM ;STACK Datasg SEGMENT; Beginning of data segment message DB "ASSEMBLY LANGUAGE PROGRAMMING" Datasg ENDs; End of data segment Dispsg SEGMENT; Beginning of code segment ASSUME CS:Dispsg, DS:Datasg ORG 100h john: MOV AH,09h; 9 is function value …

Member Avatar for mathematician
0
288
Member Avatar for ckaiser813

Just want to make sure I'm doing this right, pretty confused on the subject. DS is 1342 I have a physical address of 1357A in hex the physical address is 79226 and in base offset it is 1342:015A

Member Avatar for wildgoose
0
45

The End.