From christianlott1 at yahoo.com Sat Nov 11 14:39:17 2006 From: christianlott1 at yahoo.com (Christian Lott) Date: Sat, 11 Nov 2006 12:39:17 -0800 (PST) Subject: [Slackers] LF/CR text parsing Message-ID: <391786.97923.qm@web31204.mail.mud.yahoo.com> It's been almost a year since my last confess... ooops.wrong place. It's been almost a year since I last used xlang. I'm running into the same problems as before - I think the parser doesn't like the text format I send it in. Here's the error(s) (I kept changing the format of the text file. I can save as OEM, Unix, UTF-8, and Unicode) : ----------------------------------------------------------------------- Compiling... Line 15: ldy >filename ↔^◄ Bad address mode ORG=$c000, CODEEND=$c002 Saving slangout.o... $c000-$c002 C:\xlang>xlang mtest.asm Loading (petscii) bin/rom-a000.prg... $00a000-$00c000 Loading (petscii) bin/rom-e000.prg... $00e000-$010000 Loading (petscii) bin/CHARROM-D000.PRG... $00d000-$00dfff Loading (petscii) bin/ZP0000-03FF.PRG... $000000-$0003ff Loading (petscii) bin/SLANGDEF.O... $00aa00-$00c2ad Loading (petscii) bin/SLANG1.4.O... $000801-$00a993 Loading (ascii) mtest.asm... $040000-$04016e Compiling... Line 20: ldy >param ↔^◄ Bad address mode ORG=$c000, CODEEND=$c00c Saving slangout.o... $c000-$c00c C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 25: fil ↔^◄ename byt "$:*",8 Bad opcode/varname ORG=$c000, CODEEND=$c011 Saving slangout.o... $c000-$c011 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 25: fi ↔^◄lename byt "$:*",8 Bad opcode/varname ORG=$c000, CODEEND=$c011 Saving slangout.o... $c000-$c011 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 25: filename dfb "$: ↔^◄*",8 Bad argument ORG=$c000, CODEEND=$c012 Saving slangout.o... $c000-$c012 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 25: filename dfb '$: ↔^◄*',8 Bad argument ORG=$c000, CODEEND=$c012 Saving slangout.o... $c000-$c012 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 25: filename txt '$:*',8 ↔^◄ Bad number ORG=$c000, CODEEND=$c015 Saving slangout.o... $c000-$c015 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 25: filename txt '$:*',8 ↔^◄ Bad number ORG=$c000, CODEEND=$c015 Saving slangout.o... $c000-$c015 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 11: t ↔^◄ Duplicate label ORG=$1000, CODEEND=$1000 Saving slangout.o... $1000-$1000 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 25: filename txt '$:*',8 ↔^◄ Bad number ORG=$c000, CODEEND=$c015 Saving slangout.o... $c000-$c015 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 1: o; ↔^◄? * Call me picky but I just don't like that label ORG=$1000, CODEEND=$1000 Saving slangout.o... $1000-$1000 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 1: o; ↔^◄?* Call me picky but I just don't like that label ORG=$1000, CODEEND=$1000 Saving slangout.o... $1000-$1000 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 1: o; ↔^◄? * Call me picky but I just don't like that label ORG=$1000, CODEEND=$1000 Saving slangout.o... $1000-$1000 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 1: o; ↔^◄? Call me picky but I just don't like that label ORG=$1000, CODEEND=$1000 Saving slangout.o... $1000-$1000 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... Line 26: filename txt '$:*',8 ↔^◄ Bad number ORG=$c000, CODEEND=$c015 Saving slangout.o... $c000-$c015 C:\xlang>xlang mtest.asm ..[loading stuff].. Compiling... * * Testing Menu Toolbox III * slangout org $c000 mts equ $1000 ;menu toolbox start address 4096 ;mts equ $8000 ;menu toolbox start address 32768 start :c000 a2 11 ldx #filename :c004 a5 00 Line 17: lda namelength ↔^◄ Unknown label ORG=$c000, CODEEND=$c006 Saving slangout.o... $c000-$c006 C:\xlang> -------------------------------------------------------- Here's the code (yes, that space at the beginning of the file is mandatory I remember from last time): -------------------------------------------------------- * * Testing Menu Toolbox III * slangout org $c000 mts equ $1000 ;menu toolbox start address 4096 ;mts equ $8000 ;menu toolbox start address 32768 start ldx #filename lda namelength jsr mts+138 ;Bload dir ldx #param jsr mts+144 filename txt '$:*',8 location dfb $d000 param dfb 2,2,30,0,5,8,9,0 -------- I think most of this has to do with lf/cr. Christian --------------------------------- Access over 1 million songs - Yahoo! Music Unlimited. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://starbase.globalpc.net/pipermail/slackers/attachments/20061111/74e07ebd/attachment.html From anders.carlsson at sfks.se Sat Nov 11 15:27:32 2006 From: anders.carlsson at sfks.se (Anders Carlsson) Date: Sat, 11 Nov 2006 22:27:32 +0100 Subject: [Slackers] LF/CR text parsing In-Reply-To: <391786.97923.qm@web31204.mail.mud.yahoo.com> References: <391786.97923.qm@web31204.mail.mud.yahoo.com> Message-ID: Hello > ↔^◄ For what it is worth, #8596 is $2194 in hex, that in Unicode translates into an arrow with double heads: http://www.unicode.org/charts/PDF/U2190.pdf #9668 equals $25C4, which is a small, tall filled triangle pointing to the left: http://www.unicode.org/charts/PDF/U25A0.pdf I don't know why an encoding similar to those characters would appear for line feeds in your editor, but another idea is to try a different editor, or save as plain text. I don't have a clue what OEM means in terms of text formats, but at least Unix and UTF-8 should work fairly well if your code doesn't contain foreign characters. -- Anders Carlsson From christianlott1 at yahoo.com Sat Nov 11 16:17:39 2006 From: christianlott1 at yahoo.com (Christian Lott) Date: Sat, 11 Nov 2006 14:17:39 -0800 (PST) Subject: [Slackers] LF/CR text parsing In-Reply-To: Message-ID: <62824.30267.qm@web31208.mail.mud.yahoo.com> Thanks Anders. I thought it was some invisible editing marks so I retyped it in using a different text editor. Same error. This has been an ongoing problem for me. Whatever text editor I use and whatever format I save it in - xlang hates it. I'm on windows xp. I used Editor^2 at first. I just now used Crimson Editor, retyping from scratch. Here's the error: ------------------------- Compiling... Line 18: filename txt "$:0",8 ↔^◄ Bad number ORG=$c000, CODEEND=$c014 Saving slangout.o... $c000-$c014 ------------------------------------------- I converted it to ACME syntax and it almost works (except for a noncompiler bug - 'namelength' was not set). The first routine loads the directory and the second is supposed to take care of displaying the menu and the user input - cursor up and down the displayed directory menu. The menu comes up but the cursor keys do nothing. I've currently got the menutoolbox 3 open in ida. I've disassembled to where the parser is located. Should work as expected. Maybe acme didn't parse my source like I thought. Got to check that now. Christian Anders Carlsson wrote: Hello > ↔^◄ For what it is worth, #8596 is $2194 in hex, that in Unicode translates into an arrow with double heads: http://www.unicode.org/charts/PDF/U2190.pdf #9668 equals $25C4, which is a small, tall filled triangle pointing to the left: http://www.unicode.org/charts/PDF/U25A0.pdf I don't know why an encoding similar to those characters would appear for line feeds in your editor, but another idea is to try a different editor, or save as plain text. I don't have a clue what OEM means in terms of text formats, but at least Unix and UTF-8 should work fairly well if your code doesn't contain foreign characters. -- Anders Carlsson _______________________________________________ Slackers mailing list Slackers at starbase.globalpc.net http://starbase.globalpc.net/mailman/listinfo/slackers --------------------------------- Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://starbase.globalpc.net/pipermail/slackers/attachments/20061111/d70d31d4/attachment.html From christianlott1 at yahoo.com Sat Nov 11 16:29:30 2006 From: christianlott1 at yahoo.com (Christian Lott) Date: Sat, 11 Nov 2006 14:29:30 -0800 (PST) Subject: [Slackers] LF/CR text parsing In-Reply-To: <62824.30267.qm@web31208.mail.mud.yahoo.com> Message-ID: <843512.60815.qm@web31205.mail.mud.yahoo.com> Oops. Found the bug in my program. I marked as the Y2/bottom row = 30. I guess it doesn't like going off the screen. Brought it back into the screen and it works now. :> Christian --------------------------------- Want to start your own business? Learn how on Yahoo! Small Business. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://starbase.globalpc.net/pipermail/slackers/attachments/20061111/3f90515c/attachment.html From christianlott1 at yahoo.com Sat Nov 11 17:48:57 2006 From: christianlott1 at yahoo.com (Christian Lott) Date: Sat, 11 Nov 2006 15:48:57 -0800 (PST) Subject: [Slackers] LF/CR text parsing In-Reply-To: <843512.60815.qm@web31205.mail.mud.yahoo.com> Message-ID: <874476.42739.qm@web31213.mail.mud.yahoo.com> I'm getting an ?OUT OF MEMORY ERROR when I try to process after a 'return'. It doesn't get to the inc $d020. Just spits out that error when I hit return on a selection. ---------------------------------------- ; Testing Menu Toolbox III ; !to "m" *=$c000 mts = $1000 ;menu toolbox start address 4096 ;mts equ $8000 ;menu toolbox start address 32768 start sei ldx #filename lda #3;namelength jsr mts+138 ;Bload dir loop ldx #param jsr mts+144 ;file requestor inc $d020 ;ldx #item jsr mts+132 ;index item(s) inc $d021 stx $22 sty $23 ldx #2 ;row ldy #23 ;column jsr mts+171 ;Print At jsr loop filename !text "$:*",8 location !word $c100 param !byte 2,2,10,0,5,8,9,0 ; 1 multi item !word $c200 --------------------------------- Everyone is raving about the all-new Yahoo! Mail beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://starbase.globalpc.net/pipermail/slackers/attachments/20061111/ab8af140/attachment-0001.html From christianlott1 at yahoo.com Sat Nov 11 18:05:27 2006 From: christianlott1 at yahoo.com (Christian Lott) Date: Sat, 11 Nov 2006 16:05:27 -0800 (PST) Subject: [Slackers] LF/CR text parsing In-Reply-To: <874476.42739.qm@web31213.mail.mud.yahoo.com> Message-ID: <919441.94872.qm@web31215.mail.mud.yahoo.com> Ahh well. Forget that question too. After it caused the error I typed in NEW and SYSd to my program address, hit return and it continued with the program. I suppose I could call NEW at the beginning of my program to avoid this. --------------------------------- Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://starbase.globalpc.net/pipermail/slackers/attachments/20061111/bc2227c6/attachment.html From sjudd at ffd2.com Sat Nov 11 20:54:24 2006 From: sjudd at ffd2.com (Steve Judd) Date: Sat, 11 Nov 2006 19:54:24 -0700 (MST) Subject: [Slackers] LF/CR text parsing In-Reply-To: <874476.42739.qm@web31213.mail.mud.yahoo.com> References: <874476.42739.qm@web31213.mail.mud.yahoo.com> Message-ID: Hey Christian, Couple of things: - Any time you load a program to $c000 -- whether Slang, asm, whatever -- from basic, you'll get an out of memory error. This is because it sets the mem pointers to the end of the load, which is above BASICs upper limit of $9FFF. To get around this, two common techniques are 1) write a simple loader that runs first, or 2) use a BASIC header with a short routine to copy it up. - I haven't tested it, but if you put *=$c000 in the first column it will probably be treated as a comment. The fix is to insert a space. - The funny characters printed out when an error occurs are cursor dn, cursor left, ^, cursor up. That is, on a real machine it will print an up-arrow at roughly the point the error occured. If xlang gets updated again I'll see about fixing that. - Yeah, line lengths need to be less than 256 characters - When using the TXT command, I believe it expects a two-character hex value for anything following the "" quotes. That is, TXT 'hey',8 probably fails, but TXT 'hey',08 will work. Kinda lame, but there it is. - For what it's worth, I've used both notepad and "edit" (under DOS) to edit xlang files. Hope that helps! cu, -S From christianlott1 at yahoo.com Sat Nov 11 22:25:32 2006 From: christianlott1 at yahoo.com (Christian Lott) Date: Sat, 11 Nov 2006 20:25:32 -0800 (PST) Subject: [Slackers] LF/CR text parsing In-Reply-To: Message-ID: <976628.50964.qm@web31204.mail.mud.yahoo.com> Thanks Steve. It will compile now. Part of it was my fault - the error messages aren't very descriptive. Seems like you've only got 2 error messages .) Here's my new problem: ------------------------------------ filename txt "$:*",08 location dfb $d000 param dfb 2,2,10,0,5,8,9,0 ------------------------------------- Since I don't use the label 'location', it's not compiled into the program. Well, I'm not using it now, but I'm going to use it. It also so happens that those two bytes are necessary for the last two parameters of the subroutine I'm calling using the 'filename' label. Is there any way to foce it to compile with all the code, even if it's not used? (I appreciate all your hard work and if I appear disgruntled - it's a very silly and appeciative disgruntlement) Christian --------------------------------- Access over 1 million songs - Yahoo! Music Unlimited. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://starbase.globalpc.net/pipermail/slackers/attachments/20061111/768f4f24/attachment.html From christianlott1 at yahoo.com Sat Nov 11 23:17:29 2006 From: christianlott1 at yahoo.com (Christian Lott) Date: Sat, 11 Nov 2006 21:17:29 -0800 (PST) Subject: [Slackers] LF/CR text parsing In-Reply-To: <976628.50964.qm@web31204.mail.mud.yahoo.com> Message-ID: <290228.5476.qm@web31203.mail.mud.yahoo.com> Sorry about that. My fault. It should have been a DA instead of a DFB. Everyone just relax! --------------------------------- Want to start your own business? Learn how on Yahoo! Small Business. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://starbase.globalpc.net/pipermail/slackers/attachments/20061111/14b97c77/attachment.html From christianlott1 at yahoo.com Sat Nov 11 23:58:44 2006 From: christianlott1 at yahoo.com (Christian Lott) Date: Sat, 11 Nov 2006 21:58:44 -0800 (PST) Subject: [Slackers] Spred Message-ID: <20061112055844.5671.qmail@web31205.mail.mud.yahoo.com> Once I backarrow into the edit menu, how do I get back to the sprite drawing area? Christian --------------------------------- Everyone is raving about the all-new Yahoo! Mail beta. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://starbase.globalpc.net/pipermail/slackers/attachments/20061111/452db813/attachment.html From sjudd at ffd2.com Tue Nov 14 21:44:55 2006 From: sjudd at ffd2.com (Steve Judd) Date: Tue, 14 Nov 2006 20:44:55 -0700 (MST) Subject: [Slackers] Spred In-Reply-To: <20061112055844.5671.qmail@web31205.mail.mud.yahoo.com> References: <20061112055844.5671.qmail@web31205.mail.mud.yahoo.com> Message-ID: Christian, Messing with it, it looks like you go to the "edit" entry, press joystick left and right, and select "spritedat" with the fire button to edit the sprite data. Not that I remember why it's set up that way... -Steve On Sat, 11 Nov 2006, Christian Lott wrote: > Once I backarrow into the edit menu, how do I get back to the sprite drawing area? > > > Christian > > > --------------------------------- > Everyone is raving about the all-new Yahoo! Mail beta. From christianlott1 at yahoo.com Sun Nov 19 15:54:58 2006 From: christianlott1 at yahoo.com (Christian Lott) Date: Sun, 19 Nov 2006 13:54:58 -0800 (PST) Subject: [Slackers] Spred In-Reply-To: Message-ID: <370573.27834.qm@web31215.mail.mud.yahoo.com> Sorry, but how do I save? I get into the load/save box, select save from the load/save/quit options. I press the button, nothing happens. Maybe it's because I'm using the straight program file in VICE without being inside a D64? I press the button, I press enter, I press the F keys.....nothing (except f1 - which is text to the screen). Steve Judd wrote: Christian, Messing with it, it looks like you go to the "edit" entry, press joystick left and right, and select "spritedat" with the fire button to edit the sprite data. Not that I remember why it's set up that way... -Steve On Sat, 11 Nov 2006, Christian Lott wrote: > Once I backarrow into the edit menu, how do I get back to the sprite drawing area? > > > Christian > > > --------------------------------- > Everyone is raving about the all-new Yahoo! Mail beta. _______________________________________________ Slackers mailing list Slackers at starbase.globalpc.net http://starbase.globalpc.net/mailman/listinfo/slackers --------------------------------- Sponsored Link Mortgage rates near 39yr lows. $310,000 Mortgage for $999/mo - Calculate new house payment -------------- next part -------------- An HTML attachment was scrubbed... URL: http://starbase.globalpc.net/pipermail/slackers/attachments/20061119/b73c6341/attachment.html