Tunguska the ternary emulator

Balanced Ternary Numeral System - forum was moved from http://ternary.info

Moderator: haqreu

eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Hmm, the lines shouldn't be showing through. Anyways, I think I might have fixed the scrolling. Try the latest CVS.
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

eudoxie wrote: Hmm, the lines shouldn't be showing through. Anyways, I think I might have fixed the scrolling. Try the latest CVS.
No, everything looks the same
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

Try disabling -O-flags in the makefile, see if that does anything...
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

eudoxie wrote: Try disabling -O-flags in the makefile, see if that does anything...
Yes, it helped
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

How far can you optimize without it acting up? There's a pretty big performance jump between -O0 and -O1. But there is very limited performance gain between -O1 and -O2, -O3.

--edit-- I just revamped the scroll function to use the AGDP. Atleast on my computer, it scrolls as fast as xterm =D
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

Something strange on CVS now - I got segmentation fault in g++
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

It sounds like it's a bug in g++. What version are you using?

Could you post the output of "g++ -v". Also, when is it crashing? During compilation or linking? If compilation, what file?
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »


Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.6


Now it's compiled successfully
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

Another "unofficial" build for Windows is ready:

http://nedopc.org/ternary/tunguska/tung ... _2-win.zip (1.2M)

It includes alternative assembler RASM and some examples for it (including separate program BOOT.A)
Last edited by Shaos on 11 Nov 2012 17:41, edited 1 time in total.
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

I've made a few (backward compatible) changes to the assembler. It now allows uppercase labels and variables, and both the old
@EQU foo bar
syntax, as well as
foo @EQU bar
for defining variables.
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

What does author think about GPL v3 ?
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

I know there has been some controversy on the subject, but not actually read up on it. I figured I'll stick with v2 until I get some clarity on the actual differences between the two (I'm fairly certain none of them really apply with Tunguska, but I prefer to be on the safe side)
User avatar
Shaos
Admin
Posts: 24011
Joined: 08 Jan 2003 23:22
Location: Silicon Valley

Re: Tunguska the ternary emulator

Post by Shaos »

eudoxie wrote: I know there has been some controversy on the subject, but not actually read up on it. I figured I'll stick with v2 until I get some clarity on the actual differences between the two (I'm fairly certain none of them really apply with Tunguska, but I prefer to be on the safe side)
I'm also still using v2 ...
Mac Buster
Retired
Posts: 1474
Joined: 03 Aug 2003 22:37
Location: Moscow

Re: Tunguska the ternary emulator

Post by Mac Buster »

If this possible to add something like transparrent colour value to graphics mode with 729 colours ? I think this could be very handy for graphics programming.
eudoxie
Maniac
Posts: 277
Joined: 17 Sep 2012 13:36
Location: 81.170.128.52

Re: Tunguska the ternary emulator

Post by eudoxie »

I don't think there's any benefit from implementing it with hardware, you could simply add a few lines to the painting function, something like

LDA .color
CMP #transparentvalue
JNE $$+4
RST