Krafty Internet Marketing Forum
Hacking in BASIC - Printable Version

+- Krafty Internet Marketing Forum (https://kraftymarketingprofits.com/internetmarketingforum)
+-- Forum: Search Engine Optimization (https://kraftymarketingprofits.com/internetmarketingforum/Forum-search-engine-optimization--44)
+--- Forum: White Hat Search Engine Optimization (https://kraftymarketingprofits.com/internetmarketingforum/Forum-white-hat-search-engine-optimization--47)
+--- Thread: Hacking in BASIC (/Thread-hacking-in-basic--75145)



Hacking in BASIC - BiestaGetse - 09-28-2021

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


RE: Hacking in BASIC - MrStuden - 09-29-2021

Thanks for sharing, that might be useful in the future.


RE: Hacking in BASIC - MaxForsyth - 09-29-2021

<p>I've always found hacking pretty fascinating, although I have little to no experience with it. But my brother, however, is amazing at it! I wish I dug deeper into hacking, and sooner, and who knows what skills I might have developed by now <img src="https://kraftymarketingprofits.com/internetmarketingforum/images/smilies/nodding.png" data-sceditor-emoticon="Nodding" alt="Nodding" title="Nodding"> I am super impressed each time I learn about hackers' styles and skills. I have recently come across <a href="https://private-service.best/">private-service.bes</a>t and I'm definitely impressed by what are they doing! Who knows, I might decide to spy on someone in the future haha</p>