Help Logs Database

Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Ircnet  |  Dalnet
Page: 1 2

<BobtheAvenger> you cant do like in C where you can do int foo, bob
<ShibaInu> even if I move them to separate lines
<ShibaInu> doesn't work
<ShibaInu> http://rafb.net/paste/results/SWaJlw65.html (gcd.asm)
<ShibaInu> http://rafb.net/paste/results/EdDnhE10.html (dogcd.asm)
<ShibaInu> could you take a look at those?
<ShibaInu> I don't understand why the link isn't working .... :(
<BobtheAvenger> i would define buffer between #150 and #151 and define crlf between #210 and #211 in the 1st 1
<BobtheAvenger> the other one seems fine
<BobtheAvenger> i dunno if that'll help much, but i havent had any problems and that how i do it
<BobtheAvenger> what syntax are you using?
<BobtheAvenger> are you using nasm?
<ShibaInu> yes
<BobtheAvenger> ok replace extern with global
<BobtheAvenger> try it
<ShibaInu> gcd.asm:153: error: symbol `Buffer' undefined
<BobtheAvenger> gcd the 1st file?
<BobtheAvenger> ok those back to extern and the actuall definitions in the other file use global
<ShibaInu> hmm
<ShibaInu> ohh
<BobtheAvenger> and extern Buffer in the other file
<ShibaInu> oh I think I get it
<BobtheAvenger> ok
<ShibaInu> I had to set them GLOBAL in dogcd.asm
<ShibaInu> GLOBAL Buffer,CRLF
<ShibaInu> then define them below as I was
<BobtheAvenger> global buffer db 7,0,"0000000" global CRLF....
<ShibaInu> that didn't work
<ShibaInu> but
<ShibaInu> if I do this, it does:
<ShibaInu> GLOBAL Buffer,CRLF
<ShibaInu> thanks for your help :))
<ShibaInu> hmmm now alink reports "Warning, no entry point specified"
<BobtheAvenger> hmm
<BobtheAvenger> what you compiling to?
<BobtheAvenger> .exe, .com?
<ShibaInu> .exe
<ShibaInu> alink gcd dogcd -o test.exe
<ShibaInu> mahahahaha and if I run the program with the two errors I got, it crashes dosemu
<BobtheAvenger> i dont know about alink, you may need to put [ORG 0xsomeValueICantRemember] in file, or you need to specify an enty point in alinks args
<BobtheAvenger> well apparently it dont accept args for that because .exe doesnt acept it
<BobtheAvenger> if you were doing .com you can add [ORG 100h]
<BobtheAvenger> the last time i used ORG was in a bootloader
<BobtheAvenger> peace
<ShibaInu> thanks
<Jarak> Who here has tinkered around and wrote a program in 16-bit code in asm that play back raw audio files consisting of 8-bits per sample, and at a sampling rate of 8 kHz.
<Jarak> ?
<Cctoide> anyone know of asm tutorials oriented towards OSdev?
<Robert> Hm... did you try in #osdev?
<Robert> Bender`: That's very soundcard-dependant.
<Cctoide> well, of course I'm there :p
<Robert> Check the links in topic. I'm not aware of any such document.
<Bender`> Robert: it can be done in pure DOS...
<Bender`> Ah, no it can't. Unless we use the PC-speaker
<Robert> I know that.
<Bender`> :z
<Bender`> I'll fool around for a little while
<Robert> But it's soundcard-dependent.
<Cctoide> you can play the Symphony for One PC Beeper
<cmb``> Hello
<Robert> Hi.
<cmb``> I have a simple question.
<cmb``> Where is the first element of an array stored in the memory?
<cmb``> I have dumped the data segment using debug
<cmb``> All I see are the elements following the first.
<Robert> Heh.
<Robert> The first element should be... in the start of the array.
<Bender`> 0
<cmb``> I guess I am not expressing myself right.
<cmb``> In the data segment I have: "list dw 8, 7, 30, 18" etc... In the code segment, I declare "LEA BX, list"... debug indicates that list is at offset [0008] in the data segment
<Robert> This is TASM/MASM, right?
<cmb``> And when I dump that area of the memory, I see: CC 00 07 00 1E 00 12...
<cmb``> Yes, MASM
<cmb``> Where is that CC from?
<Robert> Are you sure that you don't overwrite anything elsewhere?
<cmb``> Yeah
<cmb``> Must be something that happens after the interrupt... oh well.
<cmb``> I dumped right after LEA BX, [0008] and it looked alright.
<edcba> do you call an exit function ?
<cmb``> Yes .EXIT
<Bender`> A = Alt. S = ***. M = *********ion. :
<Bender`> Oops
<Robert> No.
<Robert> alt.***.masochism
<Robert> Although both fit the average ***embly hacker surprisingly well.
<Bender`> Eugh!
<Bender`> That's why I find gothic people so wierd...
<Bender`> Some gothic girl I knew was always obsessed with blood and vampiers -- freaaaaky!
<cmb``> Goths are stupid
<Robert> Not necessarily.
<cmb``> Anyone who takes on a persona to go against "the norm" and still ***ociates themselves with a group of similar people is an idiot.
<Bender`> cmb: damn right
<Robert> Maybe it was about going against the norm once.
<Robert> But now I just see it as an identity seearch of some sort. (except in some cases, when people take it seriously and scare everyone away)
<cmb``> Interesting theory.
<cmb``> I see it as one of two things, the aforementioned, nonconformist way, and a method of just trying to get laid.
<drocon> what
<drocon> i think goths are idiots
<drocon> emos are like goths
<drocon> except goths aren't gone yet
<drocon> goths people are either:
<Robert> I used to think so.
<Robert> But I've met some gothish people who clearly aren't idiots.
<drocon> 1.) insecure
<Robert> Most may be, but hey, most people are idiots.
<drocon> or just ugly or fat
<drocon> same goes for emos
<drocon> ***** suburban kids on a dose of estrogen
<imaginator> drocon: I suspect they just want to feel different from others. most of us do, but we channel those desires into different things...
<aFlag> is it possible to have a label inside a macro?
<edcba> yes
<Brick-To-Face> Hello
<Brick-To-Face> Anyone know of a tutorial on writing machine code, I know it sounds weird....
<Brick-To-Face> Meh, everyone's idle...
<igor47> is there a way to tell what library function is pointed to by some jump in .plt ?
<xark> igor47: Won't objdump show you?
<imaginator> I have a function code in asm that I'm including in a C program with code like: asm (".include \"file.S\""); I want the asm function to be static, and this is causing a warning with gcc.
<imaginator> "warning: `mark_used' used but never defined"
<imaginator> the program compiles, ***embles, links, and runs properly, but I would like to avoid that warning
<imaginator> is there a way to hint to gcc that the function is defined, but not in C?
<imaginator> I'm trying extern now, but I seem to recall that it failed because gcc ***umed an extern was non-static.
<imaginator> doh, that was simple. I didn't need extern at all. just a regular declaration satifies the C compiler
<imaginator> regular being without "static"
<digitalRebel``> hi. how would I turn a state on/off using bitwise operators?
<iojkl> hello
<bobgray> im looking though the ***embly sources for minix and theres some stuff that confuses me.
<bobgray> in some cases registers are surrounded by () and in others not
<wobster> that's the indirection operator
<bobgray> ok, so like referencing in C?
<wobster> that's not minix-specific. you should learn asm before reading that book
<wobster> yep. kinda.
<Robert> Minix ***embly...mmm..
<Robert> I actually wrote a couple of small compilers for Minix just for fun, but the total lack of documentation made that somewhat tricky.
<bobgray> well, theres only 1400 lines of ***embly and i have basic knowledge of it, it's just theres some strange stuff here
<wobster> lack? .. there's a full book :)
<Robert> wobster: The ***embler is mostly undocumented.
<wobster> klib88? ;)
<Robert> No...way.
<bobgray> there's no defination reference for the ***embler
<Robert> I did however find some old documents around.
<Robert> If you want some examples, I have them on my web site.
<wobster> bobgray, it just means that instead of referencing the reg, it references the memory-position addressed by the regs value
<bobgray> so addl $1,(%ebp) would add 1 to the value in memory that %ebp points to?
<bobgray> so yes :)
<wobster> yes. () is more flexible though. you can add offsets in scaling factors too
<wobster> s/in/and
<bobgray> ok, ya, i do think i need to read an ***embly tutorial
<wobster> he =)


Return to asm
or
Go to some related logs:

chatzone
ERROR 2006 (HY000) at line *: MySQL server has gon
Firefox DOM readystate
Linn, Rune

Copyright © 2005 www.irclogs.ws. All rights reserved. » disclaimer » contact