Author Topic: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...  (Read 20963 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #45 on: September 22, 2010, 11:47:04 am »
Ah ok. Thanks for the info. I wish they kept naming consistent accross platforms/languages/softwares x.x
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #46 on: September 25, 2010, 11:08:38 am »
New version, http://tict.ticalc.org/beta/tiosmod-0.2.4.zip .
* fixed a very old bug, documented in http://www.technicalc.org/buglist/bugs.pdf , in contrast handling: destruction of the value contained in two processor registers, d3 et d4, which shouldn't be destroyed. This is unlikely to change anything for anybody, since the bug has been worked around in TIGCC, and therefore GCC4TI, for years.
* AMS 2.08 for 92+ and V200 are now supported, after testing.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline TC01

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 344
  • Rating: +9/-0
    • View Profile
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #47 on: September 25, 2010, 11:15:26 am »
Nice work so far (as always).

Are there bugs in the Titanium AMS versions (3.x) as well that this program could eventually solve?



The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #48 on: September 25, 2010, 11:27:38 am »
Quote
Nice work so far (as always).
Thanks ;)

The OSContrastUp/Dn routines destroying d3-d4 affects all AMS versions supported by this patcher+patchset, and others in-between (perhaps _all_ known AMS versions, I haven't checked what AMS 1.00 does).
A more direct answer to your question: patching several other bugs is (probably) possible, but most of the bugs in the list (especially those of the CAS) are very hard to patch, because we don't have a complete understanding of what AMS does.
« Last Edit: September 25, 2010, 11:41:10 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #49 on: September 25, 2010, 12:30:46 pm »
ok, I got everything set up

now, what is the correct syntax of what I should put in the command prompt?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #50 on: September 25, 2010, 12:43:53 pm »
It totally depends on which tool you want to use, and which AMS version you want to patch ;)

Code: [Select]
bsdiff -h
bsdiff: usage: bsdiff oldfile newfile patchfile

Code: [Select]
xdelta -h
xdelta: usage: xdelta COMMAND [OPTIONS] [ARG1 ...]
xdelta: COMMAND is one of:
xdelta:   delta     Produce a delta from ARG1 to ARG2 producing ARG3
xdelta:   info      List details about delta ARG1
xdelta:   patch     Apply patch ARG1 using file ARG2 producing ARG3
xdelta: OPTIONS are:
xdelta:   -v, --version      Print version information
xdelta:   -V, --verbose      Print verbose error messages
xdelta:   -h, --help         Print this summary
xdelta:   -n, --noverify     Disable automatic MD5 verification
xdelta:   -p, --pristine     Disable automatic GZIP decompression
xdelta:   -m, --maxmem=SIZE  Set the buffer size limit, e.g. 640K, 16M
xdelta:   -[0-9]             ZLIB compress level: 0=none, 1=fast, 6=default, 9=best
xdelta:   -s=BLOCK_SIZE      Sets block size (power of 2), minimum match length
xdelta:                      In-core memory requirement is (FROM_LEN * 8) / BLOCK_SIZE

Code: [Select]
xdelta3 -h
Xdelta version 3.0s, Copyright (C) 2007, Joshua MacDonald
Xdelta comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see "COPYING" for details.
usage: xdelta3 [command/options] [input [output]]
special command names:
    config      prints xdelta3 configuration
    decode      decompress the input
    encode      compress the input
    test        run the builtin tests
special commands for VCDIFF inputs:
    printdelta  print information about the entire delta
    printhdr    print information about the first window
    printhdrs   print information about all windows
    recode      encode with new application/secondary settings
standard options:
   -0 .. -9     compression level
   -c           use stdout
   -d           decompress
   -e           compress
   -f           force overwrite
   -h           show help
   -q           be quiet
   -v           be verbose (max 2)
   -V           show version
memory options:
   -B bytes     source window size
   -W bytes     input window size
   -P size      compression duplicates window
   -I size      instruction buffer size (0 = unlimited)
compression options:
   -s source    source file to copy from (if any)
   -S [djw|fgk] enable/disable secondary compression
   -N           disable small string-matching compression
   -D           disable external decompression (encode/decode)
   -R           disable external recompression (decode)
   -n           disable checksum (encode/decode)
   -C           soft config (encode, undocumented)
   -A [apphead] disable/provide application header (encode)
   -J           disable output (check/compute only)
   -T           use alternate code table (test)
the XDELTA environment variable may contain extra args:
   XDELTA="-s source-x.y.tar.gz" \
   tar --use-compress-program=xdelta3 \
       -cf target-x.z.tar.gz.vcdiff target-x.y/
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #51 on: September 25, 2010, 12:58:02 pm »
ok, I am using xdelta and the OS is 3.10 I think

what would I have to put in the cmd for that?

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #52 on: September 25, 2010, 01:10:33 pm »
Code: [Select]
xdelta patch os.89u patch.xdelta patchedos.89uwhere os.89u is the original OS file, patch.xdelta is the delta file, and patchedos.89u is what you want the patched OS to be named.
Edit: This is what I understand by reading the docs posted a couple up. Lionel will have to make sure I'm correct.
« Last Edit: September 25, 2010, 01:12:52 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #53 on: September 25, 2010, 02:02:39 pm »
* fixed a very old bug, documented in http://www.technicalc.org/buglist/bugs.pdf , in contrast handling: destruction of the value contained in two processor registers, d3 et d4, which shouldn't be destroyed. This is unlikely to change anything for anybody, since the bug has been worked around in TIGCC, and therefore GCC4TI, for years.
Wow, I didn't know that domain name was still active. I am amazed it has been around for this long because generally those smaller sites get shut down after a few years.

