VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 22:11:14 12/19/02 Thu
Author: PaCo
Subject: Re: matrices i vectores de BASIC a CM
In reply to: joanb 's message, "matrices i vectores de BASIC a CM" on 23:41:44 12/17/02 Tue

COMO IDENTIFICA EL BASIC LAS VARIABLES?
=======================================

Para averiguarlo tomemos un ejemplo que es como
se aprende:

10 a$(1)="1111111111"
20 a$(2)="AAAAAAAAAA"
30 a$(3)="BBBBBBBBBB"
40 a$(4)=a$(1)+a$(2)

RUN

Monitor de desensamblado:

$2f $30 = $085e <--- Direccion donde se guardan los apuntadores de variables

Miremos en $085e:

>C:085e 41 80 28 00 01 00 0b 00 00 00 0a 0c A.(.........
^^^^^tipo de variable^^^^^^^^^^ | |---Apuntador fisico $080c
|----Longitud en bytes

>C:086a 08 0a 23 08 0a 3a 08 14 ec 9f 00 00 ..#..:......
| | | | | | | | |
| | | | | | | --| Apuntador $9fec
| | | | | | |-------- Longitud
| | | | | |
| | | | --|-apuntador $083a
| | | |-------Longitud
| | |
| --|--apuntador fisico $0823
|-Longitud en bytes

* Notese que al sumar 2 variables el valor resultante
queda almacenado en $9fec $9fff es la zona mas alta
de basic

* Los apuntadores son las posiciones en RAM de donde
se leeran los bytes que componen las variables

* Los bytes que componen el tipo de variable no se
cual tiene su significado

* Espero que esta ayudita te sirva de algo

Saludos


Paco.

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


Post a message:
This forum requires an account to post.
[ Create Account ]
[ Login ]
[ Contact Forum Admin ]


Forum timezone: GMT+1
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.