basic

Help: ZX81 BASIC “Peek” function

只愿长相守 提交于 2019-11-29 14:08:41
I need a way to find if the character ('<') has hit a wall (Black pixel Graphic) -On a ZX81 game. I'm been looking at another game... which uses code if peek(peek 16398 +256*peek 16399) = code "**blackpixel graphic**" then ... Which seems to work for them... Is this correct code? I'm not really knowledgable with addresses and getting memory and stuff. Please help me... -If you know a better way. Please answer :) Thanks, Located at addresses 16398 and 16399 are two bytes that form the cursor location. (See http://web.ukonline.co.uk/sinclair.zx81/chap28.html ). In other words, peek 16398 + 256

Why did we bother with line numbers at all? [closed]

女生的网名这么多〃 提交于 2019-11-29 00:55:33
When you write something in BASIC, you are required to use line numbers. Like: 10 PRINT "HOME" 20 PRINT "SWEET" 30 GOTO 10 But I wonder: who came up with the idea to use line numbers at all? It is such a nuisance, and left quite an "echo" in the developing (pun intended) world! The idea back then was that you could easily add code everywhere in your program by using the appropriate line number. That's why everybody uses line numbers 10, 20, 30.. so there is room left: 10 PRINT "HOME" 20 PRINT "SWEET" 30 GOTO 10 25 PRINT "HOME" On the first interfaces BASIC was available for, there was no shiny

How can I automatically populate the VBA Editor with line numbers?

依然范特西╮ 提交于 2019-11-27 15:57:57
I want to have line numbers in my VBA code for debugging reasons. That will allow me to know where a particular error occurred. Is there an automatic feature for this (such as an option in settings)? Or do I need to write my own macro? If I need to write my own macro to accomplish this task, how would I go about doing such a thing? Mathieu Guindon You don't want line numbers. Not for "debugging reasons", not for anything. Line numbers are deprecated for a reason: they're a relic of an ancient time before procedures even existed, and GOTO the only way to get anywhere. Erl only returns the last

Why did we bother with line numbers at all? [closed]

会有一股神秘感。 提交于 2019-11-27 15:28:41
问题 When you write something in BASIC, you are required to use line numbers. Like: 10 PRINT "HOME" 20 PRINT "SWEET" 30 GOTO 10 But I wonder: who came up with the idea to use line numbers at all? It is such a nuisance, and left quite an "echo" in the developing (pun intended) world! 回答1: The idea back then was that you could easily add code everywhere in your program by using the appropriate line number. That's why everybody uses line numbers 10, 20, 30.. so there is room left: 10 PRINT "HOME" 20

What does DIM stand for in Visual Basic and BASIC?

萝らか妹 提交于 2019-11-27 06:21:19
What does DIM stand for in Visual Basic? Dim originally (in BASIC) stood for Dimension, as it was used to define the dimensions of an array. (The original implementation of BASIC was Dartmouth BASIC, which descended from FORTRAN, where DIMENSION is spelled out.) Nowadays, Dim is used to define any variable, not just arrays, so its meaning is not intuitive anymore. Theraot Dim have had different meanings attributed to it. I've found references about Dim meaning "Declare In Memory" , the more relevant reference is a document on Dim Statement published Oracle as part of the Siebel VB Language

How can I automatically populate the VBA Editor with line numbers?

不打扰是莪最后的温柔 提交于 2019-11-26 17:22:08
问题 I want to have line numbers in my VBA code for debugging reasons. That will allow me to know where a particular error occurred. Is there an automatic feature for this (such as an option in settings)? Or do I need to write my own macro? If I need to write my own macro to accomplish this task, how would I go about doing such a thing? 回答1: You don't want line numbers. Not for "debugging reasons", not for anything. Line numbers are deprecated for a reason: they're a relic of an ancient time

What does DIM stand for in Visual Basic and BASIC?

夙愿已清 提交于 2019-11-26 11:57:51
问题 What does DIM stand for in Visual Basic? 回答1: Dim originally (in BASIC) stood for Dimension, as it was used to define the dimensions of an array. (The original implementation of BASIC was Dartmouth BASIC, which descended from FORTRAN, where DIMENSION is spelled out.) Nowadays, Dim is used to define any variable, not just arrays, so its meaning is not intuitive anymore. 回答2: Dim have had different meanings attributed to it. I've found references about Dim meaning "Declare In Memory" , the more