Show Posts

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 - Keoni29

Pages: 1 ... 35 36 [37] 38 39 ... 168
541
General Calculator Help / Re: Extracting AppVar from calc?
« on: February 23, 2014, 12:30:21 pm »
You click the file so it is highlighted in the device explorer. Then you go to File>Copy to PC (or equivalent)

542
Gaming Discussion / Re: Your best video game pickups.
« on: February 23, 2014, 12:28:52 pm »
I picked up two n64 controllers for €7,50 each. The blue one has a great analog stick. The green one has an okay stick, but it will need a bit of grease.



Not my pictures, but these are the colors I got now.

543
General Calculator Help / Re: Extracting AppVar from calc?
« on: February 23, 2014, 12:09:18 pm »
You use a linkcable and TIconnect.
More info here

544
Axe / Re: Send( and Get Command
« on: February 21, 2014, 12:46:23 pm »
Send(BYTE,TIME) sends one byte. Keeps checking if the other calc wants to Get a byte until it times out. Returns 1 on success. Returns 0 when no byte was sent.
Get receives one byte. Never waits. Returns the byte on success. Returns -1 when no byte was received.

Mind that axe variables are two bytes long. When you send data using Send you only send the lower byte of a variable.'

You should use the linkport on the left. It says I/O on the back

545
Other / Re: z80-like portable computer for <$30! (If you build one)
« on: February 21, 2014, 09:20:58 am »
Because the propeller chip is not well suited for this project I decided to go with a gameduino for graphics instead. The propeller chip is really meant to be used as the master in a computer system which is not the case here. When it's a slave device the communication is really slow since it does not have hardware SPI nor RS232.

The gameduino has some nice features including 256 hardware sprites and 512 pixel xy smooth scrolling.
I am working on the gameduino driver code for the eZ8 computer. So far I can initialize the gameduino and set the background to whatever color I want. I need to write some fill routines now for filling large chunks of the gameduino's internal memory. I can port most of the gameduino library to asm quite easily because I made the macro's very similar to the gameduino library functions.

Edit: I might split from this topic since my computer is not quite portable anymore.


546
Web Programming and Design / Re: Prefered Browser
« on: February 20, 2014, 06:43:08 pm »
Firefox had some issues with some html5 music players for me so I switched to chrome. I just stuck with it.

547
News / Re: Game Boy emulation reaches TI-84+CSE calculators
« on: February 20, 2014, 02:33:14 pm »
Hnnnng. I cannot wait until I get my CSE :D

548
TI Z80 / Re: VVVVVV
« on: February 18, 2014, 06:02:46 pm »
I will put this on my calc next week. I need to pay attention in school this week.

549
Web Programming and Design / Re: Best way to store blog posts
« on: February 18, 2014, 06:00:49 pm »
I personally use filesystems for storing articles, but I use mysql for all other things. This is mainly because my own framework was made back when I didn't known mysql. If I rewrote it from scratch I would definitely put everything in the database. No messing around with htaccess files nor directory whitelisting. Mysql works great with php.

550
Other / Re: C64 Programming Adventures
« on: February 17, 2014, 04:32:21 pm »
Added features:
- 4 bit I/O port with programmable data direction.
   $0000 [3..0] Data direction register
   $0001 [3..0] Input/Output register
-You can send binaries via realterm.

New example code: Toggles an LED on the I/O port
Code: [Select]
*=2
lda #01
sta $00

loop0:
lda $01
and #2
beq loop0:

loop1:
lda $01
and #2
bne loop1:

lda $01
and #1
eor #1
sta $01

jmp loop0:
.end

551
TI Z80 / Re: AxeSynth 2.0
« on: February 17, 2014, 12:00:10 pm »
Midi sync is a property of midi communication between devices. The midi clock is essential for making devices run at the same speed. An example is a drum machine hooked up to a midi controller which allows you to set the beats per minute.
http://en.m.wikipedia.org/wiki/MIDI_beat_clock

552
TI Z80 / Re: AxeSynth 2.0
« on: February 17, 2014, 03:00:35 am »
Will it support midi sync?

553
Other / Re: C64 Programming Adventures
« on: February 16, 2014, 08:42:59 am »
I made a little test rig with a 6507 (cut down version of the 6502) that I can use for debugging pieces of code on actual hardware.
The setup is as follows:
A propeller chip is wired up to the 6507's data, address and control bus. It acts as if it were ram. It also generates the clock pulses for the 6507 cpu. The benefit over using regular ram is that I can log all reads and writes on a serial terminal on my computer.

Code for the 6507 and propeller chip in the spoiler:
Spoiler For Spoiler:
Test code listing loaded onto the propeller chip:
Code: [Select]
   $0000 a2 01     ldx #$01
    $0002 e8        inx
    $0003 86 06     stx $06
    $0005 4c 00 00  jmp $0000
This code will modify itself twice. First it will change the jump instruction so it jumps to $0002 and the next loop it changes it so it jumps to $0003. After that it will not modify the code anymore since the inx instruction is not being executed anymore.

Code for the propeller chip.
Code: [Select]
CON

  'Set up the clock mode
  _clkmode = xtal1 + pll16x
  _xinfreq = 5_000_000
  '5 MHz clock * 16x PLL = 80 MHz system clock speed  
VAR

  'Globally accessible variables
  byte ph0
  byte rw
  byte reset
  byte a
  byte mode
  long addr
  byte progmem[$2000]
  
OBJ

  'in leiu of Parallax Serial Terminal, FullDuplexSerial is being used to communicate with the terminal
  serial        : "FullDuplexSerial"

  
PUB Main | i
{{
  Starts execution

  This test program attempts to test all aspects of the FullDuplexSerial object.
  It executs each public method call provided by FullDuplexSerial.  Set your
  terminal to a baud rate of 9600 baud to see the output.
  
  parameters:    none
  return:        none
  
  example usage: N/A - executes on startup

}}
  ph0 := 27
  rw  := 26
  reset := 25

  mode := 0
  addr := 0
  
  dira[7..0]:=$00
  dira[20..8]:=$00
  dira[ph0]:=1
  dira[rw]:=0
  dira[reset]:=1
  outa[ph0]:=1
  outa[7..0]:=$00
  {
    $0000 a2 01      ldx #$01
    $0002 e8          inx
    $0003 86 06      stx $06
    $0005 4c 00 00  jmp $0000
  }
  progmem[$0000]:=$a2
  progmem[$0001]:=$01
  progmem[$0002]:=$e8
  progmem[$0003]:=$86
  progmem[$0004]:=$06
  progmem[$0005]:=$4c
  progmem[$0006]:=$00
  progmem[$0007]:=$00
  
  progmem[$1FFC]:=$00
  progmem[$1FFD]:=$00  
  
  'pulse reset
  outa[reset]:=0
  repeat 8
    outa[ph0]:=0
    outa[ph0]:=1
  outa[reset]:=1

  repeat 4
    Wait_1_Second

  'start the FullDuplexSerial object
  serial.Start(31, 30, %0000, 9_600)                    'requires 1 cog for operation

  'Main loop for ram emulator + control signal generator
  repeat
    'Clock low
    outa[ph0]:=0

    'Read R/W line
    if ina[rw]==0
      dira[7..0]:=0
      serial.tx(87)'w
      mode := 0
    else
      dira[7..0]:=$ff
      serial.tx(82)
      mode := 1
    
    'Display address bus value
    serial.tx(32)
    addr:=ina[20..8]
    serial.hex(addr,4)

    'Read/write byte from/to data bus
    if mode == 1
      outa[7..0] := progmem[addr]
        
    serial.tx(32)
    'Clock high
    outa[ph0]:=1
    
    if mode == 0
      progmem[addr] := ina[7..0]  
    'Look at Data bus
    serial.hex(ina[7..0],2)
    
    serial.tx(32)
    serial.tx(13)

PUB Wait_1_Second
{{
  Pauses the calling cog's execution for approximately one second.
    
  parameters:    none
  return:        none
  
  example usage: Wait_1_Second
}}

  waitcnt(cnt + clkfreq)

pub Wait_100_Ms
  waitcnt(clkfreq/10 + cnt)

Edit: I am reworking the code a bit so you can control everything from a serial terminal. After a reset the propeller chip waits for the pc to send it a program. You can just send a binary file using realterm and it will work. Note that it puts the program at 0002 (the reset vector is also 0002.) I will probably write a program for windows that allows you to send programs by just dragging them over the icon.

554
News / Re: Contest 2013 - Results (finally)
« on: February 12, 2014, 05:41:26 pm »
Send them an angry email.

555
News / Re: Contest 2013 - Results (finally)
« on: February 12, 2014, 05:25:30 pm »
Yes they need to be shipped with the device they are used in. Not sure if they need to be inside though.

Pages: 1 ... 35 36 [37] 38 39 ... 168