SlideShare a Scribd company logo
1 of 2
Download to read offline
instead of referencing the data variable called spaces in the display PROC, how can i
put the push OFFSET space into the main procedure then reference it like mov edx,
[ebp +4]? This display procedure is used to show an array of random numbers. It works
when I use the below but I need to write it different.
a rough idea of what I have now
.data
spaces byte " ",0
display PROC
mov eax,[esi] ;get number from array
call WriteDec
mov edx, OFFSET spaces ; add space after
call WriteString
displayList ENDP
instead of referencing the data variable called spaces in the display PROC, how can i put the
push OFFSET space into the main procedure then reference it like mov edx, [ebp +4]? This
display procedure is used to show an array of random numbers. It works when I use the below
but I need to write it different.
a rough idea of what I have now
.data
spaces byte " ",0
display PROC
mov eax,[esi] ;get number from array
call WriteDec
mov edx, OFFSET spaces ; add space after
call WriteString
displayList ENDP
instead of referencing the data variable called spaces in the display.pdf

More Related Content

Similar to instead of referencing the data variable called spaces in the display.pdf

Chapter 7.1
Chapter 7.1Chapter 7.1
Chapter 7.1
sotlsoc
 
Objectives 1. using indirect addressing 2. passing parameters.pdf
Objectives 1. using indirect addressing 2. passing parameters.pdfObjectives 1. using indirect addressing 2. passing parameters.pdf
Objectives 1. using indirect addressing 2. passing parameters.pdf
fcsondhiindia
 
Java Code The traditional way to deal with these in Parsers is the .pdf
Java Code The traditional way to deal with these in Parsers is the .pdfJava Code The traditional way to deal with these in Parsers is the .pdf
Java Code The traditional way to deal with these in Parsers is the .pdf
stopgolook
 
06-PHPIntroductionserversicebasicss.pptx
06-PHPIntroductionserversicebasicss.pptx06-PHPIntroductionserversicebasicss.pptx
06-PHPIntroductionserversicebasicss.pptx
20521742
 

Similar to instead of referencing the data variable called spaces in the display.pdf (20)

Arrays and addressing modes
Arrays and addressing modesArrays and addressing modes
Arrays and addressing modes
 
Exploit techniques - a quick review
Exploit techniques - a quick reviewExploit techniques - a quick review
Exploit techniques - a quick review
 
Chapter 7.1
Chapter 7.1Chapter 7.1
Chapter 7.1
 
Web Technology_10.ppt
Web Technology_10.pptWeb Technology_10.ppt
Web Technology_10.ppt
 
Objectives 1. using indirect addressing 2. passing parameters.pdf
Objectives 1. using indirect addressing 2. passing parameters.pdfObjectives 1. using indirect addressing 2. passing parameters.pdf
Objectives 1. using indirect addressing 2. passing parameters.pdf
 
Odoo from 7.0 to 8.0 API
Odoo from 7.0 to 8.0 APIOdoo from 7.0 to 8.0 API
Odoo from 7.0 to 8.0 API
 
Odoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new apiOdoo - From v7 to v8: the new api
Odoo - From v7 to v8: the new api
 
Vizwik Coding Manual
Vizwik Coding ManualVizwik Coding Manual
Vizwik Coding Manual
 
Java Code The traditional way to deal with these in Parsers is the .pdf
Java Code The traditional way to deal with these in Parsers is the .pdfJava Code The traditional way to deal with these in Parsers is the .pdf
Java Code The traditional way to deal with these in Parsers is the .pdf
 
lab4_php
lab4_phplab4_php
lab4_php
 
lab4_php
lab4_phplab4_php
lab4_php
 
Chapter 3 programming concepts-ii
Chapter 3  programming concepts-iiChapter 3  programming concepts-ii
Chapter 3 programming concepts-ii
 
PHP Reviewer
PHP ReviewerPHP Reviewer
PHP Reviewer
 
Php intro by sami kz
Php intro by sami kzPhp intro by sami kz
Php intro by sami kz
 
07-PHP.pptx
07-PHP.pptx07-PHP.pptx
07-PHP.pptx
 
07-PHP.pptx
07-PHP.pptx07-PHP.pptx
07-PHP.pptx
 
overview of php php basics datatypes arrays
overview of php php basics datatypes arraysoverview of php php basics datatypes arrays
overview of php php basics datatypes arrays
 