Nice update!
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #54 on: September 25, 2010, 02:30:19 pm »
err, wait, I am using xdelta3..

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #55 on: September 26, 2010, 04:45:31 am »
Nine days ago, at http://ourl.ca/6666/118616 , I asked:
Quote
and have you either looked at the documentation (I found the appropriate usage example for xdelta3 in one click) [snip]
Clearly, you haven't... so let's outline the steps for you:
* one click to go to the http://xdelta.org/ page, after finding it as one of the top results in either Google or Yahoo!;
* one click on the "Documentation" link brings you to http://code.google.com/p/xdelta/w/list ;
* one click to go to the page named, guess what, "CommandLineSyntax", which contains usage examples and also links to a script that provides command-line compatibility with xdelta 1 for xdelta 3.
VoilĂ , you know the general form of xdelta invocations, and you can adapt it to your own needs :)


I can understand that you're much younger than I am, and inexperienced at using the command line. But you're very probably not so stupid as not to be able to perform simple searches and follow several links on the Internet, and imitate simple, ready-made instructions, by adapting them to your needs (a matter of replacing a couple filenames by the ones you're using) - just like calcdude84 did.
IOW, you behave as if you're just lazy - and you know, people who try to help, tend not to appreciate their time (all of us are volunteers coming here on our free time) being wasted when the people they're trying to help fail multiple times at using the simple suggestions they receive... ;)
On most message boards or mailing lists I know of, you'd already have received negative comments more negative than mine - and received them sooner than you did here...
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #56 on: September 26, 2010, 05:01:47 am »
Well you have to understand there are things, especially when it comes to such softwares, that are harder to understand for some people than they are for others. An example is when I tried using IRSSI for Windows, I never got to understand the many documentation site/files I could find, simply because the way it was explained was simply too cryptic for me. Eventually, I simply had someone else explaining it to me in a different way and I eventually got the hang of it. I was lucky, though, that someone could explain it in a different way (more visual).

Not everyone is like you. Everyone is different. That said, it might be good, if he did not already, if he did some searching on how to do what he wants to do. However, sometimes, there is a point where some people still won't understand the information they found in help files, so if he DID do his search, it's inevitable he will ask questions.

On Omni we're open towards people who are new to something (including forums) so we won't tolerate negative comments like JFGI or name calling (it can lead to a ban after warnings, although sometimes there's so much posts that such comments might go unnoticed by admins).

That said, qazz it might be good if you posted what you do not understand in the links Lionel provided, if you did check them, so it won't look like you did not search, either. While being rude to someone new to something is not tolerated here, if someone has been around for a while and still won't do efforts to help himself, I understand that some people may be annoyed. I know myself that I got annoyed at one other member here in particular in the past, as he kept asking me the same question every day.

And I hope that the fact I have troubles with such type of softwares implies to you that I am stupid x.x
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #57 on: September 26, 2010, 05:44:22 am »
Just to make sure we're on the same track: I know that everyone is different, and that Omnimaga is more tolerant than other message boards I know of :)
This is precisely why I've been patient until now, and why even now, I've not made any especially sharp remark against qazz.

Quote
That said, qazz it might be good if you posted what you do not understand in the links Lionel provided, if you did check them, so it won't look like you did not search, either.
Indeed. Because it really starts to look like (well, to me, at least) that he has put hardly any effort into searching or trying to adapt things, if at all.
It's still possible that he hasn't understood something, as you wrote. That said, from my experience on yAronet and TI-Bank, most people, when they don't understand something, tend to tell about it earlier than several rounds in a discussion.
« Last Edit: September 26, 2010, 05:44:51 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #58 on: September 26, 2010, 05:53:55 am »
Yeah I agree with you. At one point we need to make sure the person is really doing an effort. Hopefully he can figure out or tell us what he doesn't get.

And I did not notice any rudeness in your post, so don't worry :)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: TIOSMOD: a computer-based patcher for TI-68k OS (for now)...
« Reply #59 on: September 26, 2010, 10:06:23 am »
actually, to counter your point, yes, I have tried all different combos of input into the cmd

most of the time, it would crash

another time, I ended up making the OS, just for it to crash my calc (actually, this was the attempt where I got fustrated at xdelta and just typed in "xdelta myos.89u patchedos.89u")

and the other 98% It was just errors...

(all these failed attempts were what I tried to do after reading the documentation)

dont think I am not doing my part in reading the readmes and such...
I am, but I am having troubles understanding what I need to put in the cmd (hell, it was like this with rabbitsign...).

sigh, I will try xdelta3.exe -d -s   old_file   delta_file   decoded_new_file  again.

Yess. it worked! I think the problem here is that I was using the wrong delta file when I put it in the first few times

thanks for being patent with me.. though I feel I dont deserve it

sry to cause you any anger on make you upset :(
« Last Edit: September 26, 2010, 10:44:59 am by qazz42 »