Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
94% Quality Score
Upvotes Received
14
Posts with Upvotes
12
Upvoting Members
12
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
3 Commented Posts
0 Endorsements
Ranked #864
~88.5K People Reached
Interests
Coding in Assembly! SIB!
Favorite Tags
Member Avatar for b1izzard

That 16bit code in the .code section will/should work with any 16bit assembler that uses Intel syntax which NASM/NASMX uses... What you need to find out is the differences in sections between TASM and NASM, and the differences in the header of the asm files. FASM works on Linux, you …

Member Avatar for deva_2
0
1K
Member Avatar for Idestruction

[QUOTE]What is the lea instruction? And how does that translate to NASM?[/QUOTE] there is no translation. It is a CPU mneumonic on x86 it means load effective address

Member Avatar for John_310
0
22K
Member Avatar for NewbieChameleon

How would you fix it if you wanted the entry point of your program to be NewbieChameleon? You would use the -e or --entry command line option for ld: -eEntryPointLabel --entry=EntryPointLabel I use a makefile and used this for an example and 64bit O: ld -o $(APP) $(APP).o -melf_i386 -eNewbieChameleon …

Member Avatar for Kaveri_2
0
882
Member Avatar for Roger_2

First thing, arraylen does not contain what you think. It contains 20: 5 dword sized elements. To get the number of elements divide by 4 ` arraylen equ ($ - array) / 4 ` Next, you cannot print a number, you first need to convert it to ASCII. For your …

Member Avatar for Roger_2
0
13K
Member Avatar for damico.luca91

You need to install the 32 bit libraries: ia32-libs or ia32-libs-multiarch With your package manager or: > sudo apt-get install ia32-libs

Member Avatar for GunnerInc
0
210
Member Avatar for recher_14263

It really is not hard at all to use libcurl. You read the [docs](http://curl.haxx.se/libcurl/c/) pass some parameters and call the functions. The following simple code will get googles robots.txt file and display it in the terminal. It is 64-bit using NASM tested on Linux %define CURL_GLOBAL_SSL (1<<0) %define CURL_GLOBAL_WIN32 (1<<1) …

Member Avatar for GunnerInc
0
1K
Member Avatar for xcarbonx
Member Avatar for lupacarjie

Nobody is taught to use comments anymore? It is so important to comment your code in Assembly, ESPECIALLY in ancient 16bit code where functions don't have names but numbers!! Your getting weird characters because after you get the input character, you are modifying it by adding 20h to `dl`. To …

Member Avatar for lupacarjie
0
9K
Member Avatar for Echo89

Your program starts executing at the start label and goes right to the WinProc, this won't work since you have not registered the window class yet. Move this: invoke GetModuleHandle, NULL mov hInstance, eax invoke WinMain, hInstance, NULL, NULL, 0 invoke ExitProcess, eax from the end to right after `start:` …

Member Avatar for GunnerInc
0
245
Member Avatar for aiwasen
Member Avatar for silvercats

What do you think the answer to no.1 is? The answer to no.2 is in the AMD and INTEL manuals of course and plenty of docs on the net. Do you know what a "register" is? All it is, is memory directly on the CPU die, which makes it the …

Member Avatar for mathematician
-1
186
Member Avatar for Huck44
Member Avatar for GunnerInc
0
177
Member Avatar for peterbob

You will never compile it! You Assemble and Link. Your stack is a MESS! Your pushes are not paired with pops. For every push you should have a pop or adjust esp manually. where is this address > 0xb7? Why use a hardcoded address? use a label. It won't print …

Member Avatar for peterbob
0
282
Member Avatar for AlitaMixx

You don't need many buffers. You have one buffer for your input right? That is all you need. Write a conversion function (or find one on the net, but you will better yourself writing it on your own) that takes a pointer to your input buffer, and goes thourgh each …

Member Avatar for GunnerInc
0
976
Member Avatar for jefanot

Go to preferences and select the terminal tab. Uncheck "Follow the path of the current file" Check "Don't use run script" and to use the Geany terminal, check "Execute programs in VTE"

Member Avatar for GunnerInc
0
101
Member Avatar for 4344

What does "I can't run my program" mean? What errors are you getting? Why are you using an emulator? Do you not have an INTEL PC?

Member Avatar for GunnerInc
0
124
Member Avatar for st_infamous

2 things: 1. All of this code: FullVertWait: mov dx,3dah vr: in al,dx test al,8 jnz vr ; wait until Vertical Retrace starts nvr: in al,dx test al,8 jz nvr ; wait until Vertical Retrace Ends add word[count1],1 add eax,0 ret Delay: mov word[count1],0 ddf: call FullVertWait cmp word [count1],700 …

Member Avatar for GunnerInc
0
136
Member Avatar for silvercats

Yes there IS a really BIG difference writing 64bit Assembly code verses 32bit code. Especially when it comes to Windows Programming (I am sure Linux is the same). You have a different calling convention, "shadow space", more memory addresses, more registers, stack should be/has to be aligned. Learn 32bit first …

Member Avatar for silvercats
0
165
Member Avatar for DeanMSands3

Well, if you like MASM take a look at JWASM. It is fully MASM compatable (Meaning if you have an app written in MASM, JWASM will Assemble it without many complaints) Plus, it is 64bit compatible AND cross-platform

Member Avatar for DeanMSands3
0
220
Member Avatar for iPanda

Logic is a bit wrong. No need for the variables biggest or counter. si = counter and di = biggest This should work: [CODE] mov cx, 32 NextOne: shr a, 1 jnc ItsZero mov si, 0 jmp Next ItsZero: inc si cmp si, di jbe Next mov di, si Next: …

Member Avatar for GunnerInc
0
108
Member Avatar for kikic

Think of your matrix like this: it does not look like this in memrory [CODE] 1 2 3 4 5 6 7 8 9[/CODE] it looks like: 1 2 3 4 5 6 7 8 9 (spaces added for clarity) So, load the array, print the first number then add …

Member Avatar for kikic
0
5K
Member Avatar for rithish

Actually, you cannot run Turbo C or any DOS programs in Windows 7 and above as DOS is dead an not included in any current version of Windows. If you really want to use Turbo C with Windows 7, then you should download a DOS Emulator such as DosBox or …

Member Avatar for Schol-R-LEA
0
404
Member Avatar for Diogo Martinho

What Assembler? In MASM [CODE]MyInt DWORD 3 MyIntPointer DWORD MyInt[/CODE] [CODE] mov eax, MyIntPointer mov eax, [eax] PrintDec eax[/CODE]

Member Avatar for Diogo Martinho
0
70
Member Avatar for datdude07

Works for me: [CODE]1,1,1,1 2,2,2,2 3,3,3,3 4,4,4,4 5,5,5,5[/CODE] :-) You are telling WriteFile to write 40 bytes (your buffer size) so it will write what you grab from the console, write them to file then write nulls. That second CreateFile is NOT needed! You already created the file, and have …