Array
ArrayArray
Array
 
Creating a Fibonacci Generator in Assembly - by Willem van Ketwich
Creating a Fibonacci Generator in Assembly - by Willem van KetwichCreating a Fibonacci Generator in Assembly - by Willem van Ketwich
Creating a Fibonacci Generator in Assembly - by Willem van Ketwich
 
06-PHPIntroductionserversicebasicss.pptx
06-PHPIntroductionserversicebasicss.pptx06-PHPIntroductionserversicebasicss.pptx
06-PHPIntroductionserversicebasicss.pptx
 

More from vishalateen

it's complete and photos are in seqy characters- now 280 characters)-.pdf
it's complete and photos are in seqy characters- now 280 characters)-.pdfit's complete and photos are in seqy characters- now 280 characters)-.pdf
it's complete and photos are in seqy characters- now 280 characters)-.pdf
vishalateen
 
Issues about the Tax 3- Core Issue(s) Based on the strategic analysis.pdf
Issues about the Tax  3- Core Issue(s) Based on the strategic analysis.pdfIssues about the Tax  3- Core Issue(s) Based on the strategic analysis.pdf
Issues about the Tax 3- Core Issue(s) Based on the strategic analysis.pdf
vishalateen
 
is a decentralized routing approach that is used when there are multip.pdf
is a decentralized routing approach that is used when there are multip.pdfis a decentralized routing approach that is used when there are multip.pdf
is a decentralized routing approach that is used when there are multip.pdf
vishalateen
 
Ironically- small-box retailers like Dollar General owe their growth t (1).pdf
Ironically- small-box retailers like Dollar General owe their growth t (1).pdfIronically- small-box retailers like Dollar General owe their growth t (1).pdf
Ironically- small-box retailers like Dollar General owe their growth t (1).pdf
vishalateen
 

More from vishalateen (20)

Iy current wealth is $500 and I have exponential utility- There are tw.pdf
Iy current wealth is $500 and I have exponential utility- There are tw.pdfIy current wealth is $500 and I have exponential utility- There are tw.pdf
Iy current wealth is $500 and I have exponential utility- There are tw.pdf
 
its annual payments going to be- How much relief does this provide Del.pdf
its annual payments going to be- How much relief does this provide Del.pdfits annual payments going to be- How much relief does this provide Del.pdf
its annual payments going to be- How much relief does this provide Del.pdf
 
it's complete and photos are in seqy characters- now 280 characters)-.pdf
it's complete and photos are in seqy characters- now 280 characters)-.pdfit's complete and photos are in seqy characters- now 280 characters)-.pdf
it's complete and photos are in seqy characters- now 280 characters)-.pdf
 
It is very important to label the left and right side of the heart cor.pdf
It is very important to label the left and right side of the heart cor.pdfIt is very important to label the left and right side of the heart cor.pdf
It is very important to label the left and right side of the heart cor.pdf
 
It is required to perform factor analysis using SAS on this data 9.pdf
It is required to perform factor analysis using SAS on this data    9.pdfIt is required to perform factor analysis using SAS on this data    9.pdf
It is required to perform factor analysis using SAS on this data 9.pdf
 
IT Infrastructure Architecture Infrastructure Building Blocks and Conc (1).pdf
IT Infrastructure Architecture Infrastructure Building Blocks and Conc (1).pdfIT Infrastructure Architecture Infrastructure Building Blocks and Conc (1).pdf
IT Infrastructure Architecture Infrastructure Building Blocks and Conc (1).pdf
 
It is a very important criterion for the existence of a valid contract.pdf
It is a very important criterion for the existence of a valid contract.pdfIt is a very important criterion for the existence of a valid contract.pdf
It is a very important criterion for the existence of a valid contract.pdf
 
istannad Fer dadt fimn of the citece mid cyt in-During the conyersion.pdf
istannad Fer dadt fimn of the citece mid cyt in-During the conyersion.pdfistannad Fer dadt fimn of the citece mid cyt in-During the conyersion.pdf
istannad Fer dadt fimn of the citece mid cyt in-During the conyersion.pdf
 
