• Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search

Krafty Internet Marketing Forum Search Engine Optimization White Hat Search Engine Optimization Hacking in BASIC

 
  • 0 Vote(s) - 0 Average
Hacking in BASIC
BiestaGetse
Offline

Member

Member
Posts: 156
Threads: 51
Joined: Jan 2021
Reputation: 0
#1
09-28-2021, 09:41 PM
<p>I sometimes hack about in BASIC for a bit of fun, and usually forget what I did.<br><br>VOICES as a function probably isn’t very useful any more, though LOCAL ERR,ERL,REPORT$ is handy. Even LOCALRND has its uses.<br><br>However, this one is so useful one might want to consider it for a future release:<br><br>STRING$(address,param[,maxlen])<br><br>param: b0-7 single terminator chr<br>&nbsp; &nbsp; &nbsp; b8&nbsp; no single terminator chr (ignore b0-7)<br>&nbsp; &nbsp; &nbsp; b9&nbsp; any ctrl terminates<br>&nbsp; &nbsp; &nbsp; b10&nbsp; CR or LF terminates<br>&nbsp; &nbsp; &nbsp; b11&nbsp; any top-bit-set byte terminates<br>or if negative, maxlen (and no 3rd arg)<br>In other words:<br><br>STRING$(addr,T) reads a string from memory, terminated by CHR$(T)<br>STRING$(addr,-L) reads a string of LEN L bytes, including CRs<br>STRING$(addr,T,L) reads a string terminated by CHR$(T) or LEN L<br>STRING$(addr,256,L) reads a string of LEN L, no terminator<br>STRING$(addr,512) reads a ctrl-terminated string<br>STRING$(addr,512+127) reads a string terminated by a ctrl or del<br>STRING$(addr,1024+0) reads a string terminated by 0, LF or CR<br>STRING$(addr,1024+13) reads a string terminated by CR or LF only<br>STRING$(addr,2048+512+127) reads a string made up of ASCII chrs only<br>STRING$(addr,32,12) reads a sprite name or drawfile group name<br>STRING$(addr,-4) reads a FourCC<br>STRING$(addr+1,-?addr) reads a Pascal string<br>(addr,-L) is just syntactic sugar for (addr,256,L).<br><br>And writen=SYS"OS_WriteN" should always have existed. I noticed in passing that the command SYS"Some_String" doesn’t use the SCT, so is always as slow as possible. Shame.<br></p>
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
Hacking in BASIC - by BiestaGetse - 09-28-2021, 09:41 PM
RE: Hacking in BASIC - by MrStuden - 09-29-2021, 12:39 AM
RE: Hacking in BASIC - by MaxForsyth - 09-29-2021, 12:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Hacking Fall Guys brainstorm21 2 1,797 11-27-2020, 04:43 PM
Last Post: MrStuden

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode