Search found 20 matches

by soci
Wed Mar 25, 2026 7:55 pm
Forum: Programming
Topic: A contest to reduce code size
Replies: 26
Views: 1066

Re: A contest to reduce code size

Checked CINT on TRS80 and it does truncate (same like FIX) instead of round to nearest for some reason. And also noticed that INT on VC83 truncates instead of flooring.
by soci
Mon Mar 23, 2026 5:12 pm
Forum: Programming
Topic: A contest to reduce code size
Replies: 26
Views: 1066

Re: A contest to reduce code size

Name it "CINT". That's how it is called elsewhere and saves a byte too.
by soci
Thu Mar 19, 2026 7:45 am
Forum: General Discussions
Topic: Its been a while :)
Replies: 9
Views: 661

Re: Its been a while :)

I did one for the 12F675 (4 MHz) at 1200 baud. Does twice the interrupt rate in the duplex case with alternating intervals on the same timer. Unless rx/tx is close as then both are done in the same interrupt with a constant rate. Works nicely in simulator also at higher baud rates and faster ...
by soci
Sun Mar 08, 2026 8:08 am
Forum: EhBASIC
Topic: A test program?
Replies: 53
Views: 51947

Re: A test program?

Quick hack I did yesterday for testing. The original was for CBM PET and was adapted to use VT100 control sequences. Might be too fast on some systems with high baud rates. But is usable on my setup (~1.7Mhz and 38400N1).
0 REM BASED ON ORIGINAL PETRIS (C)2002 CURTIS F KAYLOR
10 E$=CHR$(27)+"[":R ...
by soci
Thu Feb 05, 2026 10:21 pm
Forum: Programming
Topic: Who uses the WDC instructions for... ?
Replies: 16
Views: 6489

Re: Who uses the WDC instructions for... ?

I wanted to use them for a current project but it's annoying that with a 65C02 these are zero page bound. However the bit instructions are much more usable with a 65CE02 where the base page is movable:

.0889 irq .proc
.with io.u1
.0889 48 pha
.088a a9 20 lda #pir.RCIF
.088c 2c 0f 27 bit pir
.088f ...
by soci
Sun Nov 30, 2025 8:56 pm
Forum: Programming
Topic: 64Tass Structural Programming Macros
Replies: 10
Views: 1170

Re: 64Tass Structural Programming Macros

soci, is that .asm code for the 64Tass assembler? It'd be good if you could add some comments of explanation for those of us not familiar with that assembler. I am unfamiliar with most of those assembler directives (at least I guess that's what they are, starting with a dot).
Yes, those are 64tass ...
by soci
Fri Nov 28, 2025 7:12 pm
Forum: Programming
Topic: 64Tass Structural Programming Macros
Replies: 10
Views: 1170

Re: 64Tass Structural Programming Macros

Hello laztrezort!

I'd recommend an alternate approach by stacking namespaces instead of branch instruction locations.

The advantage is that it's possible to define symbols like _skip or _loop in them. Using these as branch destinations there's no need for patching with .byte directives. Error ...
by soci
Fri Jun 20, 2025 6:01 pm
Forum: Programming
Topic: Which assembler could I possibly use ?
Replies: 120
Views: 25534

Re: Which assembler could I possibly use ?

The equivalent is easy to do:

strTop .function _s : bytes
.text _s[:-1], _s[-1] | $80
.endf

.strTop "test"
It converts the parameter to bytes first and then cuts of the last one and sets the sign bit there. Same could be done directly on the string as well but that would break escape ...
by soci
Thu Jun 19, 2025 5:48 pm
Forum: Programming
Topic: Which assembler could I possibly use ?
Replies: 120
Views: 25534

Re: Which assembler could I possibly use ?

Thank you for replying to the issues I encountered. I will go back and try the option to get a simple binary file. Nice to know that the author is contactable.

There's also an e-mail address as the bug tracker needs registration. Prompt answers are not guaranteed, needs a bit of a luck sometimes ...
by soci
Tue Jun 17, 2025 10:02 pm
Forum: Programming
Topic: Which assembler could I possibly use ?
Replies: 120
Views: 25534

Re: Which assembler could I possibly use ?

Not too surprisingly I use this one:

https://tass64.sourceforge.net/

If the latest version isn't packaged yet it's easy to compile it.
I downloaded the above from a repo on Github.

Thanks for checking it out! If it was from Irmen's unofficial mirror then you were lucky this time as currently ...
by soci
Fri Jun 13, 2025 5:36 am
Forum: Programming
Topic: Which assembler could I possibly use ?
Replies: 120
Views: 25534

Re: Which assembler could I possibly use ?

Not too surprisingly I use this one:

https://tass64.sourceforge.net/

If the latest version isn't packaged yet it's easy to compile it.
by soci
Tue Oct 05, 2021 6:17 pm
Forum: Newbies
Topic: user registers?
Replies: 11
Views: 2050

Re: User registers?

Neither PB or PC can modified by a copy from another register or by a stack pull instruction. For instance, it's not possible to simply load a general-purpose register with a value and copy it to either of those registers, even through the stack. Another for instance: while it's possible to change ...
by soci
Sat May 01, 2021 8:37 pm
Forum: Programming
Topic: BinToBcd
Replies: 29
Views: 5472

Re: BinToBcd

Another typo (7A vs. 71):
T9e9 HEX 00,1A,71,18,02

Don't forget to apply the other 2 corrections above.
by soci
Tue Nov 17, 2020 8:27 pm
Forum: Programming
Topic: 64tass Branch Instructions are Suddenly Short by Two Bytes?!
Replies: 13
Views: 1727

Re: 64tass Branch Instructions are Suddenly Short by Two Byt

Please post an example source code for such a simple hello world program and its Makefile. If it's short a hex dump of the expected result would be nice as well.

Thanks!
by soci
Sat Aug 29, 2020 7:17 am
Forum: Programming
Topic: What Sorts of Tools Do You Use to Unit Test Your Code?
Replies: 9
Views: 1530

Re: What Sorts of Tools Do You Use to Unit Test Your Code?

The .assert and .check directives in 64tass are not for code testing purposes as outlined above.

These directives were added long time ago to prevent mistakes when programming banked memory systems. I needed them because often the wrong memory configuration was used which resulted in memory ...