Issues about the Tax 3- Core Issue(s) Based on the strategic analysis.pdf
Issues about the Tax  3- Core Issue(s) Based on the strategic analysis.pdfIssues about the Tax  3- Core Issue(s) Based on the strategic analysis.pdf
Issues about the Tax 3- Core Issue(s) Based on the strategic analysis.pdf
 
is used for media access control in Wi-Fi networks- A) Contention B) C.pdf
is used for media access control in Wi-Fi networks- A) Contention B) C.pdfis used for media access control in Wi-Fi networks- A) Contention B) C.pdf
is used for media access control in Wi-Fi networks- A) Contention B) C.pdf
 
Is this correct- Positive tests in the fermentation tests turned the t.pdf
Is this correct- Positive tests in the fermentation tests turned the t.pdfIs this correct- Positive tests in the fermentation tests turned the t.pdf
Is this correct- Positive tests in the fermentation tests turned the t.pdf
 
Is there an extinction threat to snow leopards - If so- what is causin.pdf
Is there an extinction threat to snow leopards - If so- what is causin.pdfIs there an extinction threat to snow leopards - If so- what is causin.pdf
Is there an extinction threat to snow leopards - If so- what is causin.pdf
 
is the protocol used to communicate over the internet- TCPAP WAN LN VP.pdf
is the protocol used to communicate over the internet- TCPAP WAN LN VP.pdfis the protocol used to communicate over the internet- TCPAP WAN LN VP.pdf
is the protocol used to communicate over the internet- TCPAP WAN LN VP.pdf
 
is senstivi A plant manager considers the operational cost per hour of.pdf
is senstivi A plant manager considers the operational cost per hour of.pdfis senstivi A plant manager considers the operational cost per hour of.pdf
is senstivi A plant manager considers the operational cost per hour of.pdf
 
is there a linux command that allows me to see all the directories tha.pdf
is there a linux command that allows me to see all the directories tha.pdfis there a linux command that allows me to see all the directories tha.pdf
is there a linux command that allows me to see all the directories tha.pdf
 
Is Fraser Mercantile Bank a Ltd Liability Company have a separate Lega.pdf
Is Fraser Mercantile Bank a Ltd Liability Company have a separate Lega.pdfIs Fraser Mercantile Bank a Ltd Liability Company have a separate Lega.pdf
Is Fraser Mercantile Bank a Ltd Liability Company have a separate Lega.pdf
 
is a concept where the derived class acquires the attributes of its ba.pdf
is a concept where the derived class acquires the attributes of its ba.pdfis a concept where the derived class acquires the attributes of its ba.pdf
is a concept where the derived class acquires the attributes of its ba.pdf
 
is a decentralized routing approach that is used when there are multip.pdf
is a decentralized routing approach that is used when there are multip.pdfis a decentralized routing approach that is used when there are multip.pdf
is a decentralized routing approach that is used when there are multip.pdf
 
IQ scores are normally distributed with a mean score of 100 and a stan.pdf
IQ scores are normally distributed with a mean score of 100 and a stan.pdfIQ scores are normally distributed with a mean score of 100 and a stan.pdf
IQ scores are normally distributed with a mean score of 100 and a stan.pdf
 
Ironically- small-box retailers like Dollar General owe their growth t (1).pdf
Ironically- small-box retailers like Dollar General owe their growth t (1).pdfIronically- small-box retailers like Dollar General owe their growth t (1).pdf
Ironically- small-box retailers like Dollar General owe their growth t (1).pdf
 

Recently uploaded

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 

Recently uploaded (20)

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 

instead of referencing the data variable called spaces in the display.pdf

  • 1. instead of referencing the data variable called spaces in the display PROC, how can i put the push OFFSET space into the main procedure then reference it like mov edx, [ebp +4]? This display procedure is used to show an array of random numbers. It works when I use the below but I need to write it different. a rough idea of what I have now .data spaces byte " ",0 display PROC mov eax,[esi] ;get number from array call WriteDec mov edx, OFFSET spaces ; add space after call WriteString displayList ENDP instead of referencing the data variable called spaces in the display PROC, how can i put the push OFFSET space into the main procedure then reference it like mov edx, [ebp +4]? This display procedure is used to show an array of random numbers. It works when I use the below but I need to write it different. a rough idea of what I have now .data spaces byte " ",0 display PROC mov eax,[esi] ;get number from array call WriteDec mov edx, OFFSET spaces ; add space after call WriteString displayList ENDP