Member Avatar for datdude07
0
152
Member Avatar for baldwindc

Usually the value is returned in R0. So in your sumR, after you do your stuff, place what you want myvar to equal in R0

Member Avatar for GunnerInc
0
687
Member Avatar for meowbits

Sounds similar to a question asked here before in this thread. [url]http://www.daniweb.com/software-development/assembly/threads/386136[/url] my reply is there also :)

Member Avatar for meowbits
0
214
Member Avatar for Kerok

Few things, why do folks who use Irvine, not use the correct case for the function calls? There is no such function as CRLF, instead it is Crlf. I don't know how the Irvine users don't get errors when Assembling! Put your 2 buffers in the uninitialized data section - …

Member Avatar for Kerok
0
965
Member Avatar for datdude07

Uh, = is not equals it should be 2 equal signs == as in (ecx == 0) || (ecx == 2) etc... The funny thing with macros (yes .if/.while are macros) is the error number will happen after the macro call...

Member Avatar for datdude07
0
221
Member Avatar for datdude07

Exactly what the error description says - you cannot nest procedures. Try this instead: INCLUDE Irvine32.inc [CODE] .data ccolor DWORD 13 bcolor DWORD 16 SetColor PROTO,cc:DWORD,bc:DWORD prompt BYTE "Hi",0 .code main PROC INVOKE SetColor,ccolor,bcolor mov edx,OFFSET prompt call WriteString exit main ENDP SetColor PROC,cc:DWORD,bc:DWORD mov eax,cc add eax,bc call SetTextColor …

Member Avatar for datdude07
0
440
Member Avatar for muzaheed

Ah, the Assembler Newbie mantra: I Need, I want, Give me the code! :) Auto-Completion is NOT an Assembler feature but an IDE feature, since you are using MASM, look for RadASM or WinASM both are good free IDE's for MASM When you Assemble with MASM it WILL show you …

Member Avatar for GunnerInc
0
102