This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - Excelseo
1
« on: September 05, 2016, 11:48:52 am »
Okay, it worked that time. I don't know why it didn't work the first time I tried it, maybe I transferred the wrong .8xp file. Thank you very much all, sorry I was so bad at phrasing my question.
2
« on: September 05, 2016, 11:16:41 am »
How do I determine what the program will be called when I send it to the calculator, if it isn't dependent on the .8xp filename?
3
« on: September 04, 2016, 11:56:14 am »
I tried the all-on-one-line approach, and the same thing happened. The issue is that the path is appearing in the filename once the program is transferred to the emulator. Instead of BACKGRND, it's C:\Asm\Spasm\BACKGRND. I just want to be able to remove the path from the beginning of the filename when I transfer the program to the emulator.
4
« on: September 03, 2016, 05:05:42 pm »
I am almost completely sure that the program is (usually) assembling correctly at this point. When I run the program on the calculator and recieve a syntax error, pressing goto places the cursor on the "." in "C.?ASM?", suggesting that the program name is invalid. I originally asked the question wondering if there was a way to send a program to the emulator and give it a valid name not including special characters.
5
« on: September 03, 2016, 03:51:49 pm »
cd "C:\asm\spasm" spasm.exe BACKGRND.txt binpac8x.py BACKGRND.bin
8xp file is attached, along with notepad file.
6
« on: September 03, 2016, 03:39:18 pm »
I didn't dump my own ROM. I used one from the interslicenet. I got an "OS files are corrupted" error when I tried to dump my own rom, even after updating the OS. Is there any way that I can completely reinstall the operating system?
7
« on: September 03, 2016, 03:32:33 pm »
Just noticed something else weird. The program file is wayyyyy smaller than it should be. It's 76 bytes, and the program has a single table bigger than that. I looked at the .bin file I got from the assembler and that's apparently 0 bytes. Is this a windows problem or an assembler problem?
EDIT: Nevermind, re-assembled the program and it's back to up to the proper 710 bytes. Just a weird glitch I guess.
EDITTACULAR: Another screenshot, showing how the program name changes on the home screen.
8
« on: September 03, 2016, 03:15:25 pm »
Calc OS: 2.55 Computer OS: Windows 10 (ugh) Emulator and Assembler source: https://wabbit.codeplex.com/In case this is what confused you, the files on the calculator are actually stored as "C:\Asm\S" so nothing paranormal is going on . Sory if that confused you, bad wording on my part. Screenshot is attached. And yes, I am using the "Asm(" instruction to run the program.
9
« on: September 03, 2016, 02:30:28 pm »
I'm sorry to come running here for help so quickly this time, but I haven't been able to find this out anywhere else. I recently downloaded wabbitemu, since I was sick of clearing my ram all of the time, and SPASM, since I was sick of typing assembly programs on the calculator all the time. I got spasm to work just fine, and it's churning out lovely .8xp files just like I want it to. However, whenever I try to drag-and-drop a program file into wabbitemu, it's stored into the calculator as "C:\Asm\Spasm\program.exe", which, of course, generates a syntax error when I try to run it. How can I fix this? Thanks, and sorry for asking two questions in a row .
10
« on: August 26, 2016, 03:41:18 pm »
Thanks! It's working now. The output to port 4 finally did it. Thank you all for the help!
11
« on: August 26, 2016, 02:31:40 pm »
di ld a,$99 ld i,a ld hl,$9900 ld de, $9901 ld (hl),$9A ld bc,256 ldir ld ix,$9A9A ld (ix+0),$C3 ld hl,Interrupt ld (ix+1),l ld (ix+2),h im 2 ld a,%00001011 out (3),a ld e,$FF ei Loop: jr Loop Interrupt: di xor a out (3),a ld a,$26 out ($10),a call WasteTime ld a,$9C out ($10),a call WasteTime ld a,e srl a srl a out ($11),a dec e ld a,%00001011 out (3),a ei ret WasteTime: ld l,10 WasteLoop: nop nop nop nop dec l jr nz,WasteLoop ret
My code as it is currently, by request of Sorunome. Thanks Eems for the link.
Edit Sorunome: added code-tags
12
« on: August 26, 2016, 01:45:39 pm »
Yeah I didn't mention adding it until my 2nd reply. I'll post the whole code as it is currently in half an hour or so, so stay tuned.
13
« on: August 26, 2016, 01:40:30 pm »
Tried that as well.
14
« on: August 26, 2016, 01:27:47 pm »
Yes.
15
« on: August 26, 2016, 12:58:49 pm »
Spent a little while tinkering with the program this morning, and I have two things that are definitely not solutions.
1. I output %00001011 to port 3 during setup, output %00000000 at the beginning of the interrupt routine, and reverted it to %00001011 at the end, which I think is what Geekboy was suggesting. I changed reti to ret as well, but I wouldn't really call that a proposed solution, just an optimization.
2. I added two "srl a"s before "out ($11),a". This way, the pixels to be displayed only change every 4 interrupts i.e. 35 times a second, which is well within the LCD's refresh rate. The problem persisted, and I didn't expect it to, as I don't think the interrupt routine is running a second time.
I might try some more solutions later but I'm out of ideas at the moment.
EDIT: changing the interrupt setup to a full table now
Ok, I replaced the interrupt setup with the following code, similar to Sorunome's, but with a slight optimization using ix instead of hl, and moving the table to $9900 since I was more familiar with that area of RAM.
ld a,$99 ld i,a ld hl,$9900 ld de, $9901 ld (hl),$9A ld bc,256 ldir ld ix,$9A9A ld (ix+0),$C3 ld hl,Interrupt ld (ix+1),l ld (ix+2),h im 2
Unfortunately, it had the same result. The specified 8 pixels set, and no updates.
Edit (Eeems): Merged double post